I've got a rails app where I'm linking fields across two databases. The database stuff all seems to be fine.
However, I have one form where I am mapping a description from the remote database to a product in the local database.
The form the used to create the product and select the description works fine
#_form.rb semantic_form_for @products do |f| f.input :name semantic_fields_for :description_maps do |description| description.input :desciption_map_id, :input_html=>{:name=>"product[description_map][description_id]}, :collection => @descriptions end end #product.rb class Product < ActiveRecord::Base attr_accessible :name, :description_map_attributes, :description_map has_one :description_map accepts_nested_attributes_for :description_map
when I submit the form, I get an error
DescriptionMap(#...) expected, got ActiveSupport::HashWithIndifferentAccess(#othernumber)
I can't seem to figure out why this is happening.
the parameters being posted look fine
"product"=>{"name"=>"test name", "description_map"=>{"description_id"=>"1"}}