LoginSignup
8

More than 5 years have passed since last update.

railsコマンドが使えないときにやったこと

Posted at

rails serverができない

railsを起動しようとしてもコマンド実行するたびに下記のメッセージが表示されるので困った。
rails初心者なのでとにかく動かしたい。

$ rails server
Rails is not currently installed on this system. To get the latest version, simply type:

    $ sudo gem install rails

You can then rerun your "rails" command.

rails serverができた!

下記のコマンドを実行したらrails serverが実行できました。

$ gem install railties
$ rbenv rehash

参考サイト

railsをインストールできない
Railsのバージョンがなんかおかしい時はrailtiesをチェック

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
8