YouTube Data Api and Rails
<p>I've been able to set up a toy app with the following code taken from YouTube's sample ruby <a href="https://github.com/youtube/api-samples/blob/master/ruby/search.rb" rel="nofollow">projects</a>. I'm looking to use YouTube to search for artists channels, playlists, videos. No issues with the sample toy app but can't get the same code working in Rails.</p>

<p>After successfully searching YouTube's API and manipulating the response, I've tried importing some of this code into an existing rails app. </p>

<p>I initially put the following code into a new initializer in my <code>config</code> directory but when trying to load rails console to play with the query, I'm receiving the following error:</p>

<p>"NameError: uninitialized constant Google"</p>

<pre><code>require 'google/api_client

client = Google::APIClient.new(
  :key =&gt; "XXXXXXXXXXX",
  :authorization =&gt; nil,
  :application_name =&gt; $PROGRAM_NAME,
  :application_version =&gt; '1.0.0'
)
</code></pre>

<p>Gemfile: </p>

<pre><code>gem 'google-api-client', '0.9'
</code></pre>

<p>I know there's been some updates to the API but having trouble tracking down exactly what I need to do.</p>