User registration with email confirmation

Hello people,

i'm trying to implement a user registration system with email confirmation using the tutorial from 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

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?

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.   <div style='float:right;width:60%;'><%= text_field_tag 'login','',:style=>'border-width:1px;border-style:solid;' %></div> 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

<%= 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.

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://svn.techno-weenie.net/projects/plugins/restful_authentication/    - Wonderful screencasts         . #67 restful_authentication - RailsCasts         . 7 Step Framework for Coding Skills Acquisition

Cheers, Sazima

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://svn.techno-weenie.net/projects/plugins/restful_authentication/    - Wonderful screencasts         .#67 restful_authentication - RailsCasts         .7 Step Framework for Coding Skills Acquisition

And the greatest tutorial ever : 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.