0
Rails 4+にsecret.ymlがある場合、APIキーを保存できる理由は、.gitignoreファイルに自動的に追加されないのはなぜですか?Ruby on Railsのsecrets.ymlは.gitignoreに追加されていませんか?
これは私のファイルは新しいアプリを作成する際に次のようになります。
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep
# Ignore Byebug command history file.
.byebug_history
(ちなみに、私はRailsの5をしようとしているが、私はこの質問にはまだ適用されると思います)