Alright, following up on this, I just merged in the form_helper from
the jquery branch into the newest main branch and the UI is working
fine. However, I'm having additional errors now on both updating an
existing record with associations, and creating a new record that has
associations. Case/code examples:
[code]
class DeviceType < ActiveRecord::Base
....snip
has_many :device_type_data_registers
has_many :data_registers, :through
=> :device_type_data_registers, :attributes => true
....snip
end
class DataRegister < ActiveRecord::Base
...snip
has_one :device_type, :through => :device_type_data_registers
...snip
end
[/code]
Now, whenever I submit a new form creating a new Device Type with
associated Data Registers (form data example: ), and anything in the
Data Register is invalid, I get two "Data registers is invalid"
messages, and a blank form for a new data register is appended (as
though I had hit add_associated_link) in addition to my previously
submitted Data Register. This pattern repeats as submitting again with
2 blank data registers gives me 3 invalid messages, and 3 blank forms,
and so on.
When trying to update an existing Device Type, I can correctly update
preexisting data register fields, and add new ones via
add_associated_link, but the save does not add them to the Device
Type, but instead, as was noted by
http://groups.google.com/group/attribute_fu/t/a744821c970f4d3a
they are saved to the database unassociated with any Device Type.
I hope these symptoms help in diagnosing the problem!
- Tyler