[Rails] How to display controller specific javascript in rails 3.1?
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?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home