What is causing this ActiveRecord::ReadOnlyRecord error?

后端 未结 6 686
我寻月下人不归
我寻月下人不归 2020-12-07 08:18

This follows this prior question, which was answered. I actually discovered I could remove a join from that query, so now the working query is

start_cards =          


        
6条回答
  •  我在风中等你
    2020-12-07 08:41

    This might have changed in recent release of Rails, but the appropriate way to solve this problem is to add :readonly => false to the find options.

提交回复
热议问题