title: precompile coffeescript files ( Rails 4 )
body: <p>In my Rails 4 app I have a <code>users.js.coffee</code> file in <code>app/assets/javascripts</code>. It compiles and works fine in development. But when I deploy to heroku it's not working. According to Railsguides:</p>
  
  <p>The matcher (and other members of the precompile array; see below) is applied to final compiled file names. This means anything that compiles to JS/CSS is excluded, as well as raw JS/CSS files; for example, .coffee and .scss files are not automatically included as they compile to JS/CSS.</p>
  
  <p>So I added the following line to my <code>config/environments/production.rb</code></p>
  
  <pre><code>config.assets.precompile += %w ( users.js.coffee )
  </code></pre>
  
  <p>It's still not forcing the file to be precompiled. Do you know how I may force Rails to precompile it (I use <code>RAILS_ENV=production bundle exec rake assets:precompile</code> to precompile)?</p>
  
  <p>Thanks a lot.</p>