title: Ruby on Rails: How to Render Partial in a view via Jquery
body: <p>I have a 'project' form as a partial. I'm trying to use jquery to render the partial when user clicks a button:</p>
  
  <pre><code>$('.projects').append("&lt;%= render partial: 'projects/project') %&gt;").html_safe
  </code></pre>
  
  <p>But using the above code is literally rendering "&lt;%= render partial: 'projects/project') %>" on the page instead of the actual partial.</p>