Retrospring/app/controllers/static_controller.rb

20 lines
333 B
Ruby

class StaticController < ApplicationController
def index
if user_signed_in?
@timeline = current_user.timeline.paginate(page: params[:page])
respond_to do |format|
format.html
format.js
end
end
end
def about
@admins = User.where(admin: true).order(:id)
end
def faq
end
end