当在Formtasticwith多维数据集中使用多维数据集表单助手时,多维数据集会收到一个unable to find input class for select_recurring错误。
form do |f|
#Debugging
f.semantic_errors *f.object.errors.keys
f.inputs do
f.input :title
f.input :description, :hint => "Full description for the event"
f.input :short_description, :hint => "Shot description for the event that will be displayed as a thumbnail"
f.input :published
f.input :event_date
f.input :recurring_rule, :as => :select_recurring
end
f.actions
end直接访问它(如下所示)适用于定期调度元素,但破坏了表单f.input元素的所有其余部分。
f.select_recurring :recurring_schedule如何将select_recurring集成到ActiveAdmin中?
发布于 2015-07-10 15:50:21
曾为我工作过(AA 1.0.0.pre1)
form do |f|
f.inputs do
#...
li do
f.label :recurring_rule_column
f.select_recurring :recurring_rule_column, nil, :allow_blank => true
end
#...
end
f.submit
endhttps://stackoverflow.com/questions/23934439
复制相似问题