Commit 663d956
Changed files (1)
app
controllers
app/controllers/registrations_controller.rb
@@ -11,7 +11,8 @@ class RegistrationsController < ApplicationController
User.create!(user_params)
redirect_to new_session_path
rescue ActiveRecord::RecordInvalid => invalid
- redirect_to new_registration_path, error: invalid.record.errors.full_messages
+ redirect_to new_registration_path,
+ error: invalid.record.errors.full_messages
end
private