前提環境
$ ruby -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x64-mingw32]
$ rails -v
Rails 7.0.1
OSはWindows10 64bitです。
RubyMineの実行ファイルパスを取得する
スタートメニューなどからRubyMineのアイコンを探して、[ 右クリック->(その他)->ファイルの場所を開く ]をrubymine64.exe
ファイルが出てくるまで行います。
そうしたら、ファイルをコピーしてエクスプローラーのアドレス欄に張り付けて、その文字列をコピーしてください。
環境変数を設定する
値の例: "C:\...\rubymine64.exe --wait"
- 一時的
set EDITOR=先ほど取ってきたパス --wait
- 恒久的
setx EDITOR 先ほど取ってきたパス --wait
編集
rails credentials:edit