From: Andreas Schwarz Date: 2005-10-22T19:47:04+09:00 Subject: Re: support for ordering records in rails Achim Domma (SyynX Solutions GmbH) wrote: > Hi, > > I'm just doing my first steps with ruby and rails. I wonder if there is > some buildin support to order records. I'm reading > http://rails.homelinux.org/ and ask myself how I could turn the the todo > project into a priority list. > > In the database I would introduce a integer field 'ordering' by which I > would order the tasks. In the task list I would ne 'up' and 'down' > buttons to change the ordering. > > Could somebody tell me on how to solve such a problem in rails? I need > no code, only the key ideas and concepts. ActiveRecord::Acts::List ActiveRecord::Base::find -- http://www.mikrocontroller.net http://rforum.andreas-s.net - Ruby Web Forum