I am working on a web app that attaches to a MySQL database.
I can add users through the admin_controller just fine without
I need that statement obviously. When I try to login with my admin
password I get this
NoMethodError in Login#index
Showing app/views/login/index.rhtml where line #9 raised:
You have a nil object when you didn’t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.each
Extracted source (around line #9):
7: <% end %>
9: <% for account in @accounts %>
11: <% for column in Account.content_columns %>
Application Trace | Framework Trace | Full Trace
Any suggestions would be appreciated.