4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Rails で Routing Error uninitialized constant ApplicationController と言われました。

Last updated at Posted at 2016-01-25

deviseのログイン機能を作っていると思ったらエラーがでました。

Routing Error

Routing Error
uninitialized constant ApplicationController

あれ
寿司ゆき:what

これは謎のエラーでオカシイですね。

ApplicationControllerがなかった

gitでマージした時にapplication_controller.rbが消えてしまったようです。

application_controller.rbを削除していた該当commit を git revertして、application_controller.rbを復活させました。

再度 rails s

今度は表示されるようになりました。

4
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?