I have a rails app that I need to use Ajax to post on my model.
I have only this line in my filename.js.erb
$('#new-band a').html('<%= j render 'form'%>')
Here is my error:
Showing /<snip>/ajax/app/views/layouts/application.html.erb where line #8 raised:
undefined method `render' for #<#<Class:0x00007fad63eb3b98>:0x00007fad5e2c13f8>
j(render('form'))to be sure it is being parsed as intended by Ruby.filename.js.erbbeing called? can you add the controller ?