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'] %>
'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'] %>