Search code examples
ruby-on-railsrails-assets

Rails assets app/assets and vendor/assets


I have read following in an article

All of your custom Javascript, stylesheets, and images should go in the app/assets/.

All third-party code that you are using (e.g. jQuery, backbone.js, etc.) should be placed in the vendor/assets/ directory

But I did not find in the article - Why it is recommended so, any reasons?


Solution

  • There is no restriction that you cant put third party jQuery/CSS in the app/assets folder.

    But its recommended to put the third party assets in the vendor file. It will be easily manageable for the large applications and will save a lots of time in the long run.