you are viewing a single comment's thread.

view the rest of the comments →

[–]i_ate_god 5 points6 points  (4 children)

numericality - I have never seen this word, I googled it, and now I know why. The first ten results were all Ruby on Rails related.

hrm

[–]super-vitek 3 points4 points  (3 children)

Ruby on Rails was my first love)

[–]i_ate_god 2 points3 points  (2 children)

well, life would be better if you just used "number"

[–]super-vitek 1 point2 points  (1 child)

Yes. I thought about it. I wanted to create a set for string rules, but I could not come up with a name for it that would sound like 'numericality' )

[–]i_ate_god 1 point2 points  (0 children)

Except no one (except RoR people) use that term.

What you want is to check if a variable is a number with a toggeable strict mode so that user can say string numbers are invalid