On Jueves, 3 de Diciembre de 2009 11:33:59 [email protected] escribió:
> Hi,
>
> Maybe I missed something. This didn't work either since
> after_render_field never gets called.
> Any idea ?
>

Do you have latest ActiveScaffold? I think it was added some weeks ago

> ahmed
>
> On 1 Dez., 11:16, "[email protected]"
>
> <[email protected]> wrote:
> > 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.

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


Reply via email to