Ruby on Rails Wednesday, January 10, 2018

You basically need a boolean field in your mailing list table called subscribe.  

you can toggle that with true or false for the user by asking a question and flipping this bit.

As far as sending a link  - I already wrote this procedure.  It's quite easy.

https://github.com/merlin2049er/signupebook

basically have a controller that asks for the name and email address (capture that) , then send out a mailer with a link to the file you want.
I have my link to a file in the public folder (but the user isn't aware of that until he get's the email.)



On Wednesday, January 10, 2018 at 6:24:31 AM UTC-5, Ralph Shnelvar wrote:
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?

Do I need to do a (implied) DELETE verb anywhere?

Ralph

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b8151988-b55f-4d9a-bb39-56671b0ff1cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment