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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
<%= 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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 . http://railscasts.com/episodes/67 . http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-Rails-2-App.html Cheers, Sazima On Apr 29, 6:26 pm, joel <joel.soor...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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 > .http://railscasts.com/episodes/67 > .http://www.rubyplus.org/episodes/20-Extended-RESTful-Authentication-R...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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---