I am using Rails 4 and PHPmyadmin
I designed a form that sends an email with two links, let's call them Link #1 and Link #2.
I need to know if the user that received the email has clicked on link #1 or link #2.
I already have the landing view #1 and view #2 with their corresponding id's, and can access both links.
The end result is that in my list table I need to display the status of every email sent with either:
- Pending (if user hasn't clicked on any link)
- Link #1 (if user clicked on it)
- Link #2 (if user clicked on it)
I know that I need to associate the email id with the view id, but don't know how to do this.
Something like this:
EMAIL.......... LINK CLICKED
me@example.com pending
john@example.com Link 1
sonia@example.com Link 2
I have found this similar question and this other one, however I don't know how to implement it in my app.