@group now holds the current group
This commit is contained in:
parent
927ec9678f
commit
1c26af4c8c
|
@ -2,6 +2,7 @@ class GroupController < ApplicationController
|
|||
before_filter :authenticate_user!
|
||||
|
||||
def index
|
||||
@timeline = current_user.groups.find_by_name!(params[:group_name]).timeline.paginate(page: params[:page])
|
||||
@group = current_user.groups.find_by_name!(params[:group_name])
|
||||
@timeline = group.timeline.paginate(page: params[:page])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue