I have two simple models each with acts_as_tree, say Departments and Employees. My goal is to create a treeview combining both models in to one overall tree, like so:
- Department 1
- SubDepartment 1.1
- Employee A
- Employee B
- SubDepartment 1.2
- SubDepartment 1.1
- Department 2
- Subdepartment 2.1
- Employee C
- Subdepartment 2.1
- Department 3
- SubDepartment 3.1
- Employee D
- Employee E
- Subdepartment 3.2
- SubDepartment 3.1
etc
I found this already: http://stackoverflow.com/questions/2142285/acts-as-tree-with-multiple-models but I'm afraid I could use a little more pointers in the right direction.
Thanks!