|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Ruby form field masking
Hi,
I'm wondering if there is a way to apply a mask to a form field with Ruby. For example, a social security number or phone number format. None of my Ruby or Rails books mentions anything about it. Thanks! ~Snow |
|
#2
|
||||
|
||||
|
Edit: I misunderstood.
No, it's best to do the checking rails-side and flash() if there's a problem, otherwise use javascript. You can use some regular expressions for checking.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide Last edited by LinuxPenguin : August 14th, 2006 at 02:50 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Ruby form field masking |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|