Another Design Question

#1

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:


If clicked on then list all its like
and
If clicked on then list the subcategories of

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

Any help is appreciated.
Thanks
Silvy Mathews

#2

take a look at acts_as_tree

http://rails.rubyonrails.com/classes/ActiveRecord/Acts/Tree/ClassMethods.html

you could also