In Rails 3, is there a built in method for seeing if a string is a valid IP address?
If not, what is the easiest way to validate?
In Rails 3, is there a built in method for seeing if a string is a valid IP address?
If not, what is the easiest way to validate?
The Rails way to validate with ActiveRecord in Rails 3 is:
Good resource here: http://my.rails-royce.org/2010/07/21/email-validation-in-ruby-on-rails-without-regexp/