2015-08-27から1日間の記事一覧
Virtual Attributes ActiveRecordの機能 文字通り仮想的な属性 テーブルの実カラムには無いけど、エントリフォーム等に入れたい値を格納する場所 Virtual Attributes の作り方 モデルに属性をattr_accessorで追加する 簡単。 Virtual Attributes の使い方 DB…
Virtual Attributes ActiveRecordの機能 文字通り仮想的な属性 テーブルの実カラムには無いけど、エントリフォーム等に入れたい値を格納する場所 Virtual Attributes の作り方 モデルに属性をattr_accessorで追加する 簡単。 Virtual Attributes の使い方 DB…