6
레일 콘솔을 실행할 때 내 개발 환경에서 Rails.configuration.secret_key_base
에 대한 호출이 nil을 계속 반환합니다.레일 구성 비밀 키 기반 nil 반환
#secrets.yml
development:
secret_key_base: the-long-secret-generated-by-rake-secret
#...other configs, a call while running heroku rails c in production also returns nil
어떻게 될 수 있습니까? 실행 레일 the documentation에서 언급 한 바와 같이 4.1.0
그래, 내 부분에 잘못된. 나는 이것을 다른 사람 (공식적이 아닌)의 레일 가이드로 읽었다. http://edgeguides.rubyonrails.org/4_1_release_notes.html#config-secrets-yml –