mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:19:52 +01:00
10 lines
259 B
Ruby
10 lines
259 B
Ruby
class QuestionController < ApplicationController
|
|
def show
|
|
@question = Question.find(params[:id])
|
|
@answers = @question.answers.reverse_order.paginate(page: params[:page])
|
|
respond_to do |format|
|
|
format.html
|
|
format.js
|
|
end
|
|
end
|
|
end
|