Hi, I am stuck in a weird situation where in my production environment, an asset is being attempted to compress while rendering a view. I've all my assets put into public/assets folder via rake "assets:precompile"
production.rb has following configurations: -------------------------------------------------------------- # Disable live compilation of assets(Don't fallback to assets pipeline if a precompiled asset is missed) config.assets.compile = false # Assets pre-compilation task(rake assets:precompile) configurations config.assets.css_compressor = :yui config.assets.js_compressor = :yui config.assets.compress = true When I request for some page let say http://www.example.com/home, while generating the page response, Rails is trying to compress an asset named "jquery.bxslider.min" I've following code that is creating error. <%= content_for :js_include do %> <%= javascript_include_tag 'jquery.bxslider.min' %> <% end %> Error in log: ============= ActionView::Template::Error (undefined method `exitstatus' for nil:NilClass (in /example/lib/assets/javascripts/jquery.bxslider.min.js)): 57: <%= content_for :js_include do %> 58: <%= javascript_include_tag 'jquery.bxslider.min' %> 59: <% end %> The error is however for missing java(as I'm using YUI for compression, which depends on java) I don't want any live compression & compilation, as assets are already available in public/assets folder I am surprised, why Rails is trying to compress asset while rendering an action. Please advise. Regards Farukh D M -- 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+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f6292c48-66cd-46f9-b6d3-fb9b1e005c9f%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.