title: Rails 5 : How to resolve Asset was not declared to be precompiled in production from vendor folder
body: <p>I am newbee in Rails trying to figure out how to use my image/css/js which is kept in vendor folder. I have created a fresh project kept one image under 
  vendor/assets/images folder whose name is "sort.png" as per guideline assest folder will automatically search in lib/assets, app/assets and vendor/assets folder. but while running the server i am getting "Asset was not declared to be precompiled in production."</p>
  
  <p>I m trying to access image link in view as   </p>
  
  <pre><code>&lt;%= image_tag "sort.png" %&gt;
  </code></pre>
  
  <p>I have seen issue related to vendor in stackoverflow but everyone suggest to add 
  configuration like Rails.application.config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif) in assets.rb file which works for image . but how to resolve it for css and js .</p>