Topic: You have a nil object when you didn't expect it!
Hey all! i am new to ROR and i am trying to make a registration page using a tutorial and i am getting the following error whenever i try to run my page:
Showing C:/rails/pbbg/app/views/account/registration.html.erb where line #1 raised:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.
Extracted source (around line #1):
1: <% form_for :user, @user do |f| %>
2: <%= error_messages_for :user %>
3: Username: <%= f.text_field :username %><br/>
4: Password: <%= f.password_field :password %><br/>
the link to the tutorial is
Any suggestion would be really helpful
thanks in advance