Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Updating to Ruby 2.0 broke my asset pipeline

I installed Ruby 2.0 to try it out with my Rails 3.1.12 app.

All of the same gems are able to be installed with Ruby 2.0.0. Gemfile.lock doesn't even change.

But now when I load pages, I get javascript errors that jQuery isn't defined. And none of the files that my manifest says to include show up, in development. I tried pushing to a staging env, to see if they'd be included during precompile, but they weren't.

Here's production, still with Ruby 1.9.2, here's staging with Ruby 2.0.0, and here's the full diff of what I changed between the two.

wtf?

like image 693
chadoh Avatar asked Jan 30 '26 17:01

chadoh


1 Answers

Rails 3.1.x does not work with Ruby >= 2.0.

If you want to use the wonderfully speedy Ruby >= 2.0, upgrade to Rails >= 3.2.13. (It will be worth the effort.)

like image 125
chadoh Avatar answered Feb 02 '26 06:02

chadoh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!