# User activation

**URL:** <https://www.ruby-forum.com/t/user-activation/187263>\
**Category:** Rails\
**Created:** [April 20, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/user-activation/187263 "2010-04-20T19:44:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 20, 2010, 7:44pm UTC](https://www.ruby-forum.com/t/user-activation/187263/1 "2010-04-20T19:44:38Z")

</div>

Dear all,

I am using restful authentication plug-in for user registration &  
authentication.

What I want to do is, when user submit registration form, a link  
containing activation code 'll be generated & is to be sent to user via  
mail.

User need to click the link sent to his mail Id to activate his  
account.

Thanking you.

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 20, 2010, 11:40pm UTC](https://www.ruby-forum.com/t/user-activation/187263/2 "2010-04-20T23:40:04Z")

</div>

Not sure which plug-in you’re using, but this does what you’ve  
described:  
[http://github.com/matthooks/authlogic-activation-tutorial](http://github.com/matthooks/authlogic-activation-tutorial)  
(See Also: [GitHub - binarylogic/authlogic\_example: An example rails app using the Authlogic authentication library](http://github.com/binarylogic/authlogic_example))

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 20, 2010, 11:55pm UTC](https://www.ruby-forum.com/t/user-activation/187263/3 "2010-04-20T23:55:12Z")

</div>

khagimoto wrote:

> Not sure which plug-in you’re using, but this does what you’ve  
> described:  
> [http://github.com/matthooks/authlogic-activation-tutorial](http://github.com/matthooks/authlogic-activation-tutorial)  
> (See Also: [GitHub - binarylogic/authlogic\_example: An example rails app using the Authlogic authentication library](http://github.com/binarylogic/authlogic_example))

* * *

dear khagimoto,  
I am using “restful\_authentication” plug-in…

I have already used this in application…

so need help with ref to this plug-in

Thanking you

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 20, 2010, 11:59pm UTC](https://www.ruby-forum.com/t/user-activation/187263/4 "2010-04-20T23:59:40Z")

</div>

Rutvij P. wrote:

> khagimoto wrote:
> 
> > Not sure which plug-in you’re using, but this does what you’ve  
> > described:  
> > [http://github.com/matthooks/authlogic-activation-tutorial](http://github.com/matthooks/authlogic-activation-tutorial)  
> > (See Also: [GitHub - binarylogic/authlogic\_example: An example rails app using the Authlogic authentication library](http://github.com/binarylogic/authlogic_example))
> 
> * * *
> 
> dear khagimoto,  
> I am using “restful\_authentication” plug-in…
> 
> I have already used this in application…
> 
> so need help with ref to this plug-in
> 
> Thanking you

Take out restful\_authentication. It’s a piece of crap. You should be  
switching to Authlogic anyway.

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 21, 2010, 12:16am UTC](https://www.ruby-forum.com/t/user-activation/187263/5 "2010-04-21T00:16:23Z")

</div>

On Tue, Apr 20, 2010 at 10:44 AM, Rutvij P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I am using restful authentication plug-in for user registration &  
> authentication.
> 
> What I want to do is, when user submit registration form, a link  
> containing activation code 'll be generated & is to be sent to user via  
> mail.
> 
> User need to click the link sent to his mail Id to activate his  
> account.

restful\_authentication has that built-in; have you read the docs? If  
so, what part are you having trouble with?

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 21, 2010, 2:51am UTC](https://www.ruby-forum.com/t/user-activation/187263/6 "2010-04-21T02:51:16Z")

</div>

Hassan S. wrote:

> On Tue, Apr 20, 2010 at 10:44 AM, Rutvij P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> wrote:
> 
> > 
> 
> restful\_authentication has that built-in; have you read the docs? If  
> so, what part are you having trouble with?
> 
> –  
> Hassan S. ------------------------ removed\_email\_address@domain.invalid  
> twitter: @hassan

* * *

dear Hassan,

trouble is - how the activation code is generated?

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 21, 2010, 12:12am UTC](https://www.ruby-forum.com/t/user-activation/187263/7 "2010-04-21T00:12:52Z")

</div>

oops, sorry, I guess I skipped your first sentence! I’ve never used  
restful-authentication plug-in, but it sounds like it already has  
support for what you’re asking for:  
[http://github.com/technoweenie/restful-authentication/blob/master/README.textile](http://github.com/technoweenie/restful-authentication/blob/master/README.textile)

I do recommend authlogic after having used it myself.

---

<div class="post-metadata">

**Author:** ![rutisyrz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@rutisyrz](https://www.ruby-forum.com/u/rutisyrz)\
**Post date:** [April 21, 2010, 3:05am UTC](https://www.ruby-forum.com/t/user-activation/187263/8 "2010-04-21T03:05:32Z")

</div>

On Tue, Apr 20, 2010 at 5:51 PM, Rutvij P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> > restful\_authentication has that built-in; have you read the docs? If  
> > so, what part are you having trouble with?

> trouble is - how the activation code is generated?

Again – have you read the docs? Or even any of the various online  
tutorials?

–  
Hassan S. ------------------------ removed\_email\_address@domain.invalid  
twitter: @hassan
