Class: Clearance::UsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Clearance::UsersController
- Defined in:
- app/controllers/clearance/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 sign_in(@user) redirect_back_or(url_after_create) else flash_failure_after_create render :template => 'users/new' end end |
#new ⇒ Object
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 |