I have following file. Displaying error:
SyntaxError (/home/ubuntu/workspace/app/views/responses/destroy.js.erb:1: syntax error, unexpected =>, expecting ')'
....append=( j render (:partial => "projects/new_response", :lo...
I cant found, what wrong with code?
destroy.js.erb
$('.responses').replaceWith('<%= j render (:partial => "projects/new_response", :locals => { project: @project } )%> ');
How write correct?