Ruby on Rails ajax 500 syntax error -
Ruby on Rails ajax 500 syntax error - i have static controller , users controller. i have users profile page , want utilize ajax replace existing code form partial. on page, have edit button routes edit action in users controller , goes edit.js.erb view. in view have next code: $("<%= escape_javascript(render 'static/profile_form'%>").appendto("#ajax-profile"); everytime seek , create work, error this: started "/users/edit" 127.0.0.1 @ 2014-10-05 17:42:19 -0400 started "/users/edit" 127.0.0.1 @ 2014-10-05 17:42:19 -0400 processing userscontroller#edit js processing userscontroller#edit js user load (0.1ms) select "users".* "users" "users"."id" = ? limit 1 [["id", 2]] user load (0.1ms) select "users".* "users" "users"."id" = ? limit 1 [["id", 2]] rendered users/edit.js.erb (1.0ms) rendered use...