Retrospring/app/controllers/public_controller.rb

10 lines
209 B
Ruby

class PublicController < ApplicationController
def index
@timeline = Answer.all.reverse_order.paginate(page: params[:page])
respond_to do |format|
format.html
format.js
end
end
end