On May 23, 2010, at 10:49 PM, mkim wrote:
Hello,
I've managed to get a nested form for a has_one/belongs_to
relationship with some help from posts on this group. The nested form
shows up, but when I submit I get the following. Any help is
appreciated.
Mike
Livecast expected, got HashWithIndifferentAccess
Here are the params:
{"page_path"=>"admin/service_orders/new",
"authenticity_token"=>"TwuxTQIlndNkF/EF1cIapvrr0Z776hwE5csF3jElOew=",
"service_order"=>{"benificiary_name"=>"",
"address1"=>"",
"city"=>"",
"service_level_id"=>"",
"address2"=>"",
"zip"=>"",
"archive_days"=>"0 Days",
"benificiary_dob"=>"",
"tv_dvd"=>"0",
"additional_logins"=>"0",
"tv_format"=>"NTSC",
"livecast"=>{"service_start"=>"",
You'll need to explicitly adjust the parameter name here - if you used
accepts_nested_attributes_for, it should be 'livecast_attributes'.
There's an earlier thread on here that should be helpful.
--Matt Jones
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.