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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -