I am trying to open credentials file with this command.
rails credentials:edit
It returns :
No $EDITOR to open file in. Assign one like this:
EDITOR="mate --wait" bin/rails credentials:edit
For editors that fork and exit immediately, it's important to pass a wait flag, otherwise the credentials will be saved immediately with no chance to edit.
So I make this command :
EDITOR="subl --w" bin/rails credentials:edit
However, terminal responds with "New credentials encrypted and saved" without opening an editor.