On Miércoles, 5 de Mayo de 2010 20:45:02 Iñaki Baz Castillo escribió: > 2010/5/5 Iñaki Baz Castillo <[email protected]>: > > The Route has not been saved! It has been ignored by active_scaffold, > > perhaps it assumes I've not filled the entry under 'Routes' subform. > > But in fact I've gives "Register" (tru) value to 'route_type' field, > > is it not enough? > > > > So how can I instruct AS that I do want to create such entry if > > 'route_type' is true even if the rest of the fields are not filled > > (not required in fact)? > > So the main question is: how does AS determine if a subform entry has > been filled or not? I think that it ignores select and checkboxes and > requires a text field to be filled, am I right? If so, I think it is > not valid for all the cases (as in my case).
When show_blank_record is enabled (it does by default), AS check if record is empty. To do that, it ignores boolean and date fields and other fields with default value. If you want to skip this check, disable show_blank_record, you won't get an empty record shown by default, but all records you add will be saved (even empty). -- Sergio Cambra .:: entreCables S.L. ::. Mariana Pineda 23, 50.018 Zaragoza T) 902 021 404 F) 976 52 98 07 E) [email protected] -- You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.
