diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 318c31e..55c6243 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -34,7 +34,7 @@ class UsersController < ApplicationController redirect_to root_url rescue => e logger.error "User creation failed: #{e.message}" - flash[:error] = "Something went wrong. Please try again." + flash[:danger] = "Something went wrong. Please try again." render "new", status: :unprocessable_entity end else