RoR: NoMethodError when executing delete_all for a has_many relationship

后端 未结 5 1926
眼角桃花
眼角桃花 2021-01-22 18:01

My classes are as follows, with Customer inheriting from User using the single-table inheritance approach. User has attributes name and email while Order has destination.

<
5条回答
  •  一个人的身影
    2021-01-22 18:24

    This is the Rails issue with Ruby 2.2.2: https://github.com/rails/rails/issues/18991 . It's closed and fixed in 3.2.22).

提交回复
热议问题