I have my assets folder structure like this
assets
javascripts
products
–product.js
–productValidate.js
store
–store.js
I want the project.js and projectValidate.js to be added in my
application.js as a part of asset pipe-lining only when actions in
product controller is called and store.js when actions in store
controller is called. How can i achieve this in rails 3.1?