HI


am using acts_as_tree and yui to generate tree structure,
as per the DB is consern for acts_as_tree,the parent and child nodes
are from one table..


i have two different table like


region table
-------------
pk     name
1      hyderabad
2      chennai
3      bangalore


area tabel
id     name          fk
1      madhapur      1
2      hi-tech       1
3      kondapur      1
4      adayar        2
5      ECR road      2
6      anna nagar    2
7      whitefiled    3
8      MGM           3



so i need name in region table as root node and the respective fk
names in area table as child nodes(i dont need subchild node )..



how can i use acts_as_tree for this table,are is there an alternative
to do this
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to