I want to display tree structure (tree is based on parent_id column)
of Program model via nesting of AS. So I want to display only root
records and nested link for subprograms for each row. And so on going
deeper. So I think this conditions_for_collection method fits to
display root records:
def conditions_for_collection
{ :parent_id => nil }
end
But how should I improve it for displaying nested records in nested
view block with the same ProgramsController ( all nested records are
having parent_id <> 0 ). Or how to point AS to use other controller
(e.g. SubprogramsController ) to handle nested records config?
P.S. Or just share your experience of using tree structure with ActiveScaffold.
--
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.