title: Javascript condition based on Rails variable
body: <p>I want to set a global constant (in <code>Rails</code>) and then depending on that I want to put a condition in a <code>JavaScript</code> file (which is included in every page of my app). I also have some Rails dependent code based on this variable.</p>
  
  <p>What is the best way to do this ?</p>