
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
field_for and nested form with mongoid
Your models: class Employee include Mongoid::Document field :first_name field :last_name embeds_o... Your models: class Employee include Mongoid::Document field :first_name field :last_name embeds_one :address # validate embedded document with parent document validates_associated :address # allows you to give f.e. Employee.new a nested hash with attributes for # the embedded address object # Employee.new({ :first_name => "First Name", :address => { :street => "Street" } }) accepts_nested_attribut
2012/07/20 リンク