Hi folks, i do not quite understand what is wrong with my code - it is even causing my server to hang up.
What i need to do is for the controller to return a JS script that when executed, will append a rendered partial to my $(".reviews")
# test.html.erb
$.getScript("/test");
# controller
wants.js do
render :partial => "/shared/activity"
end
#/shared/activity.js.erb
$("#reviews").append("<%= escape_javascript(render(:partial => /shared/activity )) %>");
I suspect there is something wrong with the way i am asking for the render in my controller. In fact, it throws up all sorts of weird errors.