How to find the record that failed in validation with nested attributes on a has_many association?

后端 未结 0 657
梦谈多话
梦谈多话 2021-01-11 23:21

Let\'s say I have this:

class Author < ActiveRecord::Base  
  has_many :posts

  accepts_nested_attributes_for :post         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题