sporkd/html5-rails — Issue #9: Adding the polyfills.js to the assets-pipeline
Author: Maher4Ever
Created: 2012-01-04 18:43:14+00:00
State: open

Hey there,

First, I would like to thank you for this great gem (and the previous version too)... It made upgrading my app to rails 3.1 so easy :)

While deploying my updated rails 3.1 app, I had a problem with the assets-pipeline.
I know this gem might not be production-ready yet (is it?), but It worked great with the development rails-env.

After digging deep, I found out that the polyfills.js was not being compiled on the production-env (which is not needed on the dev-env of course).

I had to add the following to `config/environments/production.rb` file to make it work:

```ruby
config.assets.precompile += %w( polyfills.js )
```

I hope this gets fixed or at least added to the readme to spare other folks the trouble.