title: Cannot convert String into Integer while getting href from a link using Nokogiri
body: <p>I'm trying to parse this website using Ruby and Nokogiri:</p>
  
  <p>Here's my code:</p>
  
  <pre><code>require 'nokogiri'
  require 'open-uri'
  
  class StreamsController &lt; ApplicationController
    def index
    end
  
    def updateall
      doc = Nokogiri::HTML(open('http://www.own3d.tv/game/League+of+Legends'))
  
      # Grab all the Live streams from the front page.
      doc.css('div#top_live .VIDEOS-1grid-box').each do |stream|
        s = Stream.new
  
        # Parse the URL.
        s.url = stream.css('a.small-tn')['href']
      end
    end
  end
  </code></pre>
  
  <p>On the <code># Parse the URL</code> bit, I get the error <code>Cannot convert String to Integer.</code></p>
  
  <p>I'm kind of confused on how to use Nokogiri for this simple use case.</p>
  
  <p>How can I get the href attribute of each link inside each <code>|stream|</code> object?</p>