The problem is that the responsibilities are not already sorted going in. Each area belongs_to a responsibility. I have the list of all of the areas, I want to group them by responsibility, and I want to sort the result by some field within the responsibility. Currently, I have something like:
@areas = Area.find(:all)
Is there some way to order that ahead of time by areas.responsibility.some_field?
Hmmm… perhaps I’m thinking of this backwards. (It wouldn’t be the first time.) Do I really want to do something like:
@responsibilities = Responsibility.find(:all)
Hmmmm… that looks like the right avenue to have taken in the first place…
now… if I could just figure out how to comment out blocks of ERB code, this would be much easier to test and then back out of if it goes awry.