I have three models...
the request and problem are setup as
has_one :agenda_item, :as => :resource
and the AgendaItem is setup as
belongs_to :resource, :polymorphic => true
So basically I can define an agenda item as either a request or
problem with the class name stored in resource_type and the id stored
in resource_id in the AgendaItem table...
Each item is for a specific "group". So item 1 maybe for IT and item 2
may be for DB etc etc...
So here comes the question..
I need to construct a view that breaks down
AgendaItem.find_all_by_show(true) by group and by resource_type... I
feel that creating two array for each group (both resource types) is a
bit much... Is there an easier way to itterate through the array by
group in my view or something?