Class: UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- UsersController
- Defined in:
- app/controllers/users_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/users_controller.rb', line 4 def create params[:component] = "forms" @user = User.new(user_params) if @user.valid? # Toast message else render "examples/components/forms", status: 422 end end |