I’m trying to get turbo morph to work for controller that calls redirect_to request.referer
, ie. the current page. The reason I’m using request.referer
is that the controller in question handles requests to add/edit/delete filters on several sub-tables of a larger object, meaning it can make requests from many different “pages” which to the user are just different tabs with different URLs.
I’ve made sure to add <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
to my application.html.erb
, but I’m struggling to get turbo morph working with this setup, so I’m wondering if it’s even possible with request.referer
, or if there is something else I’m missing?