Comparing your code to mine, the only idea I can come up with is forgetting the accepts_nested_attributes_for declaration as this is what generates the setter method.
On Monday, May 24, 2010, Michael Kim <[email protected]> wrote: > This should have gone in my last post : > > <field-list fields="cust_name, cust_email, cust_email_confirmation, > benificiary_name, benificiary_dob, > benificiary_passing_date, description, archive_days, > additional_logins, pc_dvd, > tv_dvd, tv_format, address1, address2, city, state, > zip, eula, funeral_home, > livecast.service_start, livecast.service_end, > service_level" param> > <livecast_service_start-view:> > <input name="service_order[livecast_attributes][service_start]"/> > </livecast_service_start-view:> > <livecast_service_end-view:> > <input name="service_order[livecast_attributes][service_end]"/> > </livecast_service_end-view:> > </field-list> > > Those are the relevant lines from the service_order form. Thank again. > > Mike > > On Mon, May 24, 2010 at 11:20 AM, mkim <[email protected]> wrote: > Matt, > > I am using accepts_nested_attributes_for, but I couldn't find the > earlier thread. How and where should I be explicitly adjusting the > parameter name? Thanks. > > Mike > > On May 24, 9:31 am, Matt Jones <[email protected]> wrote: >> 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 toexplicitlyadjusttheparameternamehere - 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 >> athttp://groups.google.com/group/hobousers?hl=en. > > -- > 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. > > > > > -- > 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. > -- 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.
