Re: [Rails] categories

2015-11-30 Thread tonypm
Several years ago, I had a similar desire to have a screen representation of a category tree. I was very surprised that I couldn't find any pre-baked solution, so I built my own (there may be one out there now of which I am unaware). Unfortunately, I have never got round to making my code

Re: [Rails] categories

2015-11-24 Thread Colin Law
On 23 November 2015 at 21:35, fugee ohu wrote: > where in the tutorial is the discussion of this You have not told us what your fundamental problem is, so it is difficult to say. You have just said you want to display all the categories so something like Category.all.each

[Rails] categories

2015-11-23 Thread fugee ohu
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)

Re: [Rails] categories

2015-11-23 Thread Colin Law
On 23 November 2015 at 20:11, fugee ohu 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

Re: [Rails] categories

2015-11-23 Thread fugee ohu
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 > wrote: > > I'm looking for a solution for

Re: [Rails] categories

2015-11-23 Thread Colin Law
On 23 November 2015 at 21:11, fugee ohu wrote: > how to format them on a page ... my thought was to use group_by for > formatting a page that displays all categories Do the tutorial. Colin > > On Monday, November 23, 2015 at 3:39:05 PM UTC-5, Colin Law wrote: >> >> On 23

Re: [Rails] categories

2015-11-23 Thread fugee ohu
where in the tutorial is the discussion of this On Monday, November 23, 2015 at 4:13:57 PM UTC-5, Colin Law wrote: > > On 23 November 2015 at 21:11, fugee ohu > wrote: > > how to format them on a page ... my thought was to use group_by for > > formatting a page that

[Rails] Categories and articles plug-in, act_as_tree, act_as_list

2009-09-25 Thread rtacconi
This is my first message, so hello to everybody! I would like to have a simple intranet with categories and articles management. I think to use act_as_tree for the categories and act_as_list for the articles, but any article should be connected to one category. So in any category I can have one