search for: yber

Displaying 2 results from an estimated 2 matches for "yber".

Did you mean: cyber
2009 Feb 09
4
forms that mix new and old records
I''m trying to create a form/view that displays a mix of records that exist in the database and records that the user is working on but that don''t yet exist in the database. I want to leverage all of rails'' nice form helpers, especially the params hash that it generates for the records when the form is submitted. So - I am creating ''dummy'' records with
2009 Feb 18
5
fields_for and Conflicting types for parameter containers. Expected an instance of Hash but found an instance of Array.
I''m trying to use ''fields_for'' in a form. I want the same form to support both the creation of new obejcts as well as the editing of old ones. So - in my controller, sometimes I will pass to the form an object 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