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 committed 2009-01-19 15:00:43 -08:00
1 parent f870a6019e
commit 05dd3649f6
3 files changed
+6 -7

No files matched your search

+3 -4
View File
@@ -8,11 +8,10 @@
<h1><%= l(:rate_label_rate_history) %></h1>
<%# TODO: Refactor out of the view once there is a hook in the controller (Post 0.8.0). %>
<%# Can't expect everyone to upgrade at the moment %>
<% sort_init "#{Rate.table_name}.date_in_effect", "desc" %>
<% sort_update # 'date_in_effect' => "#{Rate.table_name}.date_in_effect" %>
<% sort_init "#{Rate.table_name}.date_in_effect", "desc" %>
<% sort_update ['date_in_effect', 'project_id'] %>
<% @rates = Rate.history_for_user(@user, "#{Rate.table_name}.date_in_effect desc") %>
<%= render :partial => 'rates/list' %>
</div>
</div>