# Setting up email registration with Authlogic (couple questions)?

**URL:** <https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221>\
**Category:** Rails\
**Created:** [September 20, 2010, 3:19am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221 "2010-09-20T03:19:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Post date:** [September 20, 2010, 3:19am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221/1 "2010-09-20T03:19:11Z")

</div>

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](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

> <https://github.com/binarylogic/authlogic_example/tree/master/app/>
>
> //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

---

<div class="post-metadata">

**Author:** ![Rick\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Post date:** [September 20, 2010, 3:57am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221/2 "2010-09-20T03:57:12Z")

</div>

It looks like Rails 2 style mailers are being used for [github.com/](http://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

---

<div class="post-metadata">

**Author:** ![Rick\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Post date:** [September 20, 2010, 4:02am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221/3 "2010-09-20T04:02:28Z")

</div>

On Sun, Sep 19, 2010 at 9:56 PM, elliottg [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> It looks like Rails 2 style mailers are being used for [github.com/](http://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](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 removed\_email\_address@domain.invalid.  
> To unsubscribe from this group, send email to removed\_email\_address@domain.invalid.  
> For more options, visit this group at [http://groups.google.com/group/rubyonrails-talk?hl=en](http://groups.google.com/group/rubyonrails-talk?hl=en).

–  
Rick R

---

<div class="post-metadata">

**Author:** ![Rick\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/71c47a/32.png) [@Rick\_R](https://www.ruby-forum.com/u/Rick_R)\
**Post date:** [September 20, 2010, 6:10am UTC](https://www.ruby-forum.com/t/setting-up-email-registration-with-authlogic-couple-questions/195221/4 "2010-09-20T06:10:37Z")

</div>

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:

> **[Action Mailer Basics — Ruby on Rails Guides](https://edgeguides.rubyonrails.org/action_mailer_basics.html)**
>
> Action Mailer BasicsThis guide provides you with all you need to get started in sending emails from your application, and many internals of Action Mailer. It also covers how to test your mailers.After reading this guide, you will know: How to send...

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 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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