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

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

    沒力小僧 發表在 痞客邦 留言(0) 人氣()