Module: Pubcookie::UsersController::InstanceMethods
- Defined in:
- lib/pubcookie/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create_with_pubcookie ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/pubcookie/users_controller.rb', line 15 def @object = build_object(params[variable_name]) @object.set_fake_password! if @object.save flash[:notice] = "User '#{ @object.first_name} #{ @object.last_name}' was created" redirect_to after_create_url else if (params[:on_fail_action]) render :action => params[:on_fail_action] else render :action => 'new' end end end |