Edit Rails Credentials in IDE
Can't figure out how to edit the Rails credentials file in RubyMine. Tried EDITOR="RubyMine --wait" rails credentials:edit to no avail. Just closes file before it opens in the IDE. Is there a way for me to edit the credentials inside RubyMine or do I need to use a separate text editor?
Please sign in to leave a comment.
Hello,
could you please specify whether you mean credentials.yml.enc? Have you tried opening it as a project's file?
Just opening the credentials.yml.enc file just shows the encrypted data, it's not unencrypted so it's not able to be worked with. Evidently, rails needs the credentials:edit so we can change it. If there is a way to open and modify the encrypted data that would be helpful but I just can't find it.
It was working in 2019, but now fails - see https://youtrack.jetbrains.com/issue/RUBY-19518