Class: FeedbackWithCountryState::UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- FeedbackWithCountryState::UsersController
- Defined in:
- app/controllers/feedback_with_country_state/users_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'app/controllers/feedback_with_country_state/users_controller.rb', line 19 def create @user = User.new(user_params) if @user.save redirect_to @user, notice: 'User was successfully created.' else render action: 'new' end end |
#index ⇒ Object
6 7 8 |
# File 'app/controllers/feedback_with_country_state/users_controller.rb', line 6 def index @users = User.all end |
#new ⇒ Object
14 15 16 |
# File 'app/controllers/feedback_with_country_state/users_controller.rb', line 14 def new @user = User.new end |
#show ⇒ Object
11 12 |
# File 'app/controllers/feedback_with_country_state/users_controller.rb', line 11 def show end |