エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Saving nested objects with Rails, backbone.js, and accepts_nested_attributes_for
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Saving nested objects with Rails, backbone.js, and accepts_nested_attributes_for
I'm using Rails, backbone.js (learning this now). Let's say you have two models, Car and Engine. ... I'm using Rails, backbone.js (learning this now). Let's say you have two models, Car and Engine. var Car = Backbone.Model.extend({ initialize: function() { if(this.get('engine') != undefined) this.engine = new Engine(this.get('engine')); } } var redCar = new Car({ 'color': 'red', // The controller nests the model 'engine': { 'horsepower': '350' } }); redCar.save() What is the right way to send eng