<Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org>
2005-Nov-30 18:35 UTC
Another Design Question
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
take a look at acts_as_tree http://rails.rubyonrails.com/classes/ActiveRecord/Acts/Tree/ClassMethods.html you could also On 11/30/05, Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org <Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org> wrote:> > 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 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
<Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org>
2005-Nov-30 19:44 UTC
RE: Another Design Question
Hi Chris, Thanks for the link. Let me look at it. Also, how do I make my name appear in the ruby list instead of the email address? Silvy ________________________________ From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Chris Hall Sent: Wednesday, November 30, 2005 11:29 AM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Another Design Question take a look at acts_as_tree http://rails.rubyonrails.com/classes/ActiveRecord/Acts/Tree/ClassMethods .html you could also On 11/30/05, Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org <Silvy-ThFeeifhdOZBDgjK7y7TUQ@public.gmane.org> wrote: 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 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails