Retrospring/app/controllers/public_controller.rb

12 lines
246 B
Ruby
Raw Normal View History

2014-12-10 21:39:35 -08:00
class PublicController < ApplicationController
2014-12-12 08:54:13 -08:00
before_filter :authenticate_user!
2014-12-10 21:39:35 -08:00
def index
@timeline = Answer.all.reverse_order.paginate(page: params[:page])
respond_to do |format|
format.html
format.js
end
end
end