From c5f3193d3c9fcf841164c588b1150244ecb049c5 Mon Sep 17 00:00:00 2001 From: pvincent Date: Sat, 6 Apr 2024 02:56:26 +0400 Subject: [PATCH] turbo morph --- app/views/layouts/application.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 3349ed7..c74201d 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -8,12 +8,13 @@ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> <%= javascript_importmap_tags %> + + <%= turbo_refreshes_with method: :morph, scroll: :preserve %> + <%= content_for :head %> - <%=render '/layouts/notification' %> -
<%= yield %>