title: How to update partial using Ajax call and then render in Rails?
body: <p>I am not using erb, but using haml instead. So something like: </p>
  
  <pre><code>$("&lt;%= escape_javascript(render @user) %&gt;").appendTo("#users"); 
  </code></pre>
  
  <p>in <a href="http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html" rel="nofollow">http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html</a> is not working.</p>
  
  <p>Does anyone have ideas?</p>