Rails validates_format_of

Posted by squids on Stack Overflow See other posts from Stack Overflow or by squids
Published on 2010-03-18T12:28:03Z Indexed on 2010/03/18 12:31 UTC
Read the original article Hit count: 315

Filed under:
|
|

Hi,

I want to use validates_format_of to validate a comma separated string with only letters (small and caps), and numbers.

So.

example1, example2, 22example44, ex24

not: ^&*, <> , asfasfsdafas<#%$#

Basically I want to have users enter comma separated words(incl numbers) without special characters.

I'll use it to validate tags from acts_as_taggable_on. (i don't want to be a valid tag for example.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about rails

Related posts about validate