Class: Answers::AnswersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Answers::AnswersController
- Defined in:
- app/controllers/answers/answers_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#after_sign_in_path_for, #redirect_to_back
Instance Method Details
#index ⇒ Object
6 7 8 9 |
# File 'app/controllers/answers/answers_controller.rb', line 6 def index @answers = Answer.all respond_with(@answers) end |
#show ⇒ Object
11 12 13 |
# File 'app/controllers/answers/answers_controller.rb', line 11 def show respond_with(@answer) end |