title: Precompile rails AngularJS assets
body: <p>I am trying to compile my Rails app assets using RAILS_ENV=production bundle exec rake assets:precompile, but this doesn't compile my AngularJS assets, so my console report this:</p>
  
  <pre><code> ActionController::RoutingError (No route matches [GET] "/assets/app/views/products/index.html"):
  </code></pre>
  
  <p>My AngularJS assets are under "/assets/app/", so I tried to compile the angular folders by adding following into my production.rb but still not working.</p>
  
  <pre><code> config.assets.precompile += %w(app/* bootstrap/* datatable/* ....
  </code></pre>
  
  <p>I can find the compiled index file under this path:</p>
  
  <pre><code> public/assets/app/views/products/index-2429bd0f8fc0762dcc075e51f0306c5b.html
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>UPDATE </p>
  
  <p>Also tried  config.serve_static_assets = false in production, but it cause more missing assets errors</p>
  
  <p>Thanks</p>