I have a mailing list in a Postgres database and I want to give my users the ability to unsubscribe from mailings.
I wish to send out emails with a link to an RoR website to handle the unsubscribe.
Is there a document anywhere that describes how to do this properly? That is, what the link in the email should look like and what the controller(s), routes.rb, and view(s) should look like?
You don't (really) want a GET action to result in a DELETE, though, so I would recommend that rather than try to make the link in the e-mail delete the record immediately, take the user to a regular page, where you can construct a POST to DELETE, in the usual Rails manner (method: :delete). That gives a person a chance to reconsider, too, in case they fat-fingered the link in a mobile e-mail client.