Top "Nested-attributes" questions

RubyOnRails allows you to access attributes of objects associated with the main model, using one, deep hash.

How to do the Hibernate validation on the nested list objects?

I need to validate the objects which are stored in the list on my form bean object. Below is my …

spring-mvc nested-attributes hibernate-validator
Adding a delete link for nested attributes

I have nested attributes in my show.erb and I create a blank nested attribute and show a grid of …

ruby-on-rails ruby-on-rails-3 nested-attributes
Rails nested has_one: cannot delete existing record

I'm trying to update nested question_output attributes in a 'question' model. A question has_one question_output. If there …

ruby-on-rails nested-attributes has-one
Plural for fields_for has_many association not showing in view

Currently, an Item belongs_to a Company and has_many ItemVariants. I'm trying to use nested fields_for to add …

ruby-on-rails ruby ruby-on-rails-3 nested-attributes fields-for
label_tag and checkbox_tag problem in rails

I want my checkboxes to be usable so I usually add label fors to the checkboxes so you can select …

ruby-on-rails-3 label checkbox nested-attributes
strong parameter and json input rails 4

I am trying to save data through JSON String in which I have nested associated attributes. I do not want …

ruby-on-rails json ruby-on-rails-4 nested-attributes strong-parameters
How to maintain the ordering for nested attributes when using accepts_nested_attributes_for in a Rails application

Here is the parent model: class TypeWell < ActiveRecord::Base ... has_many :type_well_phases, :dependent => :destroy accepts_nested_…

ruby-on-rails nested-attributes
Rails nested attributes children callbacks aren't fired

I'm running into a bizarre issue where children callbacks aren't fired when the parent is updated... I have the following …

ruby-on-rails activerecord callback nested-attributes
Rails - Validate Nested Attributes Uniqueness with scope parent of parent

I have a problem with the scoped uniqueness validation in Rails for nested attributes with a parent of parent. Background …

ruby-on-rails scope nested-attributes validates-uniqueness-of
Rails - How to manage nested attributes without using accepts_nested_attributes_for?

My problem is I've run into limitations of accepts_nested_attributes_for, so I need to figure out how to …

ruby-on-rails nested-forms nested-attributes model-associations update-attributes