Is there any good resources to learn Ajax(jQuery) with Rails 3?
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.
This Railscast is a good resource
But really, jQuery AJAX is what it is regardless of your framework. You can always have a click event fire an AJAX call to your controller, have your controller return a JSON object, and have a success handler that keys off of properties from this object to update the DOM. The main difference with Rails is that you can send back a js.erb template instead, which can execute some JavaScript as well as render some partials.