I am trying to format a form, and text fields respond to some methods, not others.
I can do things like:
f.input :name, :input_html => { :maxlength => 10 } f.input :name, :input_html => { :disabled => true }
But if I try to do any of the following, they do not work:
f.input :name, :input_html => { :size => 10 } f.input :name, :input_html => { :class => 'autogrow' } f.input :name, :input_html => { :rows => 10, :cols => 10 }
When I try to use: size, for example, the generated html shows that size = 10 but does not display in the actual form.
They were more or less pulled directly from the Formtastic documentation on Github, to which the Activeadmin documentation belongs.
Mark tuttle
source share