开发者

Resources to learn Ajax with Rails 3 [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments开发者_StackOverflow中文版, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜