undefined method `require_relative' for main:Object (NoMethodError)

后端 未结 5 371
别那么骄傲
别那么骄傲 2021-01-12 08:09

When trying to update OpenSSL - I broke (seemingly) everything surrounding Ruby and Rails on my laptop. Even after uninstalling ruby and rails through gem uninstall

5条回答
  •  走了就别回头了
    2021-01-12 08:41

    Try running bundle exec rails server instead of just rails server.

    I was seeing this error because I had a conflicting version of the rails gem installed globally.

    Prefixing commands with bundle exec ensures that you're using gems specified by your project's Gemfile.lock.

提交回复
热议问题