Tom Tom wrote:
> hi, i have a category and a category_type model, where category is
> selfreferential with parent_id. now, im not 100% sure whats the best
> way for later purposes in terms of search etc., 

awesome_nested_set, of course. :)

> but my initial
> intention was the store the category_types_id only in the root (where
> parent_id == 0), but like i said, 

No, you didn't say.

> how would i search through all
> children with a specific type of category_type? i mean i could read
> them into an array, but thats just wrong.
> should i store the category_type_id in each category?
> 
> i hope that was not to unclear... ;-)

It was.  What exactly are you trying to do?

> 
> thx tom

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
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].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to