這篇文章講的很清楚:attributes= (ActiveRecord::Base) - APIdock

這樣要繞過 attr_protected 的 column 時就不用一個一個手動指定了。

Posted by 沒力小僧 at 痞客邦 PIXNET 留言(0) 引用(0) 人氣()