On Martes, 2 de Noviembre de 2010 14:35:48 Andrey Voronkov escribió:
> Sounds complicated. Multiple nested associations is a very good
> feature of AS. Can I implement this without overrriding
> _list.html.erb?

You can continue using that feature, but in next version will be removed.

I have never used multiple nested associations, but it shouldn't be hard use a 
controller with an index view with embedded scaffolds.

Anyway code is cleaner without nested action and render_component, it uses 
urls to nested controller (a requested feature too), bug about cookie overflow 
is fixed because session is not used to keep constraints, and render component 
is not used which probably won't work in rails 3 anyway.

Also, the main reason is to get rid of render component when it's possible. 
Maybe that feature could be readded if render component work in rails 3.

> 
> 2010/11/2 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> > On Jueves, 28 de Octubre de 2010 04:42:35 Andrey Voronkov escribió:
> >> DEPRECATION WARNING: config.nested.add_link with multiple associations
> >> is not already supported. Remove array.
> >> 
> >> I think It was the greatest thing in AS to bind multiple associations
> >> to the one link.
> > 
> > Because nested links will be changed to list link to the controller.
> > Previous link:
> > parent_controller/id/nested?associations=...
> > Next link:
> > parent_controller/id/associated_controller
> > 
> > So you can't use multiple associations with that link schema. Using that
> > schema render_component won't be needed for nested scaffolds and code is
> > simpler. Render component is a plugin now because it was removed from
> > rails in 2.2 or 2.3, it's not maintained, at least actively and I don't
> > know whether it works in rails 3, so it's good to avoid using it when
> > it's possible.
> > 
> > You can get nested scaffold with multiple associations with a controller
> > with custom list view, using embedded scaffolds to show multiple
> > associations. You will add a link for that controller with
> > config.action_links.add
> > 
> > --
> > 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