It sounds like you should avoid has_and_belongs_to_many since you are
tracking attributes of the join relationship.  Maybe something like this:

character has_many objective_assignments
character has_many objectives, :through => objective_assignments
character has_many quest_assignments
character has_many quests, :through => objective_assignments

Does that seem right?


On Thu, Aug 26, 2010 at 12:26 PM, Jooma __ <[email protected]> wrote:

> TomRossi7 wrote:
> > I think this is the relationship model?
> >
> > character has_and_belongs_to_many quests
> > character has_many objectives, :through => quests
> >
> > quest has_and_belongs_to_many characters
> > quest has_many objectives
>
> I think I have to make a separate table. tracked_objectives which
> belongs to character through quests.
>
> As multiple people can do the same quests and will be at different steps
> at different times, they'll need the same objectives but at different
> counts.
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to