Hi, I've created a virtual column "enabled" for model Phone. Then in
PersonsController (has_many :phones) I have a subform for user phones.

Here is the problem: when I press "edit" over a row in "persons"
collection I see an empty form for a new possible Phone (I don't want
to use "show_blank_record = false"). I fill nothing in that subform
but AS fails since it considers I've filled "something". I expect it
occurs because the virtual column has no default value in the DB table
(of course) but initially it is checked.

And such virtual field appears as checked in an empty subform because
its value depends on the value of other column (TINYINT 0-1) which  is
1 by default.

Is there any workaround for this? Thanks a lot.

-- 
Iñaki Baz Castillo
<[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.

Reply via email to