How would you parse a url in Ruby to get the main domain? How would you parse a url in Ruby to get the main domain? ruby-on-rails ruby-on-rails