Joined June 2014
·
Posted to
Nested forms with ActiveModel::Model objects
over 1 year
ago
Loved that article, helped me a lot, thanks.
Achievements
18 Karma
0 Total ProTip Views
Charity
Fork and commit to someone's open source project in need
Mongoose
Have at least one original repo where Ruby is the dominant language
Hello,
I didn't need to all this mambo jambo to work with nested_form.
I just submitted an object directly to use as a blueprint to the add link this way:
f.linktoadd 'Add new item', :items, model_object: Item.new
The Item class is a plain Ruby Struct class.
PS: How come your posts are not dated? It's useful, especially when things move so fast like in the Rails community.