Rick R
2010-Sep-20 01:17 UTC
Setting up email registration with Authlogic (couple questions)?
I''m pretty new to rails and I having troubling finding examples on how to setup email registration with Authlogic (rails3 ruby 1.9.) (I have authlogic working fine with Rails3 minus the email registration part.) The Authlogic docs seem pretty weak in helping me understand ''what I need to do.'' but maybe since I''m new I''m just missing something. I did find this tutorial http://github.com/matthooks/authlogic-activation-tutorial/blob/master/README.textile but I''m curious about something in it - In step5 it mentions: added to app/models/notifier.rb #then code follows But I didn''t see anywhere even in the tutorial where a Notifier model was created? Is this Notifier class something Authlogic is supposed to create for me somehow and then I just edit it? I''m getting pretty lost with this Authlogic stuff because I understand a lot of "magic" just happens - but I''m not finding examples how to set things up. The Authlogic example http://github.com/binarylogic/authlogic_example/tree/master/app/ doesn''t demonstrate email registration. Would using Devise maybe be easier for me as a newbie? Thanks, -- Rick R -- 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.
elliottg
2010-Sep-20 01:56 UTC
Re: Setting up email registration with Authlogic (couple questions)?
It looks like Rails 2 style mailers are being used for github.com/ matthooks/authlogic-activation-tutorial. That may be where your feeling some pain since your working on a Rails 3 app. I just re-wrote an Authlogic acct. activation flow from Rails 2 to Rails 3 and using the new mailer code was very nice. Elliott G On Sep 19, 9:17 pm, Rick R <ric...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m pretty new to rails and I having troubling finding examples on how > to setup email registration with Authlogic (rails3 ruby 1.9.) (I have > authlogic working fine with Rails3 minus the email registration > part.) > > The Authlogic docs seem pretty weak in helping me understand ''what I > need to do.'' but maybe since I''m new I''m just missing something. > > I did find this tutorialhttp://github.com/matthooks/authlogic-activation-tutorial/blob/master... > but I''m curious about something in it - > > In step5 it mentions: > > added to app/models/notifier.rb > #then code follows > > But I didn''t see anywhere even in the tutorial where a Notifier model > was created? Is this Notifier class something Authlogic is supposed to > create for me somehow and then I just edit it? > > I''m getting pretty lost with this Authlogic stuff because I understand > a lot of "magic" just happens - but I''m not finding examples how to > set things up. The Authlogic examplehttp://github.com/binarylogic/authlogic_example/tree/master/app/ > doesn''t demonstrate email registration. > > Would using Devise maybe be easier for me as a newbie? > > Thanks, > > -- > Rick R-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rick R
2010-Sep-20 02:01 UTC
Re: Re: Setting up email registration with Authlogic (couple questions)?
On Sun, Sep 19, 2010 at 9:56 PM, elliottg <x@simplecircle.net> wrote:> It looks like Rails 2 style mailers are being used for github.com/ > matthooks/authlogic-activation-tutorial. > That may be where your feeling some pain since your working on a Rails > 3 app. I just re-wrote an Authlogic acct. activation flow from Rails 2 > to Rails 3 and using the new mailer code was very nice.How do I find about this "new mailer" code? When I look at the docs http://rdoc.info/github/binarylogic/authlogic I''m not sure what to look at it to implement. I figured "PerishableToken" might provide some insight in the docs but it didn''t say much. Anything else you could share to get me on the right track would be much appreciated. Thanks> Elliott G > > On Sep 19, 9:17 pm, Rick R <ric...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I''m pretty new to rails and I having troubling finding examples on how >> to setup email registration with Authlogic (rails3 ruby 1.9.) (I have >> authlogic working fine with Rails3 minus the email registration >> part.) >> >> The Authlogic docs seem pretty weak in helping me understand ''what I >> need to do.'' but maybe since I''m new I''m just missing something. >> >> I did find this tutorialhttp://github.com/matthooks/authlogic-activation-tutorial/blob/master... >> but I''m curious about something in it - >> >> In step5 it mentions: >> >> added to app/models/notifier.rb >> #then code follows >> >> But I didn''t see anywhere even in the tutorial where a Notifier model >> was created? Is this Notifier class something Authlogic is supposed to >> create for me somehow and then I just edit it? >> >> I''m getting pretty lost with this Authlogic stuff because I understand >> a lot of "magic" just happens - but I''m not finding examples how to >> set things up. The Authlogic examplehttp://github.com/binarylogic/authlogic_example/tree/master/app/ >> doesn''t demonstrate email registration. >> >> Would using Devise maybe be easier for me as a newbie? >> >> Thanks, >> >> -- >> Rick R > > -- > 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rick R -- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
elliottg
2010-Sep-20 04:09 UTC
Re: Setting up email registration with Authlogic (couple questions)?
I am using Authlogic 2.1.6 with Rails 3. While upgrading my existing auth system, I don''t recall having to change any of the actual implementation code aside from using the Rails 3 mailer. Here''s the Guide''s link to the new mailer: http://edgeguides.rubyonrails.org/action_mailer_basics.html Just use the new mailer structure and code in place of what you see in the tutorial. And note that the entire tutorial is written for Rails 2 so be sure to use the new command line syntax for the generator calls etc... Elliott G On Sep 19, 10:01 pm, Rick R <ric...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Sep 19, 2010 at 9:56 PM, elliottg <x...-+PdThUrr9bOXUBVsB0ZYTw@public.gmane.org> wrote: > > It looks like Rails 2 style mailers are being used for github.com/ > > matthooks/authlogic-activation-tutorial. > > That may be where your feeling some pain since your working on a Rails > > 3 app. I just re-wrote an Authlogic acct. activation flow from Rails 2 > > to Rails 3 and using the new mailer code was very nice. > > How do I find about this "new mailer" code? When I look at the docshttp://rdoc.info/github/binarylogic/authlogic I''m not sure what to > look at it to implement. I figured "PerishableToken" might provide > some insight in the docs but it didn''t say much. > > Anything else you could share to get me on the right track would be > much appreciated. > > Thanks> Rick R-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.