mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
Enable turbo refresh in layout/auth & Fix registrations controller create fail w/ status (#544)
This commit is contained in:
@@ -19,7 +19,7 @@ class RegistrationsController < ApplicationController
|
||||
redirect_to root_path
|
||||
else
|
||||
flash[:alert] = t(".failure")
|
||||
render :new
|
||||
render :new, status: :unprocessable_entity
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<%= javascript_importmap_tags %>
|
||||
|
||||
<%= hotwire_livereload_tags if Rails.env.development? %>
|
||||
<%= turbo_refreshes_with method: :morph, scroll: :preserve %>
|
||||
</head>
|
||||
|
||||
<body class="h-full">
|
||||
|
||||
Reference in New Issue
Block a user