search for: model_or_assocation

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

2007 Aug 14
2
Finding a models asscoations
...ngs 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received...