I was on a roll until I started customizing the look of what Rails
created for me… I broke something.
########### NoMethodError ###########
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.each
I’ve got a member page where I list the current member on the left
with an “Add Member” section in the main body area. When I click “Add
Member” I get the above message that references the code below.
-
<% for member in @members %>
- <%= link_to member.first_name + " " + member.last_name , { # link_to options :controller => 'members', :action => 'edit', :id => member } %> <% end %>
Thank you all for your help! I’m such a NOOB!