最佳答案
I am new to Rails 4, and do not understand the use of secret_key_base
under config/secrets.yml
in Rails 4. Can you please explain this concept?
Also, when I am working in the production environment, I am prompted to set the secret_key
with devise.rb
, config.secret_key
, and secret_key_base
. However, I can generate a new secret using the rake secret
command.
What is the difference between development and production environments?
How is it matching the newly generated secret_key
when I add it with secret_key_base
every time I generate?
How is it securing the application with other servers?