在使用ActiveAdmin的Formtastic中使用select_recurring
表单助手为Ice_Cube gem时,我收到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
直接访问它(下面)适用于定期计划元素,但会破坏所有其他的formtastic f.input
元素。
f.select_recurring :recurring_schedule
如何将select_recurring
合并到ActiveAdmin?
答案 0 :(得分:0)
为我工作(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
end