We are currently trying to build a Logging functionality for a Rails 3 application. The Log Entry should be stored in the database and provide a link to the logged object. Objects of different classes should be loggable (e.g. tickets, interactions etc.).
How can we store the link to the views of these different objects? We were thinking about associations, but they are statically typed.
Is it possible to store associations to arbitrary objects?
Use polymorphic associations.
Having a log, to link to it’s associated object’s
showpath do: