Ruby 2.4 and Rails 4 stack level too deep (SystemStackError)

前端 未结 3 1676
Happy的楠姐
Happy的楠姐 2020-11-28 09:33

I\'m trying to run newly created project in Rails 4.0.8 but I receive and error:

    rails s
=> Booting WEBrick
=> Rails 4.0.8 application starting in         


        
3条回答
  •  囚心锁ツ
    2020-11-28 10:29

    I have the same error, but I don't want to upgrade to 5.0, my app is very big and upgrate take too many time. I'm upgrading the Rails 4.1.7 to the Rails to 4.2.8 first Rails release with Ruby 2.4 support:

    in the Gemfile:

    gem 'rails', '4.2.8'
    

    Then:

    bundle update rails
    

提交回复
热议问题