First of all, I love Ruby on Rails. I have an intermediate
my programming experience. I’m developing an online game’s web presence
with another colleague. We’re the only two technical guys on a team of
+10 content developers. So, baring all that in mind, here are my
questions with a bit of background information:
We have a table for characters. They can have items (weapons, armor,
etc), skills, spells and other things, like languages. They each have a
class and race.
My question is about how to set up the different relationships between
Are there any good, in depth tutorials (with extensive examples) on how
to set up relationships between tables?
For instance, I know that the relationship between a character and its
class would be:
But how would I set up the relationship between characters and other
items? If a character has multiple “skills,” how should I set up the
other tables? Would I use an “in between” table? Would it be easier to
serialize the information? If so, how does that work?
I’m not terribly concerned about portability. We use DreamHost as our
host, who is wonderful enough to support Ruby, and we plan to stay with
I apologize for the gruesomely newbish form of this inquiry, but I would
love to further the use of Ruby on the Web.