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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.