Question

I have a rails app that allows people to offer a donation to a non-profit. The recipient of the offer receives an email alerting them of the offer. The offer also gets recorded in the database with a default status of pending but on the site they can change the status to accepted or rejected. Right now the recipient has to go to the website and login to change the offer status. I want to know if it's possible to allow them to change the status of the offer from within the email alert they receive? And if so how?

Was it helpful?

Solution

Create a new Controller with a function lets say status

def status
  ...
end

And then catch it with a GET

website.com/newcontrollers/status/?id=x&uid=xxx&token=

The other way could be to add a new function in the Offers Controller and exclude it in the authentication.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top