On Jueves, 6 de Mayo de 2010 15:05:29 Iñaki Baz Castillo escribió: > 2010/5/6 Iñaki Baz Castillo <[email protected]>: > >> 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). > > > > This is a good solution. I think I already tested it nd didn't work, > > but I could be wrong. I'll check it, > > It doesn't work. In ClientController (Client has_many :routes) I set: > > config.columns[:routes].show_blank_record = false > > So when I create a Client I must press "Create other Route" button and > the subform is shown. Then I just change the select box and set it to > "Registro". I save the client and the route has been not created.
There was a bug, it's fixed now -- 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.
