Class: UsersController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- UsersController
- Defined in:
- lib/install/templates/app/controllers/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/install/templates/app/controllers/users_controller.rb', line 11 def create @user = User.new(user_params) if @user.save sign_in(@user) redirect_to :root else render :new, status: :unprocessable_entity end end |
#edit ⇒ Object
22 |
# File 'lib/install/templates/app/controllers/users_controller.rb', line 22 def edit; end |
#new ⇒ Object
7 8 9 |
# File 'lib/install/templates/app/controllers/users_controller.rb', line 7 def new @user = User.new end |