On Viernes, 3 de Diciembre de 2010 20:19:47 Frederic escribió:
> Hello everyone,
> I have three models, 'Module', 'Component' and 'Sub_component' that
> have the following associations:
> Module                has_many :components;
> has_many :sub_components, :through => :components
> Component          belongs_to :module; has_many :sub_components
> SubComponent    belongs_to :component
> 
> I am looking for a way of triggering the creation of both components
> and sub_components from the creation of a module.
> The first part is easy: when I create a new Module, ActiveScaffold
> generate subforms for creating the module's components. But would
> there be a way to cascade this procedure and have the subform link to
> a 'sub-subform' for the sub-components?
> I don't think that there is a straightforward way of doing this, but
> can you think of a workaround?

There is no way, I started to implement it but it's hard. The hardest part is 
get unique ids for fields.

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