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
$ a = Author.first
$ a.weather_locations.create
$ a.weather_locations.create
$ a.weather_locations.each { |l| p l.position }
1
1
Whenever I create new records (either using add_new_at: :top or by manually utilizing insert_at(1)) the position of existing records does not get adjusted. What am I doing wrong?
The text was updated successfully, but these errors were encountered:
Whenever I create new records (either using
add_new_at: :top
or by manually utilizinginsert_at(1)
) theposition
of existing records does not get adjusted. What am I doing wrong?The text was updated successfully, but these errors were encountered: