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?
You can also use Regexy::Web::IPv4 which can match ip addresses with port numbers too.