Class: Clearance::UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/clearance/users_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#show

Methods included from Authorization

#authorize, #deny_access

Methods included from Authentication

#authenticate, #current_user, #current_user=, #handle_unverified_request, #sign_in, #sign_out, #signed_in?, #signed_out?

Instance Method Details

#createObject



10
11
12
13
14
15
16
17
18
19
# File 'app/controllers/clearance/users_controller.rb', line 10

def create
  @user = user_from_params

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

#newObject



5
6
7
8
# File 'app/controllers/clearance/users_controller.rb', line 5

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