title: How to use Sprockets Rails plugin on Heroku?
body: <p>I just deployed my Rails app to Heroku, but the Javascripts that were using Sprockets plugin don't work.</p>
  <p>I understood that, because my Heroku app is read-only, Sprockets won't work. I've found this <a href="http://github.com/jeffrydegrande/sprockets_on_heroku" rel="nofollow noreferrer">sprockets_on_heroku</a> plugin that should do the work, but I don't really get how to use it :</p>
  <ol>
  <li>I added <code>config.gem sprockets</code> in config/environment.rb</li>
  <li>I added <code>sprockets</code> in my .gems file</li>
  <li>I pushed these on Heroku and Sprockets was successfully installed</li>
  <li>I locally  ran <code>script/plugin install git://github.com/jeffrydegrande/sprockets_on_heroku.git</code> and the plugin was successfully installed</li>
  </ol>
  <p>Nothing changed on Heroku, so I tried to install the plugin on Heroku with <code>heroku plugins:install git://github.com/jeffrydegrande/sprockets_on_heroku.git</code>, which returned <code>sprockets_on_heroku installed</code>but then, a <code>heroku restart</code>or a <code>heroku plugins</code>command would return this:</p>
  <blockquote>
  <p>~/.heroku/plugins/sprockets_on_heroku/init.rb:1: uninitialized constant ActionController (NameError)</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/../lib/heroku/plugin.rb:25:in `load'</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/../lib/heroku/plugin.rb:25:in `load!'</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/../lib/heroku/plugin.rb:22:in `each'</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/../lib/heroku/plugin.rb:22:in `load!'</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/../lib/heroku/command.rb:14:in `run'</p>
  <p>from /opt/local/lib/ruby/gems/1.8/gems/heroku-1.8.3/bin/heroku:14</p>
  <p>from /opt/local/bin/heroku:19:in `load'</p>
  <p>from /opt/local/bin/heroku:19</p>
  </blockquote>
  <p>What should I do?</p>
  <p>Kevin</p>