configuration of nested forms

15 views
Skip to first unread message

ala...@citrin.ch

unread,
Dec 29, 2009, 4:05:57 AM12/29/09
to ActiveScaffold : Ruby on Rails plugin
hi,

i'm not sure if i'm doing something wrong. This is the scenario:
Order has many Positions assoziation so i can have nested form.

in OrderController i have :
config.columns = [ .. all coulumns i ever need .. ]
then
config.create.columns = [...]
config.update.columns = [...]
config.list.columns = [...]
config.show.columns = [...]

Same in PositionsController

Now, when is open positions-form nested inside order-form the postions-
form uses config.columns-Configuration i'd expect it to use
config.create-Confiuration.

Sergio Cambra .:: entreCables S.L. ::.

unread,
Dec 29, 2009, 6:59:33 AM12/29/09
to actives...@googlegroups.com

Nested forms will use config.subform.columns

>
>
> --
>
> 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 actives...@googlegroups.com. To unsubscribe from this group,
> send email to activescaffol...@googlegroups.com. 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) ser...@entrecables.com

ala...@citrin.ch

unread,
Dec 29, 2009, 8:03:33 AM12/29/09
to ActiveScaffold : Ruby on Rails plugin
couldn't find config.subform.columns accepting different configs for
update and create as i would need it. Should one use
per_request_configuration in this case or is there something like e.g.
config.subform.update.columns ?


On 29 Dez., 12:59, "Sergio Cambra .:: entreCables S.L. ::."

Sergio Cambra .:: entreCables S.L. ::.

unread,
Dec 29, 2009, 10:10:20 AM12/29/09
to actives...@googlegroups.com
On Martes, 29 de Diciembre de 2009 14:03:33 ala...@citrin.ch escribió:
> couldn't find config.subform.columns accepting different configs for
> update and create as i would need it. Should one use
> per_request_configuration in this case or is there something like e.g.
> config.subform.update.columns ?

You have to use per-request configuration

Reply all
Reply to author
Forward
0 new messages