0

We have an older Rails 3.2 app that is using the Asset pipeline. It is now including both the original js files from app/assets AND an application.js. Ideally, we'd like to remove the application.js from the page in development. Is there a config variable to have the uncompressed, un-minified JavaScript files from app/assets only?

The layout application.html.erb is

  <%= stylesheet_link_tag    "application" %>
  <%= javascript_include_tag "application" %>
halfer
  • 19,824
  • 17
  • 99
  • 186
timpone
  • 19,235
  • 36
  • 121
  • 211
  • Did you `rake assets:precompile` in development? What does your config look like? The default development config should serve just the unminified asset files – eirikir Sep 08 '15 at 19:31
  • I think I did run `rake assets:precompile` and that might be causing the problem. Is there a way to undo that? I've also deleted public/assets via `rm -rf public/assets` but this didn't seem to affect it. – timpone Sep 08 '15 at 19:32
  • possible duplicate of [How to avoid precompiled assets being served in development mode?](http://stackoverflow.com/questions/8013478/how-to-avoid-precompiled-assets-being-served-in-development-mode) – eirikir Sep 08 '15 at 20:38

0 Answers0