On Jul 13, 6:03 am, Adrian Zatta <[email protected]> wrote:
> Hi everyone,
> I have the following basic rules:
>  Subject has many elements
>  Element has many subjects
>  Element has many knowledges which are either enabled or required
>  Element has many skills which are either enabled or required
>
> I have designed the schema to have 6 tables, Subjects, Elements,
> PriorKnowledge, PriorSkills, EnabledKnowledge and EnabledSkills.
>

> Now to my problem. I am trying to build a page that will display all
> this information. It will display a subject and all its elements, and
> all of the elements prior and enabled, knowledges and skills.
>
> The thought that I had was to use has_many :through relationships, but I
> don't know how to handle both prior and enabled cases.

Is PriorKnowledge the join table between elements and
EnabledKnowledges? If so has_many :through sounds like the right thing
- what did you try that didn't work ?

Fred

-- 
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