On 12 dic, 16:28, Angelo Cordova <acord...@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to