Displaying 1 result from an estimated 1 matches for "consults_pag".
Did you mean:
consults_pages
2006 Jul 13
5
how to get to the parent of a child object.
...sult.reason %></td>
<td><%= consult.date %></td>
<td><%= link_to ''Show'', :action => ''show_consult'', :id => consult
%></td>
</tr>
<% end %>
in my controler i have:
def list_consults
@consults_pages, @consults = paginate :consults, :per_page => 8
end
i cant get to the lastname of the patient, the error i get
"undefined method `name'' for nil:NilClass
what am i doing wrong?
--
Posted via http://www.ruby-forum.com/.