Anyone have some tips on the best way to do this? I want to
conditionally include some javascript only if the app is running in
production mode…
One way, perhaps not the ‘best practise’ way, would be to do:
<%= javascript_tag ‘your_js_file’ if RAILS_ENV==‘production’ %>
That might do it.