On 12 dic, 16:28, Angelo Cordova <[email protected]> wrote: > Hello people > > I need your help again. > > What I want to do is make a text field accepts only numeric values... > Thant's means if I press a letter or a simbol the text field should > not be filled, it should be just if I press a number. > > Is there a rails way (rails 3.0.9) to achieve this issue? >
I'm not sure but it seems to be what you need http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html#method-i-number_field http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-number_field_tag Or you could add the html5 option when you write your code Javier Q -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

