User registration with email confirmation

Hello people,

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




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 ?



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?

Hey Joel,

Why don’t you try restful_authentication? It already has what you’re
looking for:

Cheers, Sazima

Why don’t you try restful_authentication? It already has what you’re
looking for:


And the greatest tutorial ever :

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.


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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs