Saving nested objects with Rails, backbone.js, and accepts_nested_attributes_for

后端 未结 4 1388
心在旅途
心在旅途 2020-12-07 23:30

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(         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 23:42

    I found this gem! Maybe help you.

    http://blog.dtmtec.com.br/blog/2013/05/power-up-your-backbone-models-with-nested-attributes/

提交回复
热议问题