19
16

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をバージョン指定してインストールする方法

Posted at
  • インスール済みのrailsのバージョンを確認
$ gem list rails

*** LOCAL GEMS ***

rails (6.0.0)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.3.0)
sprockets-rails (3.2.1)
  • 今回はrails5.2.3をインストールしたい
$ gem install -v 5.2.3 rails
  • 上記を実行後、再び確認すると追加されている
$ gem list rails

*** LOCAL GEMS ***

rails (6.0.0,5.2.3)
rails-dom-testing (2.0.3)
rails-html-sanitizer (1.3.0)
sprockets-rails (3.2.1)
  • 最期に新しくプロジェクトを作る時はバージョンを指定してあげる
$ rails _5.2.3_ new first_app
19
16
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
19
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?