I have small project with users, users posts, friendships, comments. I want to make groups of users. Can you help me make it? or send to make links to tutorials or books. thank u so much
Asked
Active
Viewed 1,056 times
-1
-
its pretty simple, google for association in rails you will get your answer. – Naren Sisodiya Apr 15 '11 at 15:15
1 Answers
0
It sounds like you want a many-to-many relationship. There are two ways to do this, and this railscasts episode describes them (note that it is for Rails 2.x but the general idea carries over to Rails 3).
I'd also recommend looking at these two guides:

tjwallace
- 5,528
- 1
- 26
- 15