Class: Authuser::UsersController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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

def create
  @user = ::User.new params[:user]
  if @user.save
    ::AuthuserMailer.deliver_confirmation @user
    flash[:notice] = translate(:deliver_confirmation,
      :scope   => [:authuser, :controllers, :users],
      :default => "You will receive an email within the next few minutes. " <<
                  "It contains instructions for confirming your account.")
    redirect_to url_after_create
  else
    render :template => 'users/new'
  end
end

#newObject



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

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