Class: Gemgento::User::RegistrationSessionController

Inherits:
BaseController show all
Defined in:
app/controllers/gemgento/user/registration_session_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



15
16
17
18
19
20
21
22
23
24
# File 'app/controllers/gemgento/user/registration_session_controller.rb', line 15

def create
  case params[:activity]
    when 'sign_in'
      create_session
    when 'register'
      create_registration
    else
      raise "Unknown action - #{params[:activity]}"
  end
end

#newObject



10
11
12
13
# File 'app/controllers/gemgento/user/registration_session_controller.rb', line 10

def new
  @existing_user = User.new
  @new_user = User.new
end