simple_fields_for take limit

2018-04-19  本文已影响0人  WilliamHu_74af

= f.simple_fields_for :answers, @person.appointments.limit(1) do |a|

or

= f.simple_fields_for :answers, f.object.appointments.limit(1) do |a|

上一篇下一篇

猜你喜欢

热点阅读