Class: Flms::UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Flms::UsersController
- Defined in:
- app/controllers/flms/users_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'app/controllers/flms/users_controller.rb', line 16 def create @user = Flms::User.new params[:user] if @user.save redirect_to users_path, notice: 'User created.' else render action: "new" end end |
#destroy ⇒ Object
25 26 27 28 29 |
# File 'app/controllers/flms/users_controller.rb', line 25 def destroy @user = Flms::User.find params[:id] @user.destroy redirect_to users_path end |