Personally, I'd probably take the approach of adding a 'feed_item'
table to the database and tie it to the user with a 'has_many'
relationship

then when user x updates their favourites, you can put something like
"#{user.name} has added #{recipe.name} to their favourites" into the
feed_item table with a user_id passed in as a parameter, and you can
make these feed items appear on the homepage of whoever is following
or is friends with this user...

no plugins required (i don't think anyway)

On Dec 24, 8:41 pm, "Ashley Williams" <a.j.r.willi...@googlemail.com>
wrote:
> Well it would be paginated, only X at a time will be grabbed for each
> page — 1-25, 26-50, 51-75, or something. Wont make much difference at
> a million rows than when you had only a handful! :)
>
> Good luck! :)
>
> On Wed, Dec 24, 2008 at 7:42 PM, Dave Amos
>
> <rails-mailing-l...@andreas-s.net> wrote:
>
> > Ashley Williams wrote:
> >> Its defiantly possible, though I'm not that good with rails yet, so
> >> I'm not sure exactly how you add conditions on other tables. But I
> >> don't think the performance would be that bad, it'd only have to span
> >> a few tables, which isn't that bad considering an average profile page
> >> would do the same; plus it can be cached a lot too.
>
> >> On Wed, Dec 24, 2008 at 6:27 PM, Dave Amos
>
> > Yeah, good point. If the table got crazy huge, I could start cutting off
> > really old entries to minimize the calculations.
>
> > Thanks so much for the the help! I've already got a little feed that
> > shows you your recent activity, and I think it's trivial to create feeds
> > for all activity your friends have taken and all activity on recipes you
> > created. This is exciting! :)
> > --
> > Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to