diff --git a/app/controllers/group_controller.rb b/app/controllers/group_controller.rb index cd774b4e..7c3eb2c1 100644 --- a/app/controllers/group_controller.rb +++ b/app/controllers/group_controller.rb @@ -3,6 +3,6 @@ class GroupController < ApplicationController def index @group = current_user.groups.find_by_name!(params[:group_name]) - @timeline = group.timeline.paginate(page: params[:page]) + @timeline = @group.timeline.paginate(page: params[:page]) end end