問題:
attr_accessible
seems to no longer work within my model. attr_accessible
似乎不再適用於我的模型。
What is the way to allow mass assignment in Rails 4? 在Rails 4中允許批量分配的方法是什麼?
解決方案:
參考一: https://stackoom.com/question/1At4o參考二: How is attr_accessible used in Rails 4?