search for: vehicle_record

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

2009 Feb 18
5
fields_for and Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array.
...that already exists in my database and has an id and other times I will pass it a newly created instance of an object that does not yet exist in the database and does not have an id. I want the params hash to have the id of the object if its available, so - i''m using fields_for ''vehicle_record[]'', as opposed to fields for ''vehicle_record''. Also, when I am using the form to render an existing object, i''d like it to automatically display the values of the existing parameters wherever I use f.text_field. And - i''d like it to package up those par...