How can I create a facebook style message system in Rails 3?
Posted
by
Angela
on Programmers
See other posts from Programmers
or by Angela
Published on 2011-06-28T16:30:20Z
Indexed on
2011/06/29
0:31 UTC
Read the original article
Hit count: 320
ruby-on-rails
|I am trying to create a basic message system that allows users to send messages to each other and display it in a simple "Inbox" that shows both messages received and sent, as well as the status of read or unread.
Ideally I could reuse existing code. But if not, can someone provide a framework to help me do it?
I started to use a single Message record that has UserMessage - one for the sender, one for the receiver. That way I could have separate status.
But I'm not sure I'm quite doing it right and would like some guidance. Thanks.
© Programmers or respective owner