Is there any way to update the javascript when I reload the page using rails?

Hi,
I need fix any bugs in a rails project. The problem is every time I
change
anything in javascript I have to make
bundle exec rake rails_group=assets assets:clean RAILS_ENV=development
and
then
bundle exec rake rails_group=assets assets:precompile
RAILS_ENV=development
and finaly restart the rails server. This way spend 10 min.

Exists any other solution?

On Wednesday, May 1, 2013 8:07:17 PM UTC+1, Miguel Correlo wrote:

I’ve never needed to do this. If you have precompiled assets in the past
then deleting public/assets should result in rails compiling assets on
the
fly.

Fred

You don’t need to precompile your assets in development environment.
Remove config.assets.compile
= false from config/environments/development.rb if it’s there. Read this
stackoverflow
questionhttp://stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-notfor
a better idea of what happens.