0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

rails g controllerを実行するとエラーが出た時の対処法

Posted at

rails g controllerを使用するとエラーが出たのでその時の対処法

実行したコマンド
rails g controller homes

エラー内容
initialize': Rails::Application is abstract, you cannot instantiate it directly. (RuntimeError)

解決方法
gemfile内を変更する
変更前: gem 'spring'
変更後: gem 'spring', '4.2.1'

最新バージョンでエラーが発生していたようなので、
バージョンを落とすことでエラーを回避できました。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?