title: Nokogiri parsing working fully on localhost but partially on heroku
body: <p>Hi I have something weird happening:</p>
  
  <p>My app has the following controller action:</p>
  
  <pre><code>def test
  
    #get URL
    url = "http://www.coteur.com/surebet.php"
    doc = Nokogiri::HTML(open(url))
    @show = doc.at_css("title").text
  
    @game_data = Array.new
    doc.css('tbody').each do |tr|
      tr.css("tr").each do |f|
        @game_data.push(f.css("td").text)
      end
    end
  
  end
  </code></pre>
  
  <p>To render the following view:</p>
  
  <pre><code>&lt;%= @show%&gt;
  &lt;div class="bs-example" data-example-id="hoverable-table"&gt;
    &lt;table class="table table-hover"&gt;
      &lt;tbody&gt;
        &lt;% if @game_data.empty? %&gt;
          &lt;tr&gt;
            &lt;td&gt;Nope&lt;/td&gt;
          &lt;/tr&gt;
        &lt;%else%&gt;
          &lt;% @game_data.each do |game|%&gt;
            &lt;tr&gt;
              &lt;td&gt;&lt;%= game%&gt;&lt;/td&gt;
            &lt;/tr&gt;
           &lt;%end%&gt;
        &lt;%end%&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Everything work fine locally but on Heroku only the <code>&lt;%= @show%&gt;</code> work. On Heroku the <code>&lt;%= @game_data%&gt;</code> appears to be empty while it should not be.</p>
  
  <p>I cannot figure out what is wrong, your help is fully appreciated.</p>
  
  <p>Inside <code>&lt;tbody&gt;</code> from the site (translated in text from html):</p>
  
  <blockquote>
    <p> Football Europe - Ligue des
    champions1N2 Mi
    temps21 Avril 2015 - 20:45Bayern Munich -
    Porto2.632.657.5010.91%</p>
  </blockquote>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/seZXJ.png" alt="enter image description here"></p>