diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb index f3da1ec8a..b3e826077 100644 --- a/app/controllers/groups_controller.rb +++ b/app/controllers/groups_controller.rb @@ -2,7 +2,7 @@ class GroupsController < ApplicationController before_filter :authenticate_user! def index - @posts = Post.paginate :page => params[:page], :order => 'created_at DESC' + @posts = current_user.posts.paginate :page => params[:page], :order => 'created_at DESC' end def create diff --git a/app/views/groups/index.html.haml b/app/views/groups/index.html.haml index b3b4d2acb..e4d1ecca2 100644 --- a/app/views/groups/index.html.haml +++ b/app/views/groups/index.html.haml @@ -3,6 +3,7 @@ = current_user.profile.first_name = render "shared/publisher" + %ul#stream - for post in @posts = render type_partial(post), :post => post