retrospring/app/controllers/group_controller.rb
2015-01-17 19:14:18 +01:00

8 lines
235 B
Ruby

class GroupController < ApplicationController
before_filter :authenticate_user!
def index
@group = current_user.groups.find_by_name!(params[:group_name])
@timeline = @group.timeline.paginate(page: params[:page])
end
end