title: How do I get just the sitename from url in ruby?
body: <p>I have a url such as: </p>
  
  <pre><code>http://www.relevantmagazine.com/life/relationship/blog/23317-pursuing-singleness 
  </code></pre>
  
  <p>And would like to extract just <strong>relevantmagazine</strong> from it.</p>
  
  <p>Currently I have:</p>
  
  <pre><code>@urlroot = URI.parse(@link.url).host
  </code></pre>
  
  <p>But it returns <strong>www.relevantmagazine.com</strong>  can anyone help me?</p>