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

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

Posted by 沒力小僧 at 痞客邦 PIXNET Comments(0) Trackback(0) Hits(185)