Why doesn't “rails s” work from the app directory?

前端 未结 7 2113
醉酒成梦
醉酒成梦 2020-12-09 04:33

I\'m in my app folder, but the command rails s is not working. I read through quite a few posts on Stack Overflow, and most of them seem to be from users who ar

7条回答
  •  星月不相逢
    2020-12-09 05:14

    I had this problem, took me a few minutes to realize I'd forgotten to change active Ruby version with chruby. Different Ruby implied a different Rails version, which looked for the relevant file in another folder.

提交回复
热议问题