Hi I want to present a list of ingredients in an A - Z format and also offer a by category format as well in my ingredients index. E.g. A apple apricot blahblah blahblah blah blah blah blah B .... and by category Fruit apple apricot blahblah blahblah blah blah blah blah Vegetables .... There are a lot of tutorials that use a table with clickable headers but I dont want this format. I trying to think how i can present these without creating a lot of code in my index view will i need to create two seperate action and views for the index? Im also looking for a non java solution. Any pointers, tips? -- Posted via http://www.ruby-forum.com/.
sorry i meant "Im looking for a non AJAX solution" -- Posted via http://www.ruby-forum.com/.
Marnen Laibow-Koser
2009-Aug-11 16:15 UTC
Re: presenting data in 2 styles - 2 action/views or 1?
Adam Akhtar wrote:> Hi I want to present a list of ingredients in an A - Z format and also > offer a by category format as well in my ingredients index.[...]> will i need to create two seperate action and views for the index?No. Just pass a URL parameter that specifies the sort order. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.