# User registration with email confirmation

**URL:** <https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227>\
**Category:** Rails\
**Created:** [April 29, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227 "2008-04-29T23:27:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [April 29, 2008, 11:27pm UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/1 "2008-04-29T23:27:26Z")

</div>

Hello people,

i’m trying to implement a user registration system with email  
confirmation using the tutorial from [technologyvoodoo.com](http://technologyvoodoo.com) but it seems  
the methods used to access text fields aren’t working. Perhaps these  
methods are depreciated; being a newbie to rails, i’m having much  
difficulty confirming this.

Can anyone tell me more about this or suggest a tutorial on user  
registration with email confirmation on rails.

Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [April 30, 2008, 12:00am UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/2 "2008-04-30T00:00:53Z")

</div>

Hello,

thank you for your reply. In fact I was using this type of text field  
tag as below and it seemed the model couldn’t find the value of the  
password for example, while trying to hash it. I got ’ cannot convert  
nil to string ’ error.

\<%= text\_field\_tag 'login','',:style=\>'border-width:1px;border-style:solid;' %\>
Ill try to use the sale tags as in the tutorial and let you know. Can the problem come from the tag I'm using ?

Regards,

Joel

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [April 29, 2008, 11:42pm UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/3 "2008-04-29T23:42:54Z")

</div>

if you mean this line:

\<%= text\_field “user”, “username”, “maxlength” =\> 20, “size” =\> 20 %\>

then that’s perfectly ok. i had only a short glance over the stuff, but  
it seems good enough and should run.

maybe you give us a more detailed description of what you mean with  
“aren’t working”…  
give you warnings or error messages? (should if it where deprecated)  
does not display anything?  
does not return values?

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [April 30, 2008, 6:28pm UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/4 "2008-04-30T18:28:41Z")

</div>

Hey Joel,

Why don’t you try restful\_authentication? It already has what you’re  
looking for:

- 

## [http://weblog.techno-weenie.net/2006/8/1/restful-authentication-plugin](http://weblog.techno-weenie.net/2006/8/1/restful-authentication-plugin)

[http://svn.techno-weenie.net/projects/plugins/restful\_authentication/](http://svn.techno-weenie.net/projects/plugins/restful_authentication/)

- Wonderful screencasts  
. [#67 restful\_authentication - RailsCasts](http://railscasts.com/episodes/67)  
.  
[http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html](http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html)

Cheers, Sazima

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [May 1, 2008, 2:23am UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/5 "2008-05-01T02:23:49Z")

</div>

> Why don’t you try restful\_authentication? It already has what you’re  
> looking for:
> 
> -[http://weblog.techno-weenie.net/2006/8/1/restful-authentication-plugin](http://weblog.techno-weenie.net/2006/8/1/restful-authentication-plugin)  
> -[http://svn.techno-weenie.net/projects/plugins/restful\_authentication/](http://svn.techno-weenie.net/projects/plugins/restful_authentication/)
> 
> - Wonderful screencasts  
> .[#67 restful\_authentication - RailsCasts](http://railscasts.com/episodes/67)  
> .[http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-R](http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-R)…

And the greatest tutorial ever :  
[http://railsforum.com/viewtopic.php?id=14216&p=1](http://railsforum.com/viewtopic.php?id=14216&p=1)

It’s great because it goes over all the points in the authentication  
and customize them,  
adding a role/permission system along the path. It’s very extensive  
and complete.

Cheers,  
Laurent.

---

<div class="post-metadata">

**Author:** ![joel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@joel](https://www.ruby-forum.com/u/joel)\
**Post date:** [April 30, 2008, 12:10am UTC](https://www.ruby-forum.com/t/user-registration-with-email-confirmation/136227/6 "2008-04-30T00:10:20Z")

</div>

\<%= text\_field\_tag  
‘login’,’’,:style=\>‘border-width:1px;border-style:solid;’ %\>

that’s the most basic form of textfield. the difference to that in the  
tutorial is, that you don’t get a params[:user][:login] like with the  
text\_field but a params[:login]  
you would have to correct the controller code to use it that way

you can use in your applications log folder the development.log to see,  
what params are returned.
