title: Page Specific Javascript code in rails 4
body: <p>I have seen many answers to similar posts on Stackoverflow and I tried implementing it but it is not working. I have done the following things</p>
  
  <p>1) Removed //= require_tree . from assets/javascripts/application.js</p>
  
  <p>2) Added //= require users in the assets/javascripts/application.js (where users.js is my javascript file in the same folder as the application.js resides)</p>
  
  <p>In my new.html.erb I have included the following line</p>
  
  <pre><code>   &lt;%= javascript_include_tag "users" %&gt;
  </code></pre>
  
  <p>3) users.js contains simple javascript code like "alert(6)"</p>
  
  <p>When I make request to users/new thru localhost I do not get any alert although I can see my users.js included in the html but there is no code in that.
  Can anyone please help me on this??</p>