I wonder how I create an internal messagerie like twitter or Facebook between two users with Ruby on rails.
What is the table with Main and foreigners keys do I use?
Have I to do Messagerie/id/User_id/
But there are two Users.
Which belongs_to
and which has has_many
?
Do you know what I mean. Thanks for your precious help.