nested-forms
Rails fields_for duplicate forms for existing records after validation
I\'ve come across a rather bizarre error. I have a nested form that works as expected except when a validation fails on an existing record. When a validation fails on an existing record, the re-render[详细]
2023-03-13 19:09 分类:问答Use rails nested model to *create* outer object and simultaneously *edit* existing nested object?
Using Rails 2.3.8 Goal is to create a Blogger while simultaneously updating the nested User model (in case info has changed, etc.), OR create a brand new user if it doesn\'t exist yet.[详细]
2023-03-13 09:19 分类:问答Why doesn't my nested form display?
Running on Rails 3.1 RC1 and following this. A user can have one or many emails. My email fields don\'t show in the form. No error is rendered.[详细]
2023-03-12 20:51 分类:问答nested_form, collection_select, accepts_nested_attributes_for and fields_for, and adding records to a join table
Update: according to the stack trace, posted at the end of this question, I think the real problem is to figure out what attr_accessible and build association settings I need to get the contributors a[详细]
2023-03-11 18:18 分类:问答unknown attribute error when submitting multiple records in double-nested form
I\'m using nested_form for a situation where: Parent (climb) ==has_one==> Join Model (route_ascent) ==polymorphic has_many==> Children (route_step)[详细]
2023-03-11 06:52 分类:问答Using awesome_nested_set in a nested form
I\'m using Rails 3.0.7 with awesome_nested_set and I\'m trying to create a nested form which will allow me to enter a category and sub categories all in one create form.[详细]
2023-03-11 05:25 分类:问答formtastic can't convert symbol to integer
I\'ve got a fairly simple nested form using formtastic. My models are class FieldMap < ActiveRecord::Base[详细]
2023-03-07 21:16 分类:问答Nested form with devise
This is my sign up form: <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>[详细]
2023-03-07 01:39 分类:问答Creation of multiple nested objects
I\'ve been struggling with this far too long now. For the simplicity, suppose I have Lead The Jungle app in which users ask[详细]
2023-03-05 14:56 分类:问答Nested forms help - How to add existing products to a new announcement?
My models seem correctly defined, because I can add as many products to an Announcement via console. MODELS[详细]
2023-03-04 15:53 分类:问答