I'm a beginner with ajax. I have a slider and a content div, the slider has links (event, news etc.), I want to create ajax load to content div (like Facebook).
I used Google, but I found very old articles (rails 2, but I use rails3).
In Rails 3 tutorial book has jQuery ajax with rails3, but it's very tiny.

I'am at this point:
I setting up my form with remote tag (:remote => true), and I renamed new.html.haml to _new.html.haml partial. I think I must create a new.js.erb file, which contains:

$(".menuitem").load("<%= escape_javascript(render('article/new')) %>") .content"); //just an idea

Is my logic is right?
If you have a good tutorial or example about rails and ajax, please share with me.

Edit
Report