Precompiling non-default assets with Rails 3
I've just been playing with an interesting problem whereby Rails 3 wasn't precompiling assets as I would expect.
However, when precompiling my assets I noticed that Rails was only doing the default application.js, and ignoring my admin.js.
Well, it turns out you need to manually tell Rails that you've added that additional resource. Luckily this is nice and easy:
config.assets.precompile += ['admin.js']
This article is a work in progress. If you'd like to see me cover something else, or add some more detail somewhere in this article, please drop me an email at the address below.