Javix
2013-Apr-22 10:06 UTC
after assets compiled locally bootstrap drop-down list does not work, no errors seen
As advised at Heroku (https://devcenter.heroku.com/articles/rails-asset-pipeline), I modified the config settings in application.rb file: config.assets.initialize_on_precompile=false then compiled assets locally: RAILS_ENV=production bundle exec rake assets:precompile then pushed it to the git: git add public/assetsgit commit -m "vendor compiled assets" The application was deplyed without problems and works fine at Heroku. The problem is that it does not work properly in development (locally). For example, the bootstrap drop-dwpn list for user settings does not work any more, no errors in the browser console. Other features seem to work as needed. Any idea ? Thank you. -- 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/-/g21IhXoPRUUJ. For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2013-Apr-22 10:16 UTC
Re: after assets compiled locally bootstrap drop-down list does not work, no errors seen
On Mon, Apr 22, 2013 at 5:06 AM, Javix <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The application was deplyed without problems and works fine at Heroku. > The problem is that it does not work properly in development (locally). > For example, the bootstrap drop-dwpn list for user settings does not work > any more, no errors in the browser console. Other features seem to work as > needed. Any idea ? >Caching. -- 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.
Serguei Cambour
2013-Apr-22 10:22 UTC
Re: after assets compiled locally bootstrap drop-down list does not work, no errors seen
On 22 Apr 2013, at 12:16, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Apr 22, 2013 at 5:06 AM, Javix <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > The application was deplyed without problems and works fine at Heroku. > The problem is that it does not work properly in development (locally). For example, the bootstrap drop-dwpn list for user settings does not work any more, no errors in the browser console. Other features seem to work as needed. Any idea ? > > Caching.Thank you Jordon for the reply. I just removed the assets folder created inside ''public'', removed all the cookies and cache data from the browser and reworked. Is there another solution to avoid to delete the assets folder after compilation? Regards> > > -- > You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/pe_qcMO4zoc/unsubscribe?hl=en-US. > To unsubscribe from this group and all its topics, 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. > >-- 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.
Jordon Bedwell
2013-Apr-22 10:53 UTC
Re: after assets compiled locally bootstrap drop-down list does not work, no errors seen
On Mon, Apr 22, 2013 at 5:22 AM, Serguei Cambour <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote:> > On 22 Apr 2013, at 12:16, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Mon, Apr 22, 2013 at 5:06 AM, Javix <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> The application was deplyed without problems and works fine at Heroku. >> The problem is that it does not work properly in development (locally). >> For example, the bootstrap drop-dwpn list for user settings does not work >> any more, no errors in the browser console. Other features seem to work as >> needed. Any idea ? >> > > Caching. > > > Thank you Jordon for the reply. I just removed the assets folder created > inside ''public'', removed all the cookies and cache data from the browser > and reworked. Is there another solution to avoid to delete the assets > folder after compilation? >`config.serve_static_assets = false` in your development.rb -- 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.
Serguei Cambour
2013-Apr-22 11:34 UTC
Re: after assets compiled locally bootstrap drop-down list does not work, no errors seen
On 22 Apr 2013, at 12:53, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Apr 22, 2013 at 5:22 AM, Serguei Cambour <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On 22 Apr 2013, at 12:16, Jordon Bedwell <envygeeks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> On Mon, Apr 22, 2013 at 5:06 AM, Javix <s.cambour-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> The application was deplyed without problems and works fine at Heroku. >> The problem is that it does not work properly in development (locally). For example, the bootstrap drop-dwpn list for user settings does not work any more, no errors in the browser console. Other features seem to work as needed. Any idea ? >> >> Caching. > > Thank you Jordon for the reply. I just removed the assets folder created inside ''public'', removed all the cookies and cache data from the browser and reworked. Is there another solution to avoid to delete the assets folder after compilation? > > `config.serve_static_assets = false` in your development.rbAwesome! It works great. Thanks a lot! Cheers> > -- > You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/pe_qcMO4zoc/unsubscribe?hl=en-US. > To unsubscribe from this group and all its topics, 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. > >-- 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.