I am using rails 3.1. I send in my ajax request as json object but in my controller inside my respond_to function i would like to render a rjs file. How can I achieve this?
rjs files are no longer part of Rails 3. There are however .js.erb files. Not having developed in Rails 2 I'm not totally sure what .rjs files used to contain so that I cannot answer.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.