search for: newhook

Displaying 2 results from an estimated 2 matches for "newhook".

Did you mean: new_hook
2005 Sep 23
6
problem with acts_as_tree
Hi, I''m using the latest gem version of rails under MacOS Tiger. I was trying to use acts_as_tree as described in the rails book. So I have something like: class Category < ActiveRecord::Base acts_as_tree :order => "title" end create table categories ( id int not null auto_increment, title
2005 Oct 05
2
customer defined sort order
I have a category list which the customer wants administratively to define the sort order, instead of alphabetical or whatever. The obvious approach seems to be to put a sort_order int on the record and use this as the presentation sort order. Then to shift the item up in the sort order to swap the current and the prevous item in the sort_order. Does this seem like a sensible approach, or is