title: Rails 4 assets.precompile
body: <p>This is a common question in here, but none of the solutions fixed my problem, so here it goes: </p>
  
  <p>I am adding ace.js to my rails4 app, So what I did was</p>
  
  <pre><code>- Added vendor/assets/ace/ace.js
  - Created vendor/assets/ace/index.js , with content
    //= require ace  
  - Added the following to my production.rb
    config.assets.precompile += %w( index.js )  
    config.assets.paths &lt;&lt; Rails.root.join("vendor", "assets", "ace")
  </code></pre>
  
  <p>So in my layout file I have:</p>
  
  <pre><code>&lt;%= javascript_include_tag "ace" %&gt;
  </code></pre>
  
  <p>and it works just fine on dev, but when I run:</p>
  
  <pre><code>RAILS_ENV=production bundle exec rake assets:precompile
  </code></pre>
  
  <p>It doest not create the digest version of the ace file.</p>
  
  <p>Am I missing something? </p>