plataformatec/simple_form — Issue #375: Move helpers to components and make them usable in the new wrapper API
Author: josevalim
Created: 2011-12-03 09:53:34+00:00
State: open

Guys,

I am wondering if we should make more parts of SimpleForm "usable" components. For example, we could have the following:

wrappers :class => :input do |b|
b.use :placeholder
b.use :disabled
b.use :html5

b.use :label_input
b.use :error, :tag => :span, :class => :error
end

This would basically unify the configuration API in SimpleForm. A nice side effect is that all wrappers configs would also become options. So someone could do: `f.input :name, :html5 => false`.

What do you guys think?