justinfrench/formtastic — Issue #728: maxlength 4 for integer attributes
Author: jnimety
Created: 2011-10-26 18:36:31+00:00
State: open

rails 3.0.10, mysql2 0.2.13

all of my integer attributes are rendered with a maxlength=4, IE and FF honor this limit and this is an incorrect maxlength for int(11) columns. Setting maxlength via css is not possible, is there another solution I'm overlooking?

create_table "organization", :force => true do |t|
t.integer "asset_size"
end

Create Table: CREATE TABLE `organization` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`asset_size` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8