Hi All,
I'm currently developing a Rails app with 4 nested models (as per THIS POST). I've considered using javascript to manage them all on one page. It appears doable (as do many things in Rails), however, it doesn't come highly recommended.
That said, I'm looking to manage via proxy pages. Currently the model structure is as follows:
Sites 'has_many' Buildings 'has_many' Controllers 'has_many' Measurements
My current goal is to manage items via Javascript "windows". For instance, the "Sites" index page will have "Manage Buildings" beside each site listing. Clicking the link will then bring up a "Building" index page with only the existing buildings for that Site as well as the ability to add new ones. Then, of course, each Building page will have "Manage Controllers", and so on and so forth for each.
With that in mind, and before I bury myself in tearing apart "active_scaffold", etc. does anyone have any recommendations/suggestions for implementing this type of object management? Mainly my question pertains to the necessary Javascript, etc., however, if you have any "gotchas" I'd certainly like to be made aware as well.
Best.