adding flash message with validation errors, and redirect to sign_up
This commit is contained in:
@@ -15,7 +15,8 @@ class UsersController < ApplicationController
|
|||||||
redirect_to home_dashboard_index_path
|
redirect_to home_dashboard_index_path
|
||||||
else
|
else
|
||||||
@user = user
|
@user = user
|
||||||
render :new
|
flash[:error] = user.errors.full_messages.to_sentence
|
||||||
|
redirect_to :sign_up
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user