mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 22:29:38 +02:00
Enable turbo refresh in layout/auth & Fix registrations controller create fail w/ status (#544)
This commit is contained in:
parent
2c257a2a4b
commit
56743eb380
2 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ class RegistrationsController < ApplicationController
|
||||||
redirect_to root_path
|
redirect_to root_path
|
||||||
else
|
else
|
||||||
flash[:alert] = t(".failure")
|
flash[:alert] = t(".failure")
|
||||||
render :new
|
render :new, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
<%= javascript_importmap_tags %>
|
<%= javascript_importmap_tags %>
|
||||||
|
|
||||||
<%= hotwire_livereload_tags if Rails.env.development? %>
|
<%= hotwire_livereload_tags if Rails.env.development? %>
|
||||||
|
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="h-full">
|
<body class="h-full">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue