Ruby on Rails
Wednesday, November 25, 2015
What is the relationship between listing and category?
In what way is a listing "in" a category.
What is a leaf category?
What do you mean by listings in leaf category?
Colin
categories has_many listings and listings belongs_to categories
a listing is in a category because the listing has a category_id field
leaf category is a category that has no children categories
listings can only be placed in leaf categories but can be seen when browsing it's parent categories So if someone's selling a toaster oven, they had to place the listing in Household->Kitchen->Small appliances->Toaster ovens but as soon as a user navigates only as far as Household they'll see lisings including the toaster ovens and in the side pane should be links to all the categories beneath whatever category the user is currently in
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0c29aade-63e5-4339-b677-1c8bf67a836b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment