How can I create a facebook style message system in Rails 3?
- by Angela
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.