You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The items get inserted into the list in reverse order.
This is because before_validation :add_to_list_bottom is run for all rows before any row is saved, so they all get position set to 1. Then each item that is saved causes the ones before it to be pushed further down the list.
The text was updated successfully, but these errors were encountered:
Using code similar to this:
The items get inserted into the list in reverse order.
This is because
before_validation :add_to_list_bottom
is run for all rows before any row is saved, so they all get position set to 1. Then each item that is saved causes the ones before it to be pushed further down the list.The text was updated successfully, but these errors were encountered: