On 21 aug, 12:26, Felix Schäfer <[email protected]> wrote:
> Am 21.08.2009 um 12:19 schrieb jhaagmans:
>
> > It will generate a new query for the root element as well as every
> > child it handles. That's not what I want. The reason why I was told to
> > use "awesome nested set" is because I can retrieve my entire nested
> > set in one single query and proceed from there. I have certain sets
> > that will generate over 100 queries this way, that's not pretty!
>
> > Can anyone tell me what I'm doing wrong?
>
> Try using the view helper as described in the 
> READMEhttp://github.com/collectiveidea/awesome_nested_set/tree/master
>
> Mit freundlichen Grüßen,
>
> Felix Schäfer

Danke Felix!

The thing is: I don't understand it. The rdoc is a bit more extensive
on this and I think I get the syntax of nested_set_options, but I
don't understand how to really use this in my view. Should I still
send the self_and_descendants object from my controller and how can I
use this to generate lists within lists (<ul> within <li>)? The usage
with '-' * i.level is very ugly and totally unsuitable in my case.

I want a parent to put an <ul> around its children and every child
within an <li> tag. But the nested_set_options method doesn't seem to
be able to work this way.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to