Text_field "maxsize" not working?

Is this something I’m doing wrong, or is there a bug (or something
else)? The agile book and the ROR API seems to indicate this should
work.

rhtml:

<%= text_field(‘state’, ‘abbreviation’, :size => 2, :maxsize =>
2) %>

Rendered HTML:

I’ve tried:

:size => 2, :maxsize => 2
{:size => 2, :maxsize => 2}
“size” => 2, “maxsize” => 2
{“size” => 2, “maxsize” => 2}

They all render the same HTML.

Hey,

Change your :maxsize to :maxlength and it should work properly.

Didn’t really find it anywhere. Just from knowing that a regular HTML
rendered input uses the maxlength property and not maxsize.Good luck to
you…

osh wrote:

Hey,

Change your :maxsize to :maxlength and it should work properly.

Perfect, thanks. Where did you find that?