What is the best way to load a different Javascript file based on your environment (production or development) in Rails 3.2? I'm trying to create a global (yes, global) javascript variable which should vary based on environment. That variable is called by JQuery but is required by some other javascript files I've written.
Is it best to generate an application.js.erb which is dynamic based on the environment we are running or am I missing something?
Thanks