Hi,
you may try the following:
in your activescaffold config:
conf.columns[:attribute].options = {:update_column =>
[:attribute_1, :attribute_2]}
add method to your controller:
def after_render_field(record, column)
record.attribute_1 = new_value
record.attribute_2 = new_value2
end
--
Volker
On 1 Dez., 10:13, "[email protected]" <[email protected]> wrote:
> hi
> I'd like to update mutliple formfields at once, dependent on a
> selectbox -option. I could do it for one field as described in the doc
> ("Chaining Form Fields") but i couldn't figure out how to do it for
> multiple form fields ?
> Any suggestions appreciated.
--
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.