From: "David A. Black" Date: 2008-04-29T12:19:59+09:00 Subject: Re: hacking arrays Hi -- On Tue, 29 Apr 2008, John wrote: > The code: > > http://pastie.caboo.se/188207 > > The question: > > Why isn't it doing them like nested folders? I'd like to get > > .----------------- > | Parent folder > | .------------------ > | | child folder > | | child files > | |____________ > __________ > > but I don't. Can anyone see whats wrong here? I'm losing my mind. It probably just a matter of counting the divs. I've sort of hacked together a rewrite that looks like it's getting it right. Emphasis on "hacked" :-) There's room for refinement, but anyway, this might get you moving. http://pastie.org/188490 David -- Rails training from David A. Black and Ruby Power and Light: INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin INTRO TO RAILS June 24-27 London (Skills Matter) See http://www.rubypal.com for details and updates!