rendering partial using jquery in js.erb file giving error. render is not a function <p>below is code in file '<code>app_erb.js.erb</code>'</p> <pre><code>$(function(){ $('.add_more_element').click(function(e){ e.preventDefault(); $(this).siblings('.remove_this_element').show('slow'); $(this).hide('slow'); $(this).closest('.form-group').add('&lt;%=j render 'resumes/resume_certification' %&gt;'); }); }); </code></pre> <p>and i have partial <code>views/resumes/_resume_certification.html.erb</code></p> <p>but when i load my app it gives me NoMethodError at /resumes/new undefined method `render'.</p> <p>What i am missing in the whole process for rendering a partial using javascript. </p>