Christopher Jones
2012-Mar-14 11:38 UTC
Adding confirmed to a nearly complete rails application
I am coming to the end of my rails project now and I have done everything I wish to do apart from confirm the users account through email before creating it. I already have it to send an email to the user but I want the user to contain a link. It''s far too late to add devise now as I already have a users table etc. I have heard of having a confirmed field in the users table and having it set to false and then true on user confirmation, but I have no idea on how to implement this. Any ideas? If anyone else has some other solutions or links to tutorials showing how to add such feature then that would be outstanding. The end is so close yet so far. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Mar-14 11:46 UTC
Re: Adding confirmed to a nearly complete rails application
On 14 March 2012 11:38, Christopher Jones <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am coming to the end of my rails project now and I have done > everything I wish to do apart from confirm the users account through > email before creating it. I already have it to send an email to the user > but I want the user to contain a link. It''s far too late to add devise > now as I already have a users table etc.It is never too late to refactor and do something a better way. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tom Meinlschmidt
2012-Mar-14 11:46 UTC
Re: Adding confirmed to a nearly complete rails application
take a look at devise gem (for example). It can send verification emails and activate account then tom On Mar 14, 2012, at 12:38 , Christopher Jones wrote:> I am coming to the end of my rails project now and I have done > everything I wish to do apart from confirm the users account through > email before creating it. I already have it to send an email to the user > but I want the user to contain a link. It''s far too late to add devise > now as I already have a users table etc. > > I have heard of having a confirmed field in the users table and having > it set to false and then true on user confirmation, but I have no idea > on how to implement this. Any ideas? > > If anyone else has some other solutions or links to tutorials showing > how to add such feature then that would be outstanding. The end is so > close yet so far. > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.-- ==============================================================================Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz ============================================================================== -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Suely Lopez
2012-Mar-14 12:42 UTC
Re: Adding confirmed to a nearly complete rails application
the best way is using devise gem, Im using devise 1.5.3 and its really easy, send confirmation mails, encripted password, you can change the messages...prety cool 2012/3/14 Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>> On 14 March 2012 11:38, Christopher Jones <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > I am coming to the end of my rails project now and I have done > > everything I wish to do apart from confirm the users account through > > email before creating it. I already have it to send an emthe ail to the > user > > but I want the user to contain a link. It''s far too late to add devise > > now as I already have a users table etc. > > It is never too late to refactor and do something a better way. > > Colin > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Mohamad El-Husseini
2012-Mar-14 12:59 UTC
Re: Adding confirmed to a nearly complete rails application
Take a look at this if you want to do this manually: http://railscasts.com/episodes/274-remember-me-reset-password?view=comments While the screen cast is about password resets, confirmation would work exactly the same way, and Ryan says so himself. It''s pretty easy. On Wednesday, March 14, 2012 8:38:33 AM UTC-3, Ruby-Forum.com User wrote:> > I am coming to the end of my rails project now and I have done > everything I wish to do apart from confirm the users account through > email before creating it. I already have it to send an email to the user > but I want the user to contain a link. It''s far too late to add devise > now as I already have a users table etc. > > I have heard of having a confirmed field in the users table and having > it set to false and then true on user confirmation, but I have no idea > on how to implement this. Any ideas? > > If anyone else has some other solutions or links to tutorials showing > how to add such feature then that would be outstanding. The end is so > close yet so far. > > -- > 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 view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/62SzI_p6yzMJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.