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 2012-09-25 17:23
on 2012-09-25 17:26
On Mon, Sep 24, 2012 at 1:22 PM, Dreescan <abdoul@lamoulade.com> 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: http://guides.rubyonrails.org/association_basics.html When you're done with that, go up a level and see what else they've got. -Dave -- Dave Aronson, T. Rex of Codosaurus, LLC... aka Available Secret-Cleared Ruby/Rails Freelancer (NoVa/DC/Remote); see http://www.Codosaur.us/.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.