search for: vendor_don

Displaying 1 result from an estimated 1 matches for "vendor_don".

2006 May 04
4
Two Models one form
...r'' %> <%= check_box "vendor", "electricity" %> I get the error "Vendor expected, got String." Do I need to manually insert the vendor data in the controller? Like this: @reg = Registration.new(params[:registration]) @reg.vendor.donation = params[:vendor_donation] @reg.vendor.monetary_donation = params[:vendor_monetary_donation] @reg.vendor.other = params[:vendor_other] @reg.vendor.electricity = params[:vendor_electricity] Or is there an easier way? -- Posted via http://www.ruby-forum.com/.