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).

Perhaps there could be in each subform a checkbox "ignore [X]" (filled
by default), and it's emptied (so subform's entry enabled) manually or
automatically when any field of the subform entry is modified (like a
select or checkbox). Then the user can determine whenever create or
ignore such subform entry.

This is similar as when creating multiple row entries in PhpMyAdmin
(there is a checkbox "ignore" in each entry, with exactly the behavior
described above).

Regards.


-- 
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