Retrospring/app/controllers/question_controller.rb

7 lines
160 B
Ruby

class QuestionController < ApplicationController
def show
@question = Question.find(params[:id])
@answers = @question.answers.reverse_order
end
end