Miguel Correlo
2013-May-01 19:07 UTC
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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/29Bs1vd0ERwJ. For more options, visit https://groups.google.com/groups/opt_out.
Emil S
2013-May-02 11:16 UTC
Re: Is there any way to update the javascript when I reload the page using rails?
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 question<http://stackoverflow.com/questions/8821864/config-assets-compile-true-in-rails-production-why-not>for a better idea of what happens. On 2 May 2013 00:37, Miguel Correlo <correlomm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/29Bs1vd0ERwJ. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2013-May-02 12:36 UTC
Re: Is there any way to update the javascript when I reload the page using rails?
On Wednesday, May 1, 2013 8:07:17 PM UTC+1, Miguel Correlo wrote:> > 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. > > I''ve never needed to do this. If you have precompiled assets in the pastthen deleting public/assets should result in rails compiling assets on the fly. Fred -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/1mrK5tZdt1gJ. For more options, visit https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- rake assets:precompile issue with JS and stylesheets files with similar name
- Unable to deploy to Apache
- Issue with asset pipeline helper with Rails 3.1 final release.
- My SCSS compiled CSS lacks "/assets" in the generated urls
- jquery error in production precompiled