Results 1 to 4 of 4
Thread: Sorty_by in nested tables
Jan 13, 2009, 14:30 #1
- Join Date
- Nov 2008
- 0 Post(s)
- 0 Thread(s)
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?