Skip to content

Instantly share code, notes, and snippets.

@Azmandius21
Last active October 19, 2024 18:04
Show Gist options
  • Save Azmandius21/47beadfdcc8e7372dae8df589cc3b945 to your computer and use it in GitHub Desktop.
Save Azmandius21/47beadfdcc8e7372dae8df589cc3b945 to your computer and use it in GitHub Desktop.
Helpful rails practice

Rails

EDITOR=nano rails credentials:edit
'rails c =>'
:Rails.application.credentials.SECRET_KEY =
:Rails.application.credentials['SECRET_KEY'] =
:Rails.application.credentials.fetch('SECRET_KEY'.to_sym)
In file.yaml:
<%= Rails.application.credentials['SECRET_KEY'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment