Top "Nested-attributes" questions

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

Using find_or_initialize on Rails 5

I'm playing with Rails 5's find_or_initialize in my Blog app that has Posts and Categories entered into input …

ruby-on-rails activerecord nested-attributes form-for ruby-on-rails-5
Better solution for nested Backbone.js collections

Many of my Backbone models often deal with nested models and collections, so far I'm using a combination of defaults, …

backbone.js nested-attributes
Rails "assign_attributes" not assigning nested models

I have two models with the following structure: class Wallet < ActiveRecord::Base include ActiveModel::Validations has_one :credit_card …

ruby-on-rails ruby-on-rails-3 validation nested-attributes
Ruby on Rails - nested attributes: How do I access the parent model from child model

I have a couple of models like so class Bill < ActiveRecord::Base has_many :bill_items belongs_to :store …

ruby-on-rails nested-attributes
Alternative for accepts_nested_attributes_for - maybe virtus

I'm relatively new to rails and finally found the right way to use accepts_nested_attributes_for. However, there are …

ruby-on-rails ruby nested-forms nested-attributes
Rails 3 + JQuery-File-Upload + Nested Model

I've been searching for some examples, but have come up short: I'm trying to implement JQuery-File-Upload on a project I'm …

ruby-on-rails file-upload nested-attributes dragonfly-gem
Error messages of nested attributes's required field are not displayed

In my case, I have a client who has many tasks (which requires :detail and :completion_date fields.). I've been …

ruby-on-rails nested-forms nested-attributes simple-form-for
Nested has_many resource form with Active Admin doesn't do an update

I can't figure out how to use the nested resources input helpers in Active Admin to allow me to update …

ruby-on-rails activeadmin nested-attributes