Skip to content

Commit

Permalink
User validations fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
leandroo committed Jun 11, 2010
1 parent a6977b2 commit afb1afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/users_controller.rb
Expand Up @@ -105,7 +105,7 @@ def create
@user = User.new(params[:user])

respond_to do |format|
if @user.register!
if @user.valid? && @user.register!
flash[:notice] = "User was successfully created."
format.html { redirect_to(admin_user_url(@user)) }
format.xml { render :xml => @user, :status => :created, :location => @user }
Expand Down

0 comments on commit afb1afb

Please sign in to comment.