Class: Boxroom::SignupController

Inherits:
ApplicationController show all
Includes:
BaseController
Defined in:
app/controllers/boxroom/signup_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject

Note: @user is set in require_valid_token



9
10
# File 'app/controllers/boxroom/signup_controller.rb', line 9

def edit
end

#updateObject

Note: @user is set in require_valid_token



13
14
15
16
17
18
19
# File 'app/controllers/boxroom/signup_controller.rb', line 13

def update
  if @user.update_attributes(permitted_params.user.merge({:password_required => true}))
    redirect_to new_session_url, :notice => t(:signed_up_successfully)
  else
    render :action => 'edit'
  end
end