mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-20 14:04:21 -04:00
Read posts from member.posts
This commit is contained in:
1 parent
91897273be
commit
312cd0d770
2 files changed
+2
-1
No files matched your search
@@ -17,6 +17,7 @@ class MembersController < ApplicationController
|
||||
@twitter_auth = @member.auth('twitter')
|
||||
@flickr_auth = @member.auth('flickr')
|
||||
@facebook_auth = @member.auth('facebook')
|
||||
@posts = @member.posts
|
||||
|
||||
@activity = TimelineService.member_query(@member).limit(30)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%channel
|
||||
%title #{@member.login_name}'s recent posts (#{ENV['GROWSTUFF_SITE_NAME']})
|
||||
%link= member_url(@member)
|
||||
- @posts.each do |post|
|
||||
- @member.posts.each do |post|
|
||||
%item
|
||||
%title #{post.subject} by #{post.author.login_name}
|
||||
%pubdate= post.created_at.to_s(:rfc822)
|
||||
|
||||
Reference in new issue
Block a user