broke out group index and show

This commit is contained in:
danielvincent 2010-08-14 00:27:43 -07:00
parent c81ea5a632
commit 18cd4b858a
3 changed files with 11 additions and 1 deletions

View file

@ -31,7 +31,6 @@ class GroupsController < ApplicationController
@people_ids = @group.people.map {|p| p.id}
@posts = Post.paginate :person_id => @people_ids, :order => 'created_at DESC'
@group = Group.first(:id => params[:id])
render :index
end
def edit

View file

@ -1,3 +1,7 @@
%h1
welcome home,
= current_user.profile.first_name
= render "shared/publisher"
%ul#stream
- for post in @posts

View file

@ -0,0 +1,7 @@
= render "shared/publisher"
%ul#stream
- for post in @posts
= render type_partial(post), :post => post
#pagination
= will_paginate @posts