Class: QuestionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- QuestionsController
- Defined in:
- app/controllers/questions_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
caches_page_with_cache_marker, #raise_not_found!
Instance Method Details
#index ⇒ Object
8 9 10 11 12 13 |
# File 'app/controllers/questions_controller.rb', line 8 def index @categories = QuestionCategory.includes(:questions).all # @questions = Question.all respond_with @categories end |