title: Jquery ajax and Rails 3 -> load content
body: <p>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).<br />
  I used Google, but I found very old articles (rails 2, but I use rails3).<br />
  In Rails 3 tutorial book has jQuery ajax with rails3, but it's very tiny.</p>
  <p>I'am at this point:<br />
  I setting up my form with remote tag (:remote =&gt; true), and I renamed new.html.haml to _new.html.haml partial. I think I must create a new.js.erb file, which contains:</p>
  <pre><code>$(&quot;.menuitem&quot;).load(&quot;&lt;%= escape_javascript(render('article/new')) %&gt;&quot;) .content&quot;); //just an idea
  </code></pre>
  <p>Is my logic is right?<br />
  If you have a good tutorial or example about rails and ajax, please share with me.</p>