Thanks, Ram. Yep, I realized that polymorphic associations is exactly
what I was talking about. In my case, all the log info is private and
per-user. Also, the only action is "view", so I have a simpler case
than you. I just need to generate a list like,
Today
Document 452.242
Document 551.432
Yesterday
Document 43.234
Chapter 452
Now, in your case, I wouldn't worry at *all* about how to generate the
text. This is an issue for the presentation layer. I'd just be
concerned with making sure I have all the relevant objects so that the
various templates can render the output appropriately: the currently
logged in user, a list of log entries, each of which has a reference
to the relevant object, the method invoked, and the user who did it.
I suggest checking out the "Command" design pattern. It kind of
sounds like what you're doing.
- Robb
On Aug 12, 9:29 pm, Ram <
yourstruly.vi...@gmail.com> wrote:
>... The only