Class: Authenticate::UsersController

Inherits:
AuthenticateController show all
Defined in:
app/controllers/authenticate/users_controller.rb

Overview

Controller to create new users.

Instance Method Summary collapse

Instance Method Details

#createObject


13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/authenticate/users_controller.rb', line 13

def create
  @user = user_from_params

  if @user.save
     @user
    redirect_back_or url_after_create
  else
    render template: 'users/new'
  end
end

#newObject


8
9
10
11
# File 'app/controllers/authenticate/users_controller.rb', line 8

def new
  @user = user_from_params
  render template: 'users/new'
end