I am not using erb, but using haml instead. So something like:
$("<%= escape_javascript(render @user) %>").appendTo("#users");
in http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html is not working.
Does anyone have ideas?
I am not using erb, but using haml instead. So something like:
$("<%= escape_javascript(render @user) %>").appendTo("#users");
in http://edgeguides.rubyonrails.org/working_with_javascript_in_rails.html is not working.
Does anyone have ideas?