title: Rails countdown gem or javascript
body: <p>Within my rails 4 app, i'm trying to set a countdown in one of my views.</p>
  
  <p>I've tried using this gem: <a href="https://github.com/jnbt/countdown" rel="nofollow">https://github.com/jnbt/countdown</a></p>
  
  <p>In my gem file I added:</p>
  
  <pre><code>gem 'countdown'
  </code></pre>
  
  <p>I then ran bundle install which ran smoothly.</p>
  
  <p>Then I added this in my application.js file:</p>
  
  <pre><code>//= require countdown
  </code></pre>
  
  <p>And then I tried running this from the terminal as instructed:</p>
  
  <pre><code>rails generate countdown:install
  </code></pre>
  
  <p>Which resulted in this error:</p>
  
  <pre><code>Could not find generator countdown:install
  </code></pre>
  
  <p>I then added this tag in my application.html.erb file:</p>
  
  <pre><code>&lt;%= javascript_include_tag 'countdown' %&gt;
  </code></pre>
  
  <p>And finally in my view, I added:</p>
  
  <pre><code> &lt;%= countdown Time.now + 28.hours %&gt;
  </code></pre>
  
  <p>Which is giving me this error:</p>
  
  <pre><code>Sprockets::FileNotFound in Posts#index
  
  couldn't find file 'countdown'
  </code></pre>
  
  <p>What is causing this? Is there any alternative to this gem? I would just like as simple countdown in my view. Can I just use some other javascript countdown? (I'm just worried about the countdown starting from when the user refreshes the browser, I need it to start from a permanent point, a particular date and time)</p>