In a Rails 3 application, I would like to be able to use unminified javascript and css files in my development environment for debugging and such, and minified versions in production.
I can think of a few hacky solutions, but ideally I’d like javascript_include_tag and friends to automatically select the right asset file.
Ideas?
Add your js normally using
In your
development.rbset:and in production.rb use: