diff --git a/app/controllers/rates_controller.rb b/app/controllers/rates_controller.rb index 255e269..f403342 100644 --- a/app/controllers/rates_controller.rb +++ b/app/controllers/rates_controller.rb @@ -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) diff --git a/app/views/rates/_list.html.erb b/app/views/rates/_list.html.erb index 16bf63a..c048686 100644 --- a/app/views/rates/_list.html.erb +++ b/app/views/rates/_list.html.erb @@ -5,13 +5,13 @@ :default_order => 'desc', :style => "width: 15%", :method => :get, - :update => "rate-history", + :update => "rate_history", :user_id => @user.id) %> <%= rate_sort_header_tag("project_id", :caption => l(:label_project), :default_order => 'asc', :method => :get, - :update => "rate-history", + :update => "rate_history", :user_id => @user.id) %>