title: TypeError - no implicit conversion of String into Integer
body: <p>Excuse me for the noob question.</p>
  
  <p>I am using <a href="https://newsapi.org/" rel="nofollow noreferrer">https://newsapi.org/</a> in my rails app and I am using httparty gem.</p>
  
  <pre><code>def news
      @techcrunch = HTTParty.get('https://newsapi.org/v1/articles?source=techcrunch&amp;apiKey=766c2f65e93c477451455xxxxxxxxxxx',
      :headers =&gt;{'Content-Type' =&gt; 'application/json'} )
      respond_to :html, :json 
  end   
  </code></pre>
  
  <p>news.html.erb</p>
  
  <pre><code>    &lt;% if (@techcrunch.nil? or @techcrunch== []) %&gt;
      &lt;p&gt; &lt;h2&gt;No news found.. Sorry&lt;/h2&gt;&lt;/p&gt;
      &lt;% else %&gt;
        &lt;% @techcrunch.each do |techcrunch| %&gt;
            &lt;td&gt;&lt;%= link_to(image_tag(techcrunch["urlToImage"], height: '100', width: '100'), techcrunch.articles["url"])%&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%= link_to(techcrunch["title"], techcrunch["url"]) %&gt;&lt;/td&gt;
            &lt;td&gt;&lt;%= techcrunch["publishedAt"] %&gt;&lt;/td&gt;
        &lt;% end %&gt;
      &lt;% end %&gt;
  </code></pre>
  
  <p>I am now getting an error </p>
  
  <blockquote>
    <p>no implicit conversion of String into Integer</p>
  </blockquote>
  
  <p>in the line</p>
  
  <pre><code>&lt;td&gt;&lt;%= link_to(image_tag(techcrunch["urlToImage"], height: '100', width: '100'), techcrunch.articles["url"])%&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I checked the API in postman and the response is as below</p>
  
  <pre><code>{
      "status": "ok",
      "source": "techcrunch",
      "sortBy": "top",
      "articles": [
          {
              "author": "Matthew Panzarino",
              "title": "Apple Music’s first new personalized playlist wants you to Chill",
              "description": "This week Apple is beginning to roll out the first new personalized playlist under Apple Music’s ‘For You’ section. The playlist, entitled ‘Chill’..",
              "url": "https://techcrunch.com/2017/06/27/apple-musics-first-new-personalized-playlist-wants-you-to-chill/",
              "urlToImage": "https://tctechcrunch2011.files.wordpress.com/2017/06/img_0021.jpg?w=764&amp;h=400&amp;crop=1",
              "publishedAt": "2017-06-28T02:45:58Z"
          },
  
  
          {
              "author": "Josh Constine",
              "title": "Facebook now has 2 billion monthly users… and responsibility",
              "description": "Thirteen years after launching and less than five years after hitting 1 billion, Facebook now has 2 billion monthly active users. If getting to 1 billion was..",
              "url": "https://techcrunch.com/2017/06/27/facebook-2-billion-users/",
              "urlToImage": "https://tctechcrunch2011.files.wordpress.com/2017/06/facebook-users-snapchat-twitter-youtube-whatsapp-instagram-wechat-qq.png?w=764&amp;h=400&amp;crop=1",
              "publishedAt": "2017-06-27T17:06:05Z"
          }
      ]
  }
  </code></pre>
  
  <p>How can I display all the articles using news.html.erb?</p>
  
  <p>Any help is Highly Appreciated.Thanks in Advance!</p>