plataformatec/simple_form — Issue #359: use no top-level wrapper
Author: bmishkin
Created: 2011-11-04 15:42:09+00:00
State: open

Setting the top-level wrapper to false still wraps the entire input block in a *div*

config.wrappers :tag => false, do |b|

yields

Would be nice to be able to disable it completely. This is useful when building input forms using the dl, dt, dd tags, as inserting a *div* tag inside a *dl* is invalid HTML5.

Will work on it myself if i get time =)

my full config block, in case anyone has a workaround:

config.wrappers :tag => false, do |b|
b.use :placeholder
b.use :label, :tag => :dt
b.use :input, :tag => :dd do |i|
i.use :input
i.use :hint, :tag => :p
i.use :error, :tag => :span, :class => 'invalid-side-note'
end
end