Is there way to update a record after something has been rendered without putting the code in my view?
For example I'm displaying messages to my users, and after the messages have been displayed I want to update the read
attribute to true
. What would be the best practice for doing this?