RE: beer

I have one string in my controller but i need to knwon how i
verify if it is numerical

if string =~ /^\d+$/

Another option is to use Integer(str) and check for an error.

What this has to do with beer, I’m not sure.

Regards,

Dan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs