@group now holds the current group

This commit is contained in:
nilsding 2015-01-17 19:07:31 +01:00
parent 927ec9678f
commit 1c26af4c8c
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ class GroupController < ApplicationController
before_filter :authenticate_user! before_filter :authenticate_user!
def index 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
end end