Top "Nested-attributes" questions

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

rails ActiveAdmin nested form has_one accepts_attributes_for formtastic issue

I am using ActiveAdmin and Rails 3.1 -- having problem understanding whether the following is a bug, or if there is …

ruby-on-rails ruby-on-rails-3 formtastic nested-attributes activeadmin
Rails 4 deleting nested attributes, works on create but not on edit/update

So I'm working from this Railscast. And I'm aware that there have been some changes in Rails 4 for Strong parameters. …

ruby-on-rails ruby-on-rails-3 ruby-on-rails-4 nested-attributes
Rails 4 NOT updating nested attributes

Issue: Instead of updating nested attributes, they are being created on top of the existing nested attributes when I hit …

ruby-on-rails ruby-on-rails-4 nested-attributes nested-form-for
Nested attribute update_attributes uses insert rather than update

I have a user and nested profile class as follows: class User < ActiveRecord::Base has_one :profile attr_accessible :…

ruby-on-rails nested-attributes update-attributes
Rails 4.0 with Devise. Nested attributes Unpermited parameters

I am working on a web-app using Devise and Rails 4. I have a User model which I have extended with 2 …

ruby-on-rails devise nested-forms nested-attributes strong-parameters
Nested models and parent validation

I've got two models. - Parent has_many Children; - Parent accepts_nested_attributes_for Children; class Parent < ActiveRecord::…

ruby-on-rails ruby nested-attributes
Rails 4: accepts_nested_attributes_for and mass assignment

I am trying to reproduce railscast #196 in Rails 4. However, I'm experiencing some problems. In my example I try to generate …

ruby-on-rails object nested-forms nested-attributes
RoR nested attributes produces duplicates when edit

I'm trying to follow Ryan Bates RailsCast #196: Nested model form part 1. There're two apparent differences to Ryans version: 1) I'm using …

duplicates ruby-on-rails-4 nested-attributes
Angular JS ngResource with nested resources

I'm trying out angular JS and I want to get data from a nested resource defined in my rails application. …

ruby-on-rails-3 json angularjs nested-forms nested-attributes
Rails form with nested attributes (accepts_nested_attributes_for)

I have this one to many relationship: class Programa < ActiveRecord::Base attr_accessible :descripcion, :nombre, :roles_attributes has_many :…

ruby-on-rails nested-attributes has-many