我正在使用改革1.2.6 并有一个带有验证的嵌套表单
简化:
class UserForm < Reform::Form
property :date_of_birth
property health_profile do
property :diagnosed_with_condition_at
validate :diagnosed_date
def diagnosed_date
# need to get access to date_of_birth here
# validate that diagnosed_with_condition_at is after date of birth
end
end
end
参数正确嵌套,我只需要一种从嵌套表单访问父表单输入的方法。问题是嵌套表单似乎只能访问其参数集,而不是整个参数。