Resources to learn Ajax with Rails 3 [closed]
Is there any good resources to learn Ajax(jQuery) with Rails 3?
I'm just learning Rails 3 and finding this tutorial very useful
Chapter 12.2.5 (it is now in 11.2.5) has a bit on Ajax
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.
Rails 3 Remote Links and Forms
Exploring jQuery
I did a video of JS you can reuse. http://www.ror-e.com/info/videos/3 If you learn via videos you might like it.
精彩评论