in one project of mine, the code:
= link_to "add", new_me_category_path, class: "btn btn-success", remote: true
can load remote form correctly.
But some one can not work, browser did not execute the responese js code. I need to add "data: {type: "script"}" like this :
= link_to "add", new_me_category_path, class: "btn btn-success", remote: true, data: {type: "script"}
I want to know the reason.