All Questions
Tagged with acts-as-list sorting
4
questions
1
vote
0
answers
153
views
Sort collection after associated resource's acts_as_tree/acts_as_list order
I have a SuccessCriterion model that implements both acts_as_tree and acts_as_list so it can be arranged as sorted tree hierarchy. Every success criterion can has many Boilerplate objects.
class ...
1
vote
2
answers
3k
views
Resetting position attribute when using acts_as_list gem? (Rails)
I have a simple Rails 3 app where a Goal has many Objectives. In my views, I allow the user to-reorder the Objectives for any given Goal, and I am using the acts_as_list gem to achieve some of this ...
3
votes
2
answers
4k
views
Should acts_as_list automatically reorder items when a resource is updated with update_attributes?
I'm using the acts_as_list plugin with rails 3.1 and whenever I add or remove a resource existing positions are ordered and updated fine. However, when updating the position of a resource with ...
0
votes
1
answer
613
views
Sorting Items in Rails Controller Method
I'm having an issue writing a controller action that takes Post ids passed as a parameter and sorts them into a specific order before publishing them.
The Posts have a position attribute (I'm using ...