findの:joinsでActiveRecord::ReadOnlyRecordになっちゃう
The :joins option now implies :readonly, so if you use this option, saving the same record will now fail.
:joinsを指定したfindで取得したオブジェクトの更新がこれまでなかったからか全然知りませんでした。こういう場合は代わりに:includeを使うのね。。。なんかやだなー
The :joins option now implies :readonly, so if you use this option, saving the same record will now fail.
:joinsを指定したfindで取得したオブジェクトの更新がこれまでなかったからか全然知りませんでした。こういう場合は代わりに:includeを使うのね。。。なんかやだなー