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
no: ^ & *, <>, asfasfsdafas <#% $ #
Basically, I want users to enter commas (including numbers) without special characters.
I will use it to verify tags from act_as_taggable_on. (for example, I do not want to be a valid tag.
Thanks in advance.
source
share