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!