Return if there is a failure to create a user

This commit is contained in:
Raphael 2010-10-19 17:29:22 -07:00
parent 360891496e
commit 14a5eee41c

View file

@ -9,6 +9,7 @@ class RegistrationsController < Devise::RegistrationsController
rescue MongoMapper::DocumentNotValid => e
flash[:error] = e.message
redirect_to new_user_registration_path
return
end
if user.save
flash[:notice] = I18n.t 'registrations.create.success'