Well, as in the title, I’m pretty new to rails, though I’ve been messing
around with it on and off for a few months. nothing big, just some test
projects with everything pretty simple.
Well, right now I’m trying to put something together and I’m having
trouble conceptualizing just how to model things. I’m putting together
what basically amounts to a family tree - I have people, and I have
relationships between people (ie, a father may have a daughter or two
and a wife). I’ve tried person has_many :relationships and relationship
belongs_to :person, but that seemed to just confuse me and my app.
Likewise, I had trouble putting together a coherent db schema, as a
relationships table would need two different person_id’s (continuing the
example, one for the father, and one for his daughter). With this app, I
would need to be able to, when pulling a page up about a certain person,
have links with names to those people that the person has relationships
Any suggestions? I’m new to rails, so any advice is welcome.