Hi,
take a look at Forulio - Ruby on Rails based forum.
How we did this there.

There is model:

class ReadTopic < ActiveRecord::Base
  belongs_to :user
  belongs_to :topic
  belongs_to :forum
end

this model store last read post in topic. So when you open topic but did 
not look at last post it still stays unread.

You can look live how it works at http://forulio.com

and browse code:

http://svn2.assembla.com/svn/forumbla/trunk/
-- 
Posted via http://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to