Sorty_by in nested tables
I need to do an : order => on an attribute in a double nested table, but I can't get it to work.
In my views, I can loop through
@cabinet_nominee.each do |c|
just fine. But, in my controller, I need to order my @cabinet_nominee collection by
cabinet_pick.cabinet_position.name DESC, and I can't figure out how. I have used :through and :join and .sort_by and on and on. Any one have any ideas?
Have I provided enough here?