On Viernes, 4 de Diciembre de 2009 11:38:14 [email protected] escribió:
> Thank you, that was it ! ;)
> Now multiple Field-Update works, but some other parts of my apps
> don't anymore. One of my controllers produces following error which
> doesn't help me very much (It used to work before)

What do you have in OrdersController line 11? Post that controller please

>
>  200 OK [http://DEV/companies/1133/nested?
> _method=get&associations=ordercourses&adapter=_list_inline_adapter]
>
> Processing CompaniesController#nested (for 192.168.51.98 at 2009-12-04
> 11:25:53) [GET]
>   Parameters: {"associations"=>"orders",
> "adapter"=>"_list_inline_adapter", "id"=>"1133"}
>   Company Load (0.0ms)   SELECT * FROM [company] WHERE ([company].
> [F_ID] = 1133)
>
> ActionView::TemplateError (You have a nil object when you didn't
> expect it!
> The error occurred while evaluating nil.class_name) on line #28 of
> vendor/plugins/active_scaffold/frontends/default/views/
> _nested.html.erb:
> 25:       end
> 26:
> 27:       # generate the customized label
> 28:       @label = as_(:nested_for_model, :nested_model =>
> active_scaffold_config_for
> (association.klass).list.label, :parent_model => format_value
> (@record.to_label))
> 29:
> 30:       begin
> 31:         controller = active_scaffold_controller_for
> (association.klass)
>
>     app/controllers/orders_controller.rb:11
>     vendor/plugins/active_scaffold/frontends/default/views/
> _nested.html.erb:28
>     vendor/plugins/active_scaffold/frontends/default/views/
> _nested.html.erb:11:in `each'
>     vendor/plugins/active_scaffold/frontends/default/views/
> _nested.html.erb:11
>     haml (2.0.9) rails/./lib/haml/helpers/action_view_mods.rb:14:in
> `render'
>     haml (2.0.9) rails/./lib/sass/plugin/rails.rb:19:in `process'
>
> Rendered rescues/_trace (60.0ms)
> Rendered rescues/_request_and_response (4.0ms)
> Rendering rescues/layout (internal_server_error)
>
>
>
>
> On 3 Dez., 11:56, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > 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.

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