in my one project, code:
= link_to "add", new_me_category_path, class: "btn btn-success", remote: true
can correctly load the remote form.
But someone cannot work, the browser did not execute responese js code. I need to add "data: {type:" script "}" as follows:
= link_to "add", new_me_category_path, class: "btn btn-success", remote: true, data: {type: "script"}
I want to know the reason.
source
share