Retrospring/app/controllers/group_controller.rb

9 lines
235 B
Ruby

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