I’ve started to do some refactoring/improvment of the strucutre of
page, page_controller, and page_parts. And I plan on continuing in a
similar vein with admin/page/edit.rhtml
The goal of this particular iteration, is to make it possible for Page
subclasses or extensions of the Page class to add has_many,
belongs_to, or has_one etc… relations to Page and NOT have to modify
page_controller. Since PageParts is a has_many of Page, I have moved
all of the logic related to the saving of page parts into an
association extension. Page is setup to discover all association
extensions that respond to :update_association and pass parameters to
and save these association appropriately.
Please give me feedback on the direction I’m going!