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
    ::ClearanceMailer.deliver_confirmation @user
    flash_notice_after_create
    redirect_to(url_after_create)
  else
    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