Hey everybody, I''m very new with Ruby On Rails and I''m trying to set up a website with a simple login/register system using the restful_authentication plugin. After having carefully followed the instructions, when trying to register a new user, I get the following error: NoMethodError in Users#new Showing app/views/users/new.html.erb where line #7 raised: undefined method `login'' for #<User id: nil, name: nil, created_at: nil, updated_at: nil> Extracted source (around line #7): 4: <%= error_messages_for :user %> 5: <% form_for :user, :url => users_path do |f| -%> 6: <p><%= label_tag ''login'' %><br/> 7: <%= f.text_field :login %></p> 8: 9: <p><%= label_tag ''email'' %><br/> 10: <%= f.text_field :email %></p> I''m not really sure of what I should do, because there is no login method in the user controller.. Thanks a lot in advance! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Manu meneillos wrote:> Hey everybody, > > I''m very new with Ruby On Rails and I''m trying to set up a website with > a simple login/register system using the restful_authentication plugin.Don''t waste your time. restful_authentication is garbage: it relies on unmaintainable generated code and is hard to use. Use Authlogic or something of similar quality. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser wrote:> Don''t waste your time. restful_authentication is garbage: it relies on > unmaintainable generated code and is hard to use. Use Authlogic or > something of similar quality. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgAlright, I''ll try it. Thanks a lot! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.