On 20 August 2010 00:36, Madison Kelly <[email protected]> wrote:
> Thank you for your help! I'm still learning how to use MVC, and I'm still
> having difficulty with some of the concepts.

Please don't top post, it makes it difficult to follow the thread.
For example who are you thanking here and what was the help.  You have
to look down to the bottom of the post to find out.

>
> Can I ask a follow-up quesiton on how to set this up? I will have a product
> that can belong to one or many sub-catagories which in turn belong to one or
> many catagories. The same subcatagory name can belong to two different
> catagories (although its referring to a different group of products). For
> example: Fishingline (catagory) -> Long (subcatagory) and Knives (catagory)
> -> Long (subcatagory), where the products in both are different.

Sorry, I can't follow that.  You say you have
A product can belong to one or many sub-categories (I think using the
word belong generically here rather than as in belongs_to).
A sub-category can belong to one or many categories.
Then you start talking about a sub-category name - can there be more
than one sub-category with the same name?
It might help if you specify the attributes of category and
sub-category, they have a name and the relationships to other objects,
do they have other attributes?
I do not understand the comment about groups of products at all.  I
also don't understand the example, Sorry.

Colin

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