in one project of mine, the code:
= link_to \"add\", new_me_category_path, class: \"btn btn-success\", remote: true
can load remote form
If you loading script correct template should have .ejs extension (or render raw script like this: render js: 'some code'). You must escape html using j in ejs template like this:
template.ejs
$('some selector').html('<%= j render('some template') %>');
Please give me also url. Correct one should end with .js.