retrospring/app/controllers/group_controller.rb

9 lines
235 B
Ruby
Raw Normal View History

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