I don't know if there's a Rails way (I'm still learning it myself) but if
you want to implement this on the client you'll need JavaScript. Or, you
can use the HTML5 input type "number", but that's not guaranteed to work on
all browsers.

http://www.html5tutorial.info/html5-number.php

--
*Hector Virgen*
http://www.virgentech.com
Circle me on Google+ https://plus.google.com/101544567700763078999/



On Mon, Dec 12, 2011 at 1:28 PM, 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?
>
> Thanks
>
> --
> 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.
>
>

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