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|
= f.simple_fields_for :answers, @person.appointments.limit(1) do |a|
or
= f.simple_fields_for :answers, f.object.appointments.limit(1) do |a|