Search code examples
ruby-on-railsbackbone.jsrake

Rails, precompiled assets; code changes not reflected in running app


I am developing an application with Rails 3.0 and Backbone and I tried asset precompilation (rake assets:precompile).

Since then any change I made in the code is not reflected in the executed application, in development environment.

Thank in advance


Solution

  • You'll have to pre-compile assets every time you make a change.

    rake assets:precompile RAILS_ENV=development