The personal finance app for everyone
Enable turbo refresh in layout/auth & Fix registrations controller create fail w/ status (#544)
Yu Le56743eb38003
diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rbindex 1071f0f6..40d13f16 100644--- a/app/controllers/registrations_controller.rb+++ b/app/controllers/registrations_controller.rb@@ -19,7 +19,7 @@ class RegistrationsController < ApplicationControllerredirect_to root_pathelseflash[:alert] = t(".failure")- render :new+ render :new, status: :unprocessable_entityendenddiff --git a/app/views/layouts/auth.html.erb b/app/views/layouts/auth.html.erbindex 2aaa4a52..284a06b5 100644--- a/app/views/layouts/auth.html.erb+++ b/app/views/layouts/auth.html.erb@@ -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">