Forum: Ruby on Rails Multiple interloceed editable entites on on one page

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
140c065a9604b5321768cbe02e91ef30?d=identicon&s=25 Anton Aylward (Guest)
on 2007-02-13 19:33
(Received via mailing list)
I'm getting myself totally lost.

I have database model I'm happy with.  I'm happy with DB design, E-R and
all
that.  I'm reasonably sure that I've got that translated into the
"has_many"
and "belongs_to".  Heck, its not that big a jump.

So: I have a Main parent class - Book.
It has a major child class Pages.
Book also has
       BookAttribute settings - language, layout, rendering ....
       BookAccessControl - duplicate, can_edit_pages, can_read_pages,
                           can_create_pages, can_delete_pages

       Pages has content, as well as optional Attribute and
AccessControl
                          settings of its own that can over-ride the
Book

Actually, later on, each Page will have further child tables for
revisions
(like a wiki, so can be rolled back), metadata - so the stories can be
multi-branched, attachments for embedded images and stuff, and also
forms
and field - but all this will come later.

(And lets not go into making the  attributes and access controls a
polymorphic!)

Right now I'm trying to make an Admin page so I can build a the books
and pages.

The story-board I have for the Book Admin page has a scrolling list of
the
books on the left.  On the right there are tabs to select the child to
work
with.

Ultimately it would be nice to do all this with javascript, but right
now
I'm just trying to do a simple select and click through to another
screen.

My problem is having two (or more) data entities - forms? - on th same
screen.

Can anyone point me to examples of having two interlocked, editable
models
on screen at the same time?  I would have thought this would be a fairly
common situation.  We see it in OS GUIs all the time.

--
If there are epigrams, there must be meta-epigrams.
This topic is locked and can not be replied to.