Usually I just use something similar to http://railscasts.com/episodes/196-nested-model-form-part-1
Now i have an existing User which i am trying to add new cars and annimals. The User has_many cars and annimals and accepts_nested_attributes_for cars and annimals
If i do
= form_for(@user) do |f|
= f.fields_for @user.cars.build do |c|
I get error:
unknown attribute: car
And if i do
= form_for(@user) do |f|
= f.fields_for :cars do |c|
I get a list of all existing cars for that user (when I want to make a new one)
Thannks!
ps: i guess i should add, i'm using simple_form_for and simple_fields_for, it might be a bug with that...