Forum: Ruby on Rails Another Design Question

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Silvy (Guest)
on 2005-11-30 20:36
(Received via mailing list)
Hi All,
I am a newbie to RoR arena. I am in the process of designing an
application to learn RoR. Have a design question. How do we design the
front end and the back end for the following requirements?
I wanted to design an application with
categories/subcategories/subcategories...... .All of these should be
driven from the database.. Typical example would be amazon.com. Or
another example could be craigslist.org.

Links that can be selected: <category> <subcategory1> <subcategory11>
				    <category> <subcategory2>
<subcategory21>
If clicked on <category link> then list all its <subcategories> like
<subcategory1> and <subcategory2>
If clicked on <subcategory1> then list the subcategories of
<subcategory1>

I wanted to know how to design from a rails perspective.

Any help is appreciated.
Thanks
Silvy Mathews
christopher.k.hall (Guest)
on 2005-11-30 21:29
(Received via mailing list)
take a look at acts_as_tree

http://rails.rubyonrails.com/classes/ActiveRecord/...

you could also
This topic is locked and can not be replied to.