Class: Clearance::UsersController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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

def create
  @user = ::User.new(params[:user])
  if @user.save
    (@user)
    redirect_back_or(url_after_create)
  else
    flash_failure_after_create
    render :template => 'users/new'
  end
end

#newObject



7
8
9
10
# File 'app/controllers/clearance/users_controller.rb', line 7

def new
  @user = ::User.new(params[:user])
  render :template => 'users/new'
end