On 23 November 2015 at 21:11, fugee ohu <
fuge...@gmail.com> wrote:
> how to format them on a page ... my thought was to use group_by for
> formatting a page that displays all categories
>
> On Monday, November 23, 2015 at 3:39:05 PM UTC-5, Colin Law wrote:
>>
>> On 23 November 2015 at 20:11, fugee ohu <
fuge...@gmail.com> wrote:
>> > I'm looking for a solution for managing categories My categories table
>> > has
>> > name , parent_id fields My first challenge is to display all categories
>> > on a
>> > single page and my next is to build select lists represenative of the
>> > tree
>> > (after this has been done I wanna integrate listings with them)
>>
>> I don't understand what is challenging about your first challenge. Do
>> you mean you don't know how to get the categories from the database
>> (Category.all) or how to format them on a page or what?
>>
>> It suggests to me that you have still not followed my and Tamara's
>> advice to work right through
railstutorial.org. Until you understand
>> the basics you are just wasting your time and ours.
>>
>> Colin
>