I have a 'project' form as a partial. I'm trying to use jquery to render the partial when user clicks a button:
$('.projects').append("<%= render partial: 'projects/project') %>").html_safe
But using the above code is literally rendering "<%= render partial: 'projects/project') %>" on the page instead of the actual partial.
erb
extension in it, if it is then rename fromfile.js
tofile.js.erb
– Cleavland.html_safe
which is ruby, and you said form partial, so idk. – Cleavland