-
-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create item at position 0 #297
Comments
That's not a bug, that's by design. The first settings tells |
But is it forbidden to place the item at the position 0 (with the first setting)? |
Would you be able to fork and create a failing test in our test suite for this issue? That'll help us get a better idea of what the problem is and then work toward a solution :) |
@hot-cheese could you follow this up with a failing test? |
EDIT: nevermind, I had a scoping issue. |
I'm going to close this due to inactivity. |
Current setting:
acts_as_list scope: :parent_id, top_of_list: 0
Creating record with
position: 0
places it at the other end of collection, e.g. having 5 records (positions 0..4) it's placed at position 5 instead of 0.Using
acts_as_list scope: :record_id, top_of_list: 0, add_new_at: :top
makes it possible to place records at position 0.The text was updated successfully, but these errors were encountered: