title: can you use embedded ruby in custom javascript files in rails?
body: <p>How does one embed ruby code in javascript for rails?  I know you can do this easily in javascript responders for action methods (for e.g. in create.erb.js). But is there a way to do this for other custom javascript files that are included in the application using javascript_include_tag?  </p>
  
  <p>For e.g. in create.erb.js I can write code such as &lt;%= if current_user_name ="xyz" %></p>
  
  <p>Is there a way to have this type of embedding in a custom js file such as custom.js that is used across the application and not just for generating a response for format.js. </p>
  
  <p>Thanks,</p>
  
  <p>Tabrez</p>