Self-Referencial ActiveRecord Relations

Hi Guys,
I’m new to Rails so my question might sound rather dull but here it
goes:

I’ve got an User model, and a Group model which has a name .
A User can have none or many groups of Users
A User can be related to many users without any group (friendship)

How can I implement such a thing in rails 3.2, or have you got a nice
reference for this matter ?
Thanks in advance.

On Mon, Sep 24, 2012 at 1:22 PM, Dreescan [email protected] wrote:

How can I implement such a thing in rails 3.2, or have you got a nice
reference for this matter ?

Great reference for you:

When you’re done with that, go up a level and see what else they’ve got.

-Dave


Dave A., T. Rex of Codosaurus, LLC… aka
Available Secret-Cleared Ruby/Rails Freelancer
(NoVa/DC/Remote); see http://www.Codosaur.us/.