Ruby on Rails
Wednesday, January 10, 2018
I think I have to push an update to this code.
-- I'm missing the deliver after creating the record. I'll do that tonight.
On Wednesday, January 10, 2018 at 3:13:30 PM UTC-5, Joe Guerra wrote:
On Wednesday, January 10, 2018 at 3:13:30 PM UTC-5, Joe Guerra wrote:
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.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/d4536994-3e94-48e0-9f36-10d6d8a75b0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment