Restful_authentication: undefined method

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:

<%= label_tag ‘login’ %>

7: <%= f.text_field :login %>


8:
9:

<%= label_tag ‘email’ %>

10: <%= f.text_field :email %>

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!

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
[email protected]

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
[email protected]

Alright, I’ll try it. Thanks a lot!