Fixed the sorts by updated to 0.8 to use the new sort API and fixing the update element id. #1915

This commit is contained in:
Eric Davis
2009-01-19 15:00:43 -08:00
parent f870a6019e
commit 05dd3649f6
3 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class RatesController < ApplicationController
# GET /rates.xml?user_id=1
def index
sort_init "#{Rate.table_name}.date_in_effect", "desc"
sort_update # 'date_in_effect' => "#{Rate.table_name}.date_in_effect"
sort_update ['date_in_effect', 'project_id']
@rates = Rate.history_for_user(@user, sort_clause)