You should look at Devise gem Token Authenticatable solution as example.
You just add "?auth_token=#{@user.auth_token}" to your unsubsribe url.воскресенье, 22 июля 2012 г., 15:06:58 UTC+4 пользователь Tsvetelina Borisova написал: > > Hello. In my app I send emails to tell that the user has certificate and I > want to put a link - Unsubscribe. I don't know how to construct this link > so that there won't be users that unsubscribe other users. I mean I want to > make that is safe. I look in the web for how these unsubscribe links are > made but I couldn't find anything. Can someone help me? Thanks in advance > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/h7GklH7mCjAJ. For more options, visit https://groups.google.com/groups/opt_out.

