Bypassing rack version error using Rails 2.3.5

后端 未结 9 1758
既然无缘
既然无缘 2020-12-05 21:33

I\'m currently on Dreamhost attempting to run a Rails 2.3.5 app.

Here is the situation, Dreamhost\'s servers have Rails 2.2.2 installed. Of course, I can\'t update a

9条回答
  •  一整个雨季
    2020-12-05 22:06

    Apparently this whole thing with Rails wanting rack 1.0.1 is a small dependency requirement bug in actionpack which can be solved fairly easily.

    For me it was enough to edit vendor/rails/actionpack/lib/action_controller.rb on line 34 from gem 'rack', '~> 1.0.1' to gem 'rack', '~> 1.0' and the problem went away.

    See: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3685-actionpack-235-gem-declares-incompatibility-with-rack-110

提交回复
热议问题