Ryan Bigg

⟵ Posts

Sprocket asset tags internals

19 Jun 2011

Yesterday’s post and twitter bitching caught the eye of our fearless leader who basically claimed that I’ve not made documentation patches recently. I responded with a small reminder that I’ve done some documentation work and went a step further and begun an Asset Pipeline Guide because I could. I could have pulled the whole “Don’t you know who I am?!!” faux-lebrity deal, but I thought I would be humble. Append “for a change” to the end of the previous sentence, if you wish.

That was incredibly fun. We should do it again some time. Have your people call my people, we’ll do lunch.

Before all that went down, I created a short (by my standards, anyway) Gist about how the Sprockets::Railtie class is currently set up in Rails. This little Gist begun as short note taking for myself and I thought that maybe other people would find the information helpful, so I formatted it all pretty like.

After the battle of the egos took place, I delved a little deeper into the Sprockets rabbit hole, got defeated by some gnarly code and thought “fuck it dude, let’s go bowling to sleep”. I awoke this morning and delved a little deeper into exactly how all of this magic happens.

This guide now lives as the Sprockets Internals Guide on my guides repository. Check out both of them. You may learn something.