2015-01-13 04:23:12 -08:00
|
|
|
class GroupController < ApplicationController
|
2020-04-18 16:45:50 -07:00
|
|
|
before_action :authenticate_user!
|
2015-01-13 04:23:12 -08:00
|
|
|
|
|
|
|
def index
|
2015-01-17 10:07:31 -08:00
|
|
|
@group = current_user.groups.find_by_name!(params[:group_name])
|
2015-01-17 10:14:18 -08:00
|
|
|
@timeline = @group.timeline.paginate(page: params[:page])
|
2015-01-13 04:23:12 -08:00
|
|
|
end
|
2015-01-13 14:21:16 -08:00
|
|
|
end
|