Displaying 1 result from an estimated 1 matches for "model_associ".
2007 Aug 14
2
Finding a models asscoations
...y help/advice is
appreciated.
Each project has one risk and a risk has a number of has/one belongs to
assocations. So what i want to do is in my code loop through all the
associations for a risk and display some field information from each as
they are pretty similar. So somehting like
<% for model_association in project.risks %>
<%= model_association.model_name %>
<%= model_or_assocation.name %>
<% end %>
Each association to risk has a filed called name present which i would
like displayed
Is this possible or whats the best way to something like this?
Johnny B
--
Pos...