Hey there! I implemented a remote action in my Rails project, like this:
def example_action
respond_to do |format|
format.js {}
end
end
Somewhere in the view:
= link_to "example_action", example_action_path, remote: true
In my example_action.js.erb file:
$('#output').html("<%= j render(partial: 'output') %>");
In my _output.html.haml partial:
Hello, I am output
Everything is working fine, but I encounter a Missing template
error when I refresh the page on this route. What could be causing this issue?