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:
    <td><%= text_field('state', 'abbreviation', :size => 2, :maxsize =>
2) %></td>

Rendered HTML:
    <td><input id="state_abbreviation" maxsize="2"
name="state[abbreviation]" size="2" type="text" /></td>

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.

osh wrote:

Hey,

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

Perfect, thanks. Where did you find that?

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...