Forum: Ruby on Rails Best way to maintian a users viewing history

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
2764460fe747a1b6ca462fc71768ea50?d=identicon&s=25 Jesse Grosjean (Guest)
on 2007-03-23 20:59
I'd like for uses to my site to be able to tell what content has changed
since they last viewed it. To do this I'll need to record each time a
user views some content and store the content id and time in the users
viewing history.

This seems fairly strait forward, except I know I'm not supposed to
change the database on GET requests, but in this case I'll need to add a
history record for the user each time they GET a new piece of content.
Is there some way to get this history behavior and follow the rules too?
Or maybe the rules don't apply in this case since the history creation
will only happen for logged in users, nothing will be changed if it's
just an anonymous bot visiting the site?

Second can anyone recommend any plugins or rails apps that already
maintain this sort of viewing history that I could look at and learn

This topic is locked and can not be replied to.