nested-forms
accepts_nested_attributes_for not saving paperclip image
I am trying to save images through nested model **model: Listing has_many:photos accepts_nested_attributes_for :photos, :allow_destroy => true[详细]
2023-03-22 16:19 分类:问答Rails nested form new association
I am currently creating a form with some nested attributes. The relevant parts are that there is a Sale model (the master model for the form), a Vehicle model (sale has_one vehicle and vehicle belongs[详细]
2023-03-22 12:52 分类:问答Problem using nested_form gem when save data
It\'s my first time here, and first time I use nested_form gem. Everything seemed to be ok, but the data from my \"parent\" model doesn\'t save.[详细]
2023-03-22 03:40 分类:问答Rails Nested Attribute using Model Data
I am trying to set up a nested model form similar to the one in Ryan Bates\' Railscast Ep #196. My models are:[详细]
2023-03-21 09:33 分类:问答How to have form use a different controller
I have 3 Models: Location belongs_to :user has_many :products, :product_dates ProductDate belongs_to :user, :location[详细]
2023-03-21 02:44 分类:问答How to build children of a nested form in the controller
I know how to build the 2nd object in a controller but how do you build a third or a fourth? In my case i need to build 3.[详细]
2023-03-20 23:46 分类:问答Nested attributes are not updating in rails
I have 3 models: class DropShipOrderLineItem < ActiveRecord::Base belongs_to :drop_ship_order belongs_to :line_item[详细]
2023-03-20 21:28 分类:问答Rails 3 Nested Model Form: Can not mass assign protected attribute
I currently have a form set up with nested models - all going according to plan so far. The form allows me to create a sale, and from that I can create a customer and a vehicle (separate models).[详细]
2023-03-20 16:15 分类:问答Rails 3 nested attributes: How can I assign a matching record to the parent model instead of creating a new record every time?
Here\'s the basic setup: I have an Order model. An Order has one Address and it accepts_nested_attributes_for :address.[详细]
2023-03-20 15:45 分类:问答Rails nested form inserts null attributes in database
I\'ve searched a lot and the common cause of this problem is attr_ascessible :model_attributes not being declared but I can\'t seem to get it working.[详细]
2023-03-20 04:15 分类:问答