When I’m using
link_to thing, remote: true
any my user clicks the link to open in a new tab, the rails server throws a format error, as it was expecting a JS request, but received and HTML request (as you would expect!).
What is the best practice for using Rails’ UJS and link_to
to reload small parts of your layout via AJAX?