0
はここで奇妙な問題だattr_protectedで牛肉を持っています(!驚きの落とし穴)Herokuのシーダー資産:プリコンパイルは
は私のActiveRecordモデルの- 一つは、データベース
- On Heroku Cedar, the database is not available during slug compilationに接続する必要があります
attr_protected
attr_protected
を使用しています。
回避策:
- 使用
attr_accessible
代わり - Other people have used this workaround
よりよい解決策はありますか?ありがとう。
ニースを行うことになっています。 –
また、http://devcenter.heroku.com/articles/labs-user-env-compileを参照して、コンパイル時にenv変数を利用できるようにしてください。 –
@JohnBeynonありがとう、それは私が探していたものでした – himynameisjonas