Displaying 1 result from an estimated 1 matches for "label_for".
2007 Jun 19
3
Nil object for nested resource
...esources :scorecards do |scorecard|
scorecard.resources :attributes
end
My problem is that I want to show a single scorecard with all it''s
attributes. I then want to display a "New attribute" link to add a new
attribute to the current scorecard.
scorecards/show.rhtml:
<%= label_for("scorecard") %>
<%=h @scorecard.name %><br />
<%= label_for("template") %>
<%=h @scorecard.template %>
<b>Attributes:</b>
<table>
<% for attribute in @scorecard.attributes %>
<tr>
<td><%=h attribute.name %...