How to use Sprockets 2 with Rails 3.0.x

I am trying to use these gists to get Sprockets 2.0beta to work with the Rails 3.0.5 application in a similar way to how it works in Rails 3.1. Failure so far - my application finds the correct routes and files and loads an initializer that extends Sprockets :: Environment but does not parse // = require 'phu' lines in my application.js.

Can someone enlighten me about Sprockets 2 with Rails 3.0?

+4
source share
1 answer

I used the same principles as the foundation and it works great. However, I made some changes. Perhaps you can try this, see if this helps: https://gist.github.com/1112393

ps: I think you solved it yourself, since it was a month ... I personally have another problem: How to use Sprockets 2 with Rails 3.0.x (how to use precompiled assets) If you solved it or found another way to make it effective in production, could you help me? Thanks.

+1
source

All Articles