title: JSON::ParserError in HomeController#index
body: <p>I am learning the instagram API, which is complicated by the fact that Instagram just changed their authentication, so there's not a lot of documentation about it yet. </p>
  
  <p>This is basically the same question as <a href="https://stackoverflow.com/questions/29129696/instagram-gem-jsonparsererror-in-sessioncontrollerindex">instagram gem JSON::ParserError in SessionController#index</a> (I'm even following the same tutorial) but (a) that solution was about the user id - I'm not targeting a user but a general public feed, and (b) it's from before the auth change and I'm pretty sure this is some kind of authentication issue.</p>
  
  <p>Here's my controller</p>
  
  <pre><code>class HomeController &lt; ApplicationController
    def index
      @popular = Instagram.media_popular
    end
  end
  </code></pre>
  
  <p>Initializers/instagram.rb</p>
  
  <pre><code>require "instagram"
     Instagram.configure do |config|
     config.client_id = "MY CLIENT ID"
     config.access_token = "MY ACCESS TOKEN"
  end
  </code></pre>
  
  <p>views/home/index.html.erb</p>
  
  <pre><code>&lt;h1&gt;Instagram Lookup&lt;/h1&gt;
    &lt;% @popular.each do |popular| %&gt;
    &lt;div class="col-sm-12 col-md-4"&gt;
      &lt;div class="thumbnail"&gt;
        &lt;%= image_tag popular.images.low_resolution.url %&gt;
        &lt;div class="caption"&gt;
          &lt;%= popular.user.username %&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>What am I doing wrong? 
  This is Rails 4.2.3, Ruby ruby 2.1.1p76 and Instagram 1.1.6</p>