broke out group index and show
This commit is contained in:
parent
c81ea5a632
commit
18cd4b858a
3 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
%h1
|
||||
welcome home,
|
||||
= current_user.profile.first_name
|
||||
|
||||
= render "shared/publisher"
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
|
|
|
|||
7
app/views/groups/show.html.haml
Normal file
7
app/views/groups/show.html.haml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
= render "shared/publisher"
|
||||
%ul#stream
|
||||
- for post in @posts
|
||||
= render type_partial(post), :post => post
|
||||
#pagination
|
||||
= will_paginate @posts
|
||||
|
||||
Loading…
Reference in a new issue