Project

General

Profile

Patch #2950 ยป sort_helper_doc.patch

Peter Suschlik, 2009-03-11 11:18

View differences:

app/helpers/sort_helper.rb
18 18
# 
19 19
#   def list
20 20
#     sort_init 'last_name'
21
#     sort_update %w(first_name, last_name)
21
#     sort_update %w(first_name last_name)
22 22
#     @items = Contact.find_all nil, sort_clause
23 23
#   end
24 24
# 
......
29 29
# 
30 30
#   def list
31 31
#     sort_init 'last_name'
32
#     sort_update %w(first_name, last_name)
32
#     sort_update %w(first_name last_name)
33 33
#     @contact_pages, @items = paginate :contacts,
34 34
#       :order_by => sort_clause,
35 35
#       :per_page => 10
    (1-1/1)