Displaying 1 result from an estimated 1 matches for "new_attribute_path".
2007 Jun 19
3
Nil object for nested resource
...gt;Attributes:</b>
<table>
<% for attribute in @scorecard.attributes %>
<tr>
<td><%=h attribute.name %></td>
<td><%=h attribute.weight %></td>
</tr>
<% end %>
</table>
<%= link_to "New Attribute", new_attribute_path(@scorecard) %>
However I get the message for line 17 (last line) when I try to view
this page,
You have a nil object when you didn''t expect it!
The error occurred while evaluating nil.to_sym
I have tried checking against various REST and Rails books and articles,
and I thought I had...