Default text_field size

Hi all,

The default field size in a view is 30, which is too large for most of
the
fields in my application. Is there a way to set the default text_field
size
to something smaller without changing each field individually?

Thanks,
James.

if you patch it like this, it’ll change the default size to 20

module ActionView
module Helpers
class InstanceTag
DEFAULT_FIELD_OPTIONS = { “size” => 20 }.freeze
end
end
end

Cheers!

Thanks Arzumy. Patching my local copy of rails is a bit much for me
at the moment. However, I did find another alternative in using a
helper method, which I think I will do. Thanks!