Can anyone tell me if I'm on the right track? I think this isn't
I want to implement an activity log for users. It'll show them a list
of the objects they've viewed. I have, of course, many types of
objects in the Rails program.
I've thought that I'd make a log_entries table which would have
I'd then like to be able to retrieve all of the viewed objects,
something along the lines:
And I could display links to them, like:
link_to obj.to_s, obj
...so, this is a form of STI, but I'm not sure if Rails handles this
kind. I'm also not sure if this is the best way to implement this
kind of feature.
Thanks for any feedback!