validates_associated not checking existence of associations

前端 未结 2 744
攒了一身酷
攒了一身酷 2020-12-13 21:47

Can anyone figure out what\'s going on here? I was able to get my code to work the way I want it to, but I can\'t figure out why validates_associated isn\'t working as I ex

2条回答
  •  旧时难觅i
    2020-12-13 22:16

    Man... all I got was that validates_presence_of is needed for this to work as you got from the API. Seem's overkill to be checking for association validness, but I'm a noob.

提交回复
热议问题