does anybody know, if partial recursion works? example: render_partial ''task'', @task _task.rhtml --- <% for child in task.children %> <%= child.name %> <%= render_partial_collection ''task'', child.children %> <% end -- Norman Timmler - inlet media e.K. mailto:norman.timmler-tQBQu56/4+8RLu74MAVXfw@public.gmane.org phone :+49 (0)40 / 43 25 10 81 fax :+49 (0)40 / 43 25 10 82 web :http://inlet-media.de inlet media e.K. Holländische Reihe 31 22765 Hamburg _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \
Did you try it? I don''t see why it wouldn''t work... On 5/12/05, Norman Timmler <norman.timmler-tQBQu56/4+8RLu74MAVXfw@public.gmane.org> wrote:> does anybody know, if partial recursion works? > > example: > > render_partial ''task'', @task > > _task.rhtml > --- > <% for child in task.children %> > <%= child.name %> > <%= render_partial_collection ''task'', child.children %> > <% end > > -- > Norman Timmler - inlet media e.K. > > mailto:norman.timmler-tQBQu56/4+8RLu74MAVXfw@public.gmane.org > phone :+49 (0)40 / 43 25 10 81 > fax :+49 (0)40 / 43 25 10 82 > web :http://inlet-media.de > > inlet media e.K. > Holländische Reihe 31 > > 22765 Hamburg > > _ > ASCII ribbon campaign ( ) > - against HTML email X > & vCards / \ > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- rick http://techno-weenie.net
Yes, i tried and seems not working. The collection is not rendered any more. Am Donnerstag, den 12.05.2005, 15:08 -0500 schrieb Rick Olson:> Did you try it? > > I don''t see why it wouldn''t work... > > On 5/12/05, Norman Timmler <norman.timmler-tQBQu56/4+8RLu74MAVXfw@public.gmane.org> wrote: > > does anybody know, if partial recursion works? > > > > example: > > > > render_partial ''task'', @task > > > > _task.rhtml > > --- > > <% for child in task.children %> > > <%= child.name %> > > <%= render_partial_collection ''task'', child.children %> > > <% end > > > > -- > > Norman Timmler - inlet media e.K. > > > > mailto:norman.timmler-tQBQu56/4+8RLu74MAVXfw@public.gmane.org > > phone :+49 (0)40 / 43 25 10 81 > > fax :+49 (0)40 / 43 25 10 82 > > web :http://inlet-media.de > > > > inlet media e.K. > > Holländische Reihe 31 > > > > 22765 Hamburg > > > > _ > > ASCII ribbon campaign ( ) > > - against HTML email X > > & vCards / \ > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >-- Norman Timmler Holländische Reihe 31 22765 Hamburg +49 (0)40 / 43 25 10 80 mailto:norman-QkIQCVqxERM@public.gmane.org _ ASCII ribbon campaign ( ) - against HTML email X & vCards / \