search for: summary_list

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

2006 Jun 13
3
acts_as_tree problem accessing parent object
i have a model called certification_types that i''ve declared as acts_as_tree. I have a model called certification that belongs_to :certification_type . class CertificationController < ApplicationController ..... def summary_list @certifications = Certification.find(:all, :order=>''date'') end end summary_list.rhtml <% for certification in @certifications %> <%= certification.certification_type.parent.id %> <% end %> so, the line above (<%= certification.certification_typ...