Is there a plug-in or anything to create a temporary link in rails? I understand that alot of websites use this. For example an email is sent to a user with a temporary link to change their password, download something, etc. The link is temporary and after this link is used once it can not be used again. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> For example an email is > sent to a user with a temporary link to change their password, download > something, etc. The link is temporary and after this link is used once > it can not be used again.I thought these links were not temporary, but with special params. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Colin wrote:> Is there a plug-in or anything to create a temporary link in rails? > > I understand that alot of websites use this. For example an email is > sent to a user with a temporary link to change their password, download > something, etc. The link is temporary and after this link is used once > it can not be used again. > > Thanksyou can create something unique for that user in the database when he do the request (for example change his email), and then send a url with that unique key. in the controller you can find the user by that key and then show the page for change the email, when the user has changed his email you can delete the key from the database... what do you think? :) (sorry for my english) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jil wrote:> you can create something unique for that user in the database when he do > the request (for example change his email), and then send a url with > that unique key. in the controller you can find the user by that key and > then show the page for change the email, when the user has changed his > email you can delete the key from the database... what do you think? :)Thats a good idea, I think ill do something similar to this. Thanks for the advice. cheers -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---