Hi, i am trying to build a news feed. The way information is put into
it, is from when the other db i have is updated, that is all working. I
am just having trouble with showing the feed in the view.
I keep getting this error:
NoMethodError in Admin/post#recent
Showing app/views/admin/post/_feed.rhtml where line #1 raised:
undefined method `fed’ for #Array:0x35207d0
Extracted source (around line #1):
1: <%= @newsfeeds.fed %>
this is my view:
<%= render :partial => "feed", :collection => @newsfeeds %>
And this is my controller:
@newsfeeds = Newsfeeds.find(:all)
It seems to work it i have it out of a partial and if the controller is
newsfeed.find(:first), but i want to show everything in the db??
Any help would be appreciated,