【发布时间】:2012-05-09 21:02:08
【问题描述】:
我在 Rails 3.2 中使用 Formtastic 2.1.1(带有 Active Admin),我想在我的表单中插入一行 不 存在输入字段。这可能吗?Formtastic DSL 中的语法是什么?
这是一个例子:
form do |f|
f.inputs "Model Info" do
f.input :title
f.input :published
f.input :path
end
end
我想做这样的事情:
form do |f|
f.inputs "Model Info" do
f.input :title
f.input :published
f.input :path
f.div "This is some important text that people using this form need to know"
end
end
以前有人用 Formtastic 做过这个吗?
【问题讨论】:
标签: ruby-on-rails-3 activeadmin formtastic