I am trying to track the last "link_to" the user clicked on. I found some general ideas on how to do this, but I will not be able to get it to work.
As a rule, I have an index list, and I try to direct link_to on each line to the action of the controller, which will save: id to the cookie and user record in the database, and then redirect to the actual external link.
I am wondering if there is a better way than using link_to.
This is probably a pretty simple problem, but I'm stuck in my brain! Appreciate any help!
source share