Edit Rails Credentials
To edit credentials in Rails using sublime run this, and it will open the credentials file in sublime.
Assuming we've set up credentials for each of our environements (as we've done in ZipMessage), we'll need to add the credentials to each one separately, using these commands:
Edit credentials for development:
Edit credentials for test:
Edit credentials for staging:
Edit credentials for production:
Once saved and the file is closed, those credentials will be encrypted and saved.
You can then reference the credentials like this:
Last updated