title: JW-Player and Rails 3.2
body: <p>I'm trying to use JW-Player in my application. Researching the issue a bit, there seems to be several abandoned efforts to produce a gem, and the latest is undocumented. So, here's how I'm going about it:</p>
  
  <p>I downloaded the JW-Player version 6, unzipped and copied the files in my /app/assets/javascripts directory as follows:</p>
  
  <pre><code>app/assets/javascripts/jwplayer/jwplayer.js
  app/assets/javascripts/jwplayer.html5.js
  app/assets/javascripts/jwplayer.flash.swf
  </code></pre>
  
  <p>In my app/views/layouts/application.html.erb, I have the following:</p>
  
  <pre><code>&lt;head&gt;
      &lt;%= javascript_include_tag "/assets/javascripts/jwplayer/" %&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>and in app/views/pages/about.html.erb, I have the following:</p>
  
  <pre><code>&lt;%= jw_player("http://xxxxx/video.mp4",
              :width =&gt; 200, :height =&gt; 110) %&gt;
  </code></pre>
  
  <p>Here's what happens when I click on the About page link:</p>
  
  <pre><code>Showing xxxxxxxx/app/views/pages/about.html.erb where line #10 raised:
  
  undefined method `jw_player' for #&lt;#&lt;Class:0x007fe77e37c018&gt;:0x007fe780c1f678&gt;
  </code></pre>
  
  <p>First time user of JW-Player.</p>