Cheers! I have remote action in my rails project, smth like:
def foo
respond_to do |format|
format.js {}
end
end
Somewhere in view:
= link_to "foo", foo_path, remote: true
In my foo.js.erb file:
$('#bar').html("<%= j render(partial: 'bar') %>");
In my _bar.html.haml partial:
hello, i am bar
It's all okay and well-working, but it returns me Missing template
error when I refreshing page on this route. What's the problem?