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.
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
give you warnings or error messages? (should if it where deprecated)
does not display anything?
does not return values?
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
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 ?
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.
Why don't you try restful_authentication? It already has what you're
- 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