HI Matthew,
It is not hierarchical, and I was trying to create a custom controller. It is straightforward for the index view and I can respond with both homes and offices as below
self.respond(homes : homes, offices: offices, {template: 'app/views/tops/index'});
But I am strugging to understand how I can implement the create function in the top controller which can create either a home or a office, depending on which subform is filled and clicked.
Note that in the folloing picture, user can either fill the left form to create home or the right form to create office
/top/add