ruby on rails 4 - js.erb file is not executing content -
I am creating Rails 4.1.4 web application and in one of my views I am sending a form through Ajax I am). I've created a file named index.js.erb and this content is:
$ ('# search_results'). Html ('& lt;% = j ("# {rendere (" admin / customer / result "}}). Html_safe%>;); \ n \ n \ n Going blank Thank you for all help!
try
$ ('# search_results') .html ("& lt;% = j (render "Administrator / Client / Results")%>;);
Comments
Post a Comment