search for: show_consult

Displaying 1 result from an estimated 1 matches for "show_consult".

2006 Jul 13
5
how to get to the parent of a child object.
...i do this: for consult in @consults%> <tr> <td><%= consult.patient.name %></td> <td><%= consult.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'' f...