Forum: Ruby on Rails acts_as_list problem with records coming in and out

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Emin H. (Guest)
on 2006-04-13 00:37
(Received via mailing list)
I have the model that acts as list

acts_as_list :scope => 'featured=1'

As you can see, I only need to order the records that are featured.
from time to time I switch some featured items off and mark others as
featured. When this is done, I start getting dublicate numbers on the
and ordering starts getting problem...

What would be the good approach to add/remove items to the featured list
while not breaking positions?
Emin H. (Guest)
on 2006-04-13 10:26
(Received via mailing list)
Anybody having similar problem?

I think, one of the ways would be to renumber all the featured items
records goes in or out
This topic is locked and can not be replied to.