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
prepend_child works fine if I try to save a valid item, but it throws an exception in case of validation errors. The behaviour should be similar to that of append_child which returns the object along with validation errors when someone tries to add a child. See below:
root = List.find(10)
child = List.new(:name => "test_bug")
child.valid?
=> false
root.prepend_child(child)
=> ActiveRecord::RecordNotFound: Couldn't find List without an ID
prepend_child
works fine if I try to save a valid item, but it throws an exception in case of validation errors. The behaviour should be similar to that ofappend_child
which returns the object along with validation errors when someone tries to add a child. See below:The text was updated successfully, but these errors were encountered: