tekvision / waiable

Rails Web Accessibility Initiative for the differently abled.
MIT License
16 stars 6 forks source link

maxlength property issue #38

Open pramodtech opened 8 years ago

pramodtech commented 8 years ago

For password_field with maxlength property application is crashing with below error

TypeError: no implicit conversion of Fixnum into String

<%= password_field :user, :password, {class: "confirm-new-password", maxlength: 15}%>

I think we need to change the below code to convert fixnum into string

https://github.com/techvision/waiable/blob/master/lib/action_view/text_field.rb#L21