Rails 3.1rc4 asset pipeline broke after Ruby update? How to re-activate/configure it?

大憨熊 提交于 2019-12-01 09:30:31

It seems that version 2.0.0.beta.11 of sprockets broke the assets pipeline. Putting

gem 'sprockets', '= 2.0.0.beta.10'

into your Gemfile seems to fix the problem (it worked for me). Rails seems to automatically use the most recent version of the beta for whatever reason so if you just started your project recently or updated all your gems it probably broke it.

Note that this info isn't mine originally, I got the fix from http://groups.google.com/group/rubyonrails-core/browse_thread/thread/59d8c7813b4d1bbe?pli=1

He explains the problem for ver. 2.0.0.beta.11 but I was using ver. 2.0.0.beta.12 with the same results so it seems that they haven't fixed it yet.

EDIT: It seems that upgrading your rails to 3.1.rc5 also fixes the problem

I ended up just blowing out the whole problematic gemset and starting anew. Lesson learned:

Don't trust rvm upgrade. Install the new Ruby w/in RVM. Then manually rebuild (or bundle install) your gemsets.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!