title: Getting different response in console vs. in app when using Rspotify
body: <p>I'm trying to use the <a href="https://github.com/guilhermesad/rspotify" rel="nofollow noreferrer">Rspotify gem</a> (it's a wrapper for the Spotify API) to do a simple search for an artist -- basically something similar to what's outlined <a href="https://medium.com/@cam_irmas/crazy-train-exploring-the-spotify-api-with-rails-part-1-81eac0475cb1" rel="nofollow noreferrer">in this blog post</a>.</p>
  
  <p>The issue is that I get a different response when I'm running the search in my console vs. in my app via the UI. I should be getting the full data set on the UI like I do when I'm in the console.</p>
  
  <p>Here's my form snippet:</p>
  
  <pre><code>&lt;%= form_for :artist, url: artist_search_path, html: {class: "form-inline"} do |f| %&gt;
    &lt;div class="form-group"&gt;
      &lt;%= f.text_field :artist_name, class: "form-control", placeholder: "Enter artist or group" %&gt;
      &lt;%= f.submit "Search", class: "btn btn-success" %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Two routes:</p>
  
  <pre><code>get 'profile', to: "pages#profile"
  post 'artist_search', to: "artists#search"
  </code></pre>
  
  <p>Here's my artists controller snippet:</p>
  
  <pre><code>def search
    if !params[:artist][:artist_name].blank?
      @artists = RSpotify::Artist.search(params[:artist][:artist_name])
      redirect_to profile_path
    end
  end
  </code></pre>
  
  <p>Here's a snippet of what I get when I submit an artist name on the UI and print out <code>@artists</code> in my logs:</p>
  
  <pre><code>Processing by ArtistsController#search as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"uzubTTE/bZvLBbU0MpY8lmLur1YPExnwdvXMXs882D7bm+fcUgTC8zRLizPh9Gp7eUjG2cGkNIGSk/Z+aZhrpg==", "artist"=&gt;{"artist_name"=&gt;"Drake"}, "commit"=&gt;"Search"}
  #&lt;RSpotify::Artist:0x007faf454f4f60&gt;
  #&lt;RSpotify::Artist:0x007faf454f4f10&gt;
  #&lt;RSpotify::Artist:0x007faf454f4ec0&gt;
  # Bunch more of the above...
  Redirected to https://website.com/profile
  Completed 302 Found in 81ms (ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>And I get a list of these when I run the search in the console:</p>
  
  <pre><code>[#&lt;RSpotify::Artist:0x000000049f0bd8 @followers={"href"=&gt;nil, "total"=&gt;2645122}, @genres=["east coast hip hop", "hip hop", "pop rap", "rap", "southern hip hop", "trap music"], @images=[{"height"=&gt;667, "url"=&gt;"https://i.scdn.co/image/f58a98bc92cd2dc7020fc45a45eebb29380048ab", "width"=&gt;1000}, {"height"=&gt;427, "url"=&gt;"https://i.scdn.co/image/9dd1bab34761764a125508534e443a9b245a9b56", "width"=&gt;640}, {"height"=&gt;133, "url"=&gt;"https://i.scdn.co/image/620b2133ab3f20045c0d9669e706bbf11786cf78", "width"=&gt;200}, {"height"=&gt;43, "url"=&gt;"https://i.scdn.co/image/5018ebe8a0d1060e6b39b2021132c082be1a913d", "width"=&gt;64}], @name="JAY Z", @popularity=83, @top_tracks={}, @external_urls={"spotify"=&gt;"https://open.spotify.com/artist/3nFkdlSjzX9mRTtwJOzDYB"}, @href="https://api.spotify.com/v1/artists/3nFkdlSjzX9mRTtwJOzDYB", @id="3nFkdlSjzX9mRTtwJOzDYB", @type="artist", @uri="spotify:artist:3nFkdlSjzX9mRTtwJOzDYB"&gt;]
  </code></pre>