Rails console in production: NameError: uninitialized constant

后端 未结 2 2064
独厮守ぢ
独厮守ぢ 2020-12-28 13:49

I have a rails app (rails 5). In development, everything work, when i use

rails console

And enter an instruction, for example User.a

2条回答
  •  清歌不尽
    2020-12-28 14:04

    I had this problem and realized it happened after I made a tweak to one of my job files. What fixed it was restarting the spring loader. Just run

    spring stop
    

    Then the next time you run the rails console it should load things as normal.

提交回复
热议问题