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

doesn’t demonstrate email registration.

Would using Devise maybe be easier for me as a newbie?

Thanks,


Rick R

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 Sun, Sep 19, 2010 at 9:56 PM, elliottg [email protected] 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

create for me somehow and then I just edit it?

Rick R


You received this message because you are subscribed to the Google G. “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].
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Rick R

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:

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 [email protected] wrote:

Anything else you could share to get me on the right track would be
much appreciated.

Thanks