문제

Reading through the release notes for Rails 4.1.0, I see that there seems to be some inclusion of/modification to a file config/secrets.yml and I'm wondering the effects on the sample_app from Hartl's book...

My questions are:

  1. For security best practices, should one add this file to the .gitignore file or is Rails handling this by default? If so, can .secret be removed from the .gitignore file? e.g. Listing 1.7 .gitignore file

  2. In chapter 3 of Hartl's book, steps are taken to dynamically create the secret token here. With this new config/secrets.yml is there any reason to continue to dynamically create the secret-token?

도움이 되었습니까?

해결책

I more or less answer my own question in an answer for someone else's question: How to dynamicly generate secret tokens in Rails 4.1 with secrets.yml?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top