title: How to render view template by jQuery in Rails
body: <p>I need to render view template by jQuery. I have template 'category.html.erb' and file 'category.js.erb' with following code:</p>
  
  <pre><code>    $("#block").html("&lt;%= escape_javascript(render :template =&gt; 'category') %&gt;");
  </code></pre>
  
  <p>but it doesn't render category view template.</p>
  
  <p>Please help me!</p>