Retrospring/app/controllers/group_controller.rb

8 lines
215 B
Ruby
Raw Normal View History

2015-01-13 04:23:12 -08:00
class GroupController < ApplicationController
2015-01-13 14:21:16 -08:00
before_filter :authenticate_user!
2015-01-13 04:23:12 -08:00
def index
2015-01-13 14:21:16 -08:00
@timeline = current_user.groups.find_by_name!(params[:group_name]).timeline.paginate(page: params[:page])
2015-01-13 04:23:12 -08:00
end
2015-01-13 14:21:16 -08:00
end