dancroak-sortable_table 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- patch: 0
2
+ patch: 1
3
3
  major: 0
4
4
  minor: 1
@@ -14,19 +14,15 @@ module SortableTable
14
14
  def sortable_attributes(*args)
15
15
  mappings = args.last.is_a?(Hash) ? args.pop : {}
16
16
  acceptable_columns = args.collect(&:to_s) + mappings.keys.collect(&:to_s)
17
-
17
+
18
18
  define_method(:sort_order) do |*default|
19
- direction = if params[:order]
20
- params[:order] == 'ascending' ? 'asc' : 'desc'
21
- else
22
- default_sort_direction(default)
23
- end
24
- column = params[:sort] || 'created_at'
19
+ direction = params[:order] == 'ascending' ? 'asc' : 'desc'
20
+ column = params[:sort] || 'created_on'
25
21
  if params[:sort] && acceptable_columns.include?(column)
26
22
  column = mappings[column.to_sym] || column
27
23
  "#{column} #{direction}"
28
24
  else
29
- "#{acceptable_columns.first} #{direction}"
25
+ "#{acceptable_columns.first} #{default_sort_direction(default)}"
30
26
  end
31
27
  end
32
28
  end
@@ -10,53 +10,42 @@ module SortableTable
10
10
  end
11
11
 
12
12
  module InstanceMethods
13
- def sortable_table_header(*args)
14
- opts = args.extract_options!
15
-
16
- inner_html = args
17
- if inner_html.blank?
18
- raise ArgumentError("Must specify inner_html as first argument")
19
- end
20
-
21
- # if args.first.is_a?(String)
22
- # inner_html = args.shift
23
- # elsif opts.first.is_a?(Hash)
24
- # if opts.has_key?(:inner_html)
25
- # inner_html = opts[:inner_html]
26
- # else
27
- # # raise ArgumentError unless opts.has_key?(:sort)
28
- # inner_html = opts[:sort].humanize
29
- # end
30
- # else
31
- # raise ArgumentError,
32
- # "calling signature must be String, Hash or Hash"
33
- # end
34
-
35
- # anchor = opts[:anchor].blank? ? "" : "##{opts[:anchor]}"
36
- # sortable_url(opts) + anchor
37
-
13
+ def sortable_table_header(opts = {})
14
+ raise ArgumentError if opts[:name].nil? || opts[:sort].nil?
15
+ anchor = opts[:anchor].blank? ? "" : "##{opts[:anchor]}"
38
16
  content_tag :th,
39
- link_to(inner_html,
40
- sortable_url(opts),
17
+ link_to(opts[:name],
18
+ sortable_url(opts) + anchor,
41
19
  :title => opts[:title]),
42
20
  :class => class_name_for_sortable_table_header_tag(opts)
43
21
  end
44
-
22
+
45
23
  def class_name_for_sortable_table_header_tag(opts)
46
24
  if default_sort_to_most_recent? opts
47
- class_name = 'descending'
25
+ 'descending'
48
26
  elsif re_sort? opts
49
- class_name = params[:order]
27
+ params[:order]
50
28
  else
51
- class_name = ""
29
+ nil
52
30
  end
53
- class_name << " #{opts[:class_name]}"
54
31
  end
55
-
32
+
33
+ def default_sort_to_most_recent?(opts)
34
+ params[:sort].nil? && opts[:sort] == 'date'
35
+ end
36
+
37
+ def re_sort?(opts)
38
+ params[:sort] == opts[:sort]
39
+ end
40
+
41
+ def reverse_order(order)
42
+ order == 'ascending' ? 'descending' : 'ascending'
43
+ end
44
+
56
45
  def sortable_url(opts)
57
46
  url_for(params.merge(:sort => opts[:sort], :order => link_sort_order(opts), :page => 1))
58
47
  end
59
-
48
+
60
49
  def link_sort_order(opts)
61
50
  if default_sort_to_most_recent? opts
62
51
  'ascending'
@@ -66,18 +55,6 @@ module SortableTable
66
55
  'ascending'
67
56
  end
68
57
  end
69
-
70
- def default_sort_to_most_recent?(opts)
71
- params[:sort].nil? && opts[:sort] == @sorted_column
72
- end
73
-
74
- def re_sort?(opts)
75
- params[:sort] == opts[:sort]
76
- end
77
-
78
- def reverse_order(order)
79
- order == 'ascending' ? 'descending' : 'ascending'
80
- end
81
58
  end
82
59
 
83
60
  end
@@ -4,26 +4,23 @@ module SortableTable
4
4
 
5
5
  def self.included(base)
6
6
  base.class_eval do
7
- include InstanceMethods
8
7
  extend ClassMethods
9
8
  end
10
9
  end
11
-
12
- module InstanceMethods
13
- def stubbed_action_view
14
- view = ActionView::Base.new(@controller.class.view_paths, {}, @controller)
15
- yield view
16
- ActionView::Base.stubs(:new).returns(view)
17
- end
18
- end
19
10
 
20
11
  module ClassMethods
21
- def should_sort_by(attribute, params = {}, &block)
12
+ def should_sort_by(attribute, &block)
22
13
  collection = self.name.underscore.gsub(/_controller_test/, '')
23
14
  collection.slice!(0..collection.rindex('/')) if collection.include?('/')
24
15
  collection = collection.to_sym
25
16
  model_name = collection.to_s.singularize.camelize.constantize
26
- block ||= attribute
17
+
18
+ if !block
19
+ if model_name.columns.select{|c| c.name == attribute.to_s }.first.type == :boolean
20
+ block = lambda{|x| x.send(attribute).to_s }
21
+ end
22
+ block ||= attribute
23
+ end
27
24
 
28
25
  %w(ascending descending).each do |direction|
29
26
  should "sort by #{attribute.to_s} #{direction}" do
@@ -32,8 +29,6 @@ module SortableTable
32
29
 
33
30
  get :index, :sort => attribute.to_s, :order => direction
34
31
 
35
- # controller tests
36
-
37
32
  assert_not_nil assigns(collection),
38
33
  "assigns(:#{collection}) is nil"
39
34
  assert assigns(collection).size >= 2,
@@ -42,19 +37,9 @@ module SortableTable
42
37
  expected = assigns(collection).sort_by(&block)
43
38
  expected = expected.reverse if direction == 'descending'
44
39
 
45
- assert expected == assigns(collection),
40
+ assert expected.map(&block) == assigns(collection).map(&block),
46
41
  "expected - #{expected.map(&block).inspect}," <<
47
42
  " but was - #{assigns(collection).map(&block).inspect}"
48
-
49
- # view tests
50
-
51
- view_helper_error_message = "Include the sortable_table_header" <<
52
- " helper in your view with the option :sort => '#{attribute}'"
53
-
54
- assert_select "th" do
55
- assert_select "a[href*=?]", "sort=#{attribute.to_s}",
56
- true, view_helper_error_message
57
- end
58
43
  end
59
44
  end
60
45
  end
@@ -3,7 +3,7 @@ class UsersController < ApplicationController
3
3
  sortable_attributes :name, :age, :email => 'users.email'
4
4
 
5
5
  def index
6
- @users = User.find :all#, :order => sort_order('ascending')
6
+ @users = User.find :all, :order => sort_order('ascending')
7
7
  end
8
8
 
9
9
  end
@@ -2,9 +2,9 @@
2
2
 
3
3
  <table>
4
4
  <tr>
5
- <%= sortable_table_header 'Name', :sort => 'name' %>
6
- <%= sortable_table_header 'Email', :sort => 'email' %>
7
- <%= sortable_table_header 'Age', :sort => 'age' %>
5
+ <%= sortable_table_header :name => 'Name', :sort => 'name' %>
6
+ <%= sortable_table_header :name => 'Email', :sort => 'email' %>
7
+ <%= sortable_table_header :name => 'Age', :sort => 'age' %>
8
8
  <th>Created On</th>
9
9
  </tr>
10
10
 
@@ -0,0 +1,8 @@
1
+ # This simulates loading the sortable_table gem, but without relying on
2
+ # vendor/gems
3
+
4
+ sortable_table_path = File.join(File.dirname(__FILE__), *%w(.. .. .. ..))
5
+ sortable_table_lib_path = File.join(sortable_table_path, "lib")
6
+
7
+ $LOAD_PATH.unshift(sortable_table_lib_path)
8
+ load File.join(sortable_table_path, 'rails', 'init.rb')
@@ -0,0 +1,692 @@
1
+ # Logfile created on Thu Oct 16 14:18:01 -0400 2008 User Create (0.000541) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:18:47', NULL, 1, 'email1@example.com', '2008-10-16 18:18:47')
2
+ User Create (0.000121) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:18:47', NULL, 2, 'email2@example.com', '2008-10-16 18:18:47')
3
+ User Load (0.000524) SELECT * FROM "users" 
4
+
5
+
6
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:18:47) [GET]
7
+ Session ID:
8
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
9
+ User Load (0.001175) SELECT * FROM "users" ORDER BY age asc
10
+ Rendering template within layouts/users
11
+ Rendering users/index
12
+ Completed in 0.22554 (4 reqs/sec) | Rendering: 0.13327 (59%) | DB: 0.00236 (1%) | 200 OK [http://test.host/users?order=ascending&sort=age]
13
+ User Create (0.000453) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:18:47', NULL, 3, 'email3@example.com', '2008-10-16 18:18:47')
14
+ User Create (0.000138) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:18:47', NULL, 4, 'email4@example.com', '2008-10-16 18:18:47')
15
+ User Load (0.000555) SELECT * FROM "users" 
16
+
17
+
18
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:18:47) [GET]
19
+ Session ID:
20
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
21
+ User Load (0.001065) SELECT * FROM "users" ORDER BY age desc
22
+ Rendering template within layouts/users
23
+ Rendering users/index
24
+ Completed in 0.00475 (210 reqs/sec) | Rendering: 0.00306 (64%) | DB: 0.00221 (46%) | 200 OK [http://test.host/users?order=descending&sort=age]
25
+ User Create (0.000382) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:18:47', NULL, 5, 'email5@example.com', '2008-10-16 18:18:47')
26
+ User Create (0.000110) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:18:47', NULL, 6, 'email6@example.com', '2008-10-16 18:18:47')
27
+ User Load (0.000475) SELECT * FROM "users" 
28
+
29
+
30
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:18:47) [GET]
31
+ Session ID:
32
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
33
+ User Load (0.000838) SELECT * FROM "users" ORDER BY users.email asc
34
+ Rendering template within layouts/users
35
+ Rendering users/index
36
+ Completed in 0.00369 (271 reqs/sec) | Rendering: 0.00234 (63%) | DB: 0.00180 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
37
+ User Create (0.000385) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:18:47', NULL, 7, 'email7@example.com', '2008-10-16 18:18:47')
38
+ User Create (0.000110) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:18:47', NULL, 8, 'email8@example.com', '2008-10-16 18:18:47')
39
+ User Load (0.000547) SELECT * FROM "users" 
40
+
41
+
42
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:18:47) [GET]
43
+ Session ID:
44
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
45
+ User Load (0.001359) SELECT * FROM "users" ORDER BY users.email desc
46
+ Rendering template within layouts/users
47
+ Rendering users/index
48
+ Completed in 0.00461 (216 reqs/sec) | Rendering: 0.00264 (57%) | DB: 0.00240 (52%) | 200 OK [http://test.host/users?order=descending&sort=email]
49
+ User Create (0.000562) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:30:08', NULL, 1, 'email1@example.com', '2008-10-16 18:30:08')
50
+ User Create (0.000117) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:30:08', NULL, 2, 'email2@example.com', '2008-10-16 18:30:08')
51
+ User Load (0.000558) SELECT * FROM "users" 
52
+
53
+
54
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:30:08) [GET]
55
+ Session ID:
56
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
57
+ User Load (0.000998) SELECT * FROM "users" ORDER BY age asc
58
+ Rendering template within layouts/users
59
+ Rendering users/index
60
+ Completed in 0.04727 (21 reqs/sec) | Rendering: 0.04269 (90%) | DB: 0.00223 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
61
+ User Create (0.000874) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:30:08', NULL, 3, 'email3@example.com', '2008-10-16 18:30:08')
62
+ User Create (0.000162) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:30:08', NULL, 4, 'email4@example.com', '2008-10-16 18:30:08')
63
+ User Load (0.000687) SELECT * FROM "users" 
64
+
65
+
66
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:30:08) [GET]
67
+ Session ID:
68
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
69
+ User Load (0.001261) SELECT * FROM "users" ORDER BY age desc
70
+ Rendering template within layouts/users
71
+ Rendering users/index
72
+ Completed in 0.00489 (204 reqs/sec) | Rendering: 0.00292 (59%) | DB: 0.00298 (61%) | 200 OK [http://test.host/users?order=descending&sort=age]
73
+ User Create (0.000338) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:30:08', NULL, 5, 'email5@example.com', '2008-10-16 18:30:08')
74
+ User Create (0.000119) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:30:08', NULL, 6, 'email6@example.com', '2008-10-16 18:30:08')
75
+ User Load (0.000495) SELECT * FROM "users" 
76
+
77
+
78
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:30:08) [GET]
79
+ Session ID:
80
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
81
+ User Load (0.000856) SELECT * FROM "users" ORDER BY users.email asc
82
+ Rendering template within layouts/users
83
+ Rendering users/index
84
+ Completed in 0.00374 (267 reqs/sec) | Rendering: 0.00237 (63%) | DB: 0.00181 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
85
+ User Create (0.000408) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:30:08', NULL, 7, 'email7@example.com', '2008-10-16 18:30:08')
86
+ User Create (0.000142) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:30:08', NULL, 8, 'email8@example.com', '2008-10-16 18:30:08')
87
+ User Load (0.000495) SELECT * FROM "users" 
88
+
89
+
90
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:30:08) [GET]
91
+ Session ID:
92
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
93
+ User Load (0.000898) SELECT * FROM "users" ORDER BY users.email desc
94
+ Rendering template within layouts/users
95
+ Rendering users/index
96
+ Completed in 0.00389 (256 reqs/sec) | Rendering: 0.00241 (61%) | DB: 0.00194 (49%) | 200 OK [http://test.host/users?order=descending&sort=email]
97
+ User Create (0.000578) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:32:00', NULL, 1, 'email1@example.com', '2008-10-16 18:32:00')
98
+ User Create (0.000136) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:32:00', NULL, 2, 'email2@example.com', '2008-10-16 18:32:00')
99
+ User Load (0.000513) SELECT * FROM "users" 
100
+
101
+
102
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:32:00) [GET]
103
+ Session ID:
104
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
105
+ User Load (0.000982) SELECT * FROM "users" ORDER BY age asc
106
+ Rendering template within layouts/users
107
+ Rendering users/index
108
+ Completed in 0.04582 (21 reqs/sec) | Rendering: 0.04137 (90%) | DB: 0.00221 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
109
+ User Create (0.000387) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:32:00', NULL, 3, 'email3@example.com', '2008-10-16 18:32:00')
110
+ User Create (0.000134) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:32:00', NULL, 4, 'email4@example.com', '2008-10-16 18:32:00')
111
+ User Load (0.000646) SELECT * FROM "users" 
112
+
113
+
114
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:32:00) [GET]
115
+ Session ID:
116
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
117
+ User Load (0.000907) SELECT * FROM "users" ORDER BY age desc
118
+ Rendering template within layouts/users
119
+ Rendering users/index
120
+ Completed in 0.00397 (251 reqs/sec) | Rendering: 0.00252 (63%) | DB: 0.00207 (52%) | 200 OK [http://test.host/users?order=descending&sort=age]
121
+ User Create (0.000334) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:32:00', NULL, 5, 'email5@example.com', '2008-10-16 18:32:00')
122
+ User Create (0.000108) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:32:00', NULL, 6, 'email6@example.com', '2008-10-16 18:32:00')
123
+ User Load (0.000477) SELECT * FROM "users" 
124
+
125
+
126
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:32:00) [GET]
127
+ Session ID:
128
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
129
+ User Load (0.000863) SELECT * FROM "users" ORDER BY users.email asc
130
+ Rendering template within layouts/users
131
+ Rendering users/index
132
+ Completed in 0.00369 (271 reqs/sec) | Rendering: 0.00232 (62%) | DB: 0.00178 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
133
+ User Create (0.000352) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:32:00', NULL, 7, 'email7@example.com', '2008-10-16 18:32:00')
134
+ User Create (0.000145) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:32:00', NULL, 8, 'email8@example.com', '2008-10-16 18:32:00')
135
+ User Load (0.000500) SELECT * FROM "users" 
136
+
137
+
138
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:32:00) [GET]
139
+ Session ID:
140
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
141
+ User Load (0.001056) SELECT * FROM "users" ORDER BY users.email desc
142
+ Rendering template within layouts/users
143
+ Rendering users/index
144
+ Completed in 0.00419 (238 reqs/sec) | Rendering: 0.00251 (59%) | DB: 0.00205 (48%) | 200 OK [http://test.host/users?order=descending&sort=email]
145
+ User Create (0.000532) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:41:44', NULL, 1, 'email1@example.com', '2008-10-16 18:41:44')
146
+ User Create (0.000132) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:41:44', NULL, 2, 'email2@example.com', '2008-10-16 18:41:44')
147
+ User Load (0.000488) SELECT * FROM "users" 
148
+
149
+
150
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:41:44) [GET]
151
+ Session ID:
152
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
153
+ User Load (0.001077) SELECT * FROM "users" ORDER BY age asc
154
+ Rendering template within layouts/users
155
+ Rendering users/index
156
+ Completed in 0.04593 (21 reqs/sec) | Rendering: 0.04139 (90%) | DB: 0.00223 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
157
+ User Create (0.000544) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:41:44', NULL, 3, 'email3@example.com', '2008-10-16 18:41:44')
158
+ User Create (0.000256) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:41:44', NULL, 4, 'email4@example.com', '2008-10-16 18:41:44')
159
+ User Load (0.000693) SELECT * FROM "users" 
160
+
161
+
162
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:41:44) [GET]
163
+ Session ID:
164
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
165
+ User Load (0.001347) SELECT * FROM "users" ORDER BY age desc
166
+ Rendering template within layouts/users
167
+ Rendering users/index
168
+ Completed in 0.00545 (183 reqs/sec) | Rendering: 0.00334 (61%) | DB: 0.00284 (52%) | 200 OK [http://test.host/users?order=descending&sort=age]
169
+ User Create (0.000420) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:41:44', NULL, 5, 'email5@example.com', '2008-10-16 18:41:44')
170
+ User Create (0.000158) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:41:44', NULL, 6, 'email6@example.com', '2008-10-16 18:41:44')
171
+ User Load (0.000550) SELECT * FROM "users" 
172
+
173
+
174
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:41:44) [GET]
175
+ Session ID:
176
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
177
+ User Load (0.001008) SELECT * FROM "users" ORDER BY users.email asc
178
+ Rendering template within layouts/users
179
+ Rendering users/index
180
+ Completed in 0.00430 (232 reqs/sec) | Rendering: 0.00271 (63%) | DB: 0.00214 (49%) | 200 OK [http://test.host/users?order=ascending&sort=email]
181
+ User Create (0.000509) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:41:44', NULL, 7, 'email7@example.com', '2008-10-16 18:41:44')
182
+ User Create (0.000157) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:41:44', NULL, 8, 'email8@example.com', '2008-10-16 18:41:44')
183
+ User Load (0.000852) SELECT * FROM "users" 
184
+
185
+
186
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:41:44) [GET]
187
+ Session ID:
188
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
189
+ User Load (0.001212) SELECT * FROM "users" ORDER BY users.email desc
190
+ Rendering template within layouts/users
191
+ Rendering users/index
192
+ Completed in 0.00525 (190 reqs/sec) | Rendering: 0.00317 (60%) | DB: 0.00273 (51%) | 200 OK [http://test.host/users?order=descending&sort=email]
193
+ User Create (0.000788) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:42:09', NULL, 1, 'email1@example.com', '2008-10-16 18:42:09')
194
+ User Create (0.000131) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:42:09', NULL, 2, 'email2@example.com', '2008-10-16 18:42:09')
195
+ User Load (0.000492) SELECT * FROM "users" 
196
+
197
+
198
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:42:09) [GET]
199
+ Session ID:
200
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
201
+ User Load (0.000993) SELECT * FROM "users" ORDER BY age asc
202
+ Rendering template within layouts/users
203
+ Rendering users/index
204
+ Completed in 0.04505 (22 reqs/sec) | Rendering: 0.04057 (90%) | DB: 0.00240 (5%) | 200 OK [http://test.host/users?order=ascending&sort=age]
205
+ User Create (0.000501) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:42:09', NULL, 3, 'email3@example.com', '2008-10-16 18:42:09')
206
+ User Create (0.000156) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:42:09', NULL, 4, 'email4@example.com', '2008-10-16 18:42:09')
207
+ User Load (0.000701) SELECT * FROM "users" 
208
+
209
+
210
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:42:09) [GET]
211
+ Session ID:
212
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
213
+ User Load (0.001268) SELECT * FROM "users" ORDER BY age desc
214
+ Rendering template within layouts/users
215
+ Rendering users/index
216
+ Completed in 0.00510 (196 reqs/sec) | Rendering: 0.00312 (61%) | DB: 0.00263 (51%) | 200 OK [http://test.host/users?order=descending&sort=age]
217
+ User Create (0.000450) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:42:09', NULL, 5, 'email5@example.com', '2008-10-16 18:42:09')
218
+ User Create (0.000179) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:42:09', NULL, 6, 'email6@example.com', '2008-10-16 18:42:09')
219
+ User Load (0.000679) SELECT * FROM "users" 
220
+
221
+
222
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:42:09) [GET]
223
+ Session ID:
224
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
225
+ User Load (0.001200) SELECT * FROM "users" ORDER BY users.email asc
226
+ Rendering template within layouts/users
227
+ Rendering users/index
228
+ Completed in 0.00534 (187 reqs/sec) | Rendering: 0.00333 (62%) | DB: 0.00251 (46%) | 200 OK [http://test.host/users?order=ascending&sort=email]
229
+ User Create (0.000650) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:42:09', NULL, 7, 'email7@example.com', '2008-10-16 18:42:09')
230
+ User Create (0.000122) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:42:09', NULL, 8, 'email8@example.com', '2008-10-16 18:42:09')
231
+ User Load (0.000490) SELECT * FROM "users" 
232
+
233
+
234
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:42:09) [GET]
235
+ Session ID:
236
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
237
+ User Load (0.000853) SELECT * FROM "users" ORDER BY users.email desc
238
+ Rendering template within layouts/users
239
+ Rendering users/index
240
+ Completed in 0.00423 (236 reqs/sec) | Rendering: 0.00274 (64%) | DB: 0.00212 (50%) | 200 OK [http://test.host/users?order=descending&sort=email]
241
+ User Create (0.000540) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:57:17', NULL, 1, 'email1@example.com', '2008-10-16 18:57:17')
242
+ User Create (0.000124) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:57:17', NULL, 2, 'email2@example.com', '2008-10-16 18:57:17')
243
+ User Load (0.000497) SELECT * FROM "users" 
244
+
245
+
246
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:17) [GET]
247
+ Session ID:
248
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
249
+ User Load (0.000978) SELECT * FROM "users" ORDER BY age asc
250
+ Rendering template within layouts/users
251
+ Rendering users/index
252
+ Completed in 0.04602 (21 reqs/sec) | Rendering: 0.04163 (90%) | DB: 0.00214 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
253
+ User Create (0.000505) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:57:17', NULL, 3, 'email3@example.com', '2008-10-16 18:57:17')
254
+ User Create (0.000175) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:57:17', NULL, 4, 'email4@example.com', '2008-10-16 18:57:17')
255
+ User Load (0.000690) SELECT * FROM "users" 
256
+
257
+
258
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:17) [GET]
259
+ Session ID:
260
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
261
+ User Load (0.001341) SELECT * FROM "users" ORDER BY age desc
262
+ Rendering template within layouts/users
263
+ Rendering users/index
264
+ Completed in 0.00525 (190 reqs/sec) | Rendering: 0.00317 (60%) | DB: 0.00271 (51%) | 200 OK [http://test.host/users?order=descending&sort=age]
265
+ User Create (0.000485) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:57:17', NULL, 5, 'email5@example.com', '2008-10-16 18:57:17')
266
+ User Create (0.000118) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:57:17', NULL, 6, 'email6@example.com', '2008-10-16 18:57:17')
267
+ User Load (0.000485) SELECT * FROM "users" 
268
+
269
+
270
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:17) [GET]
271
+ Session ID:
272
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
273
+ User Load (0.000854) SELECT * FROM "users" ORDER BY users.email asc
274
+ Rendering template within layouts/users
275
+ Rendering users/index
276
+ Completed in 0.00380 (262 reqs/sec) | Rendering: 0.00243 (63%) | DB: 0.00194 (51%) | 200 OK [http://test.host/users?order=ascending&sort=email]
277
+ User Create (0.000553) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:57:17', NULL, 7, 'email7@example.com', '2008-10-16 18:57:17')
278
+ User Create (0.000162) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:57:17', NULL, 8, 'email8@example.com', '2008-10-16 18:57:17')
279
+ User Load (0.000709) SELECT * FROM "users" 
280
+
281
+
282
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:17) [GET]
283
+ Session ID:
284
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
285
+ User Load (0.001185) SELECT * FROM "users" ORDER BY users.email desc
286
+ Rendering template within layouts/users
287
+ Rendering users/index
288
+ Completed in 0.00467 (214 reqs/sec) | Rendering: 0.00275 (58%) | DB: 0.00261 (55%) | 200 OK [http://test.host/users?order=descending&sort=email]
289
+ User Create (0.000502) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 18:57:41', NULL, 1, 'email1@example.com', '2008-10-16 18:57:41')
290
+ User Create (0.000117) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 18:57:41', NULL, 2, 'email2@example.com', '2008-10-16 18:57:41')
291
+ User Load (0.000485) SELECT * FROM "users" 
292
+
293
+
294
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:41) [GET]
295
+ Session ID:
296
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
297
+ User Load (0.000534) SELECT * FROM "users" 
298
+ Rendering template within layouts/users
299
+ Rendering users/index
300
+ Completed in 0.04662 (21 reqs/sec) | Rendering: 0.04270 (91%) | DB: 0.00164 (3%) | 200 OK [http://test.host/users?order=ascending&sort=age]
301
+ User Create (0.000505) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 18:57:41', NULL, 3, 'email3@example.com', '2008-10-16 18:57:41')
302
+ User Create (0.000157) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 18:57:41', NULL, 4, 'email4@example.com', '2008-10-16 18:57:41')
303
+ User Load (0.000730) SELECT * FROM "users" 
304
+
305
+
306
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:42) [GET]
307
+ Session ID:
308
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
309
+ User Load (0.000899) SELECT * FROM "users" 
310
+ Rendering template within layouts/users
311
+ Rendering users/index
312
+ Completed in 0.00493 (202 reqs/sec) | Rendering: 0.00335 (67%) | DB: 0.00229 (46%) | 200 OK [http://test.host/users?order=descending&sort=age]
313
+ User Create (0.000498) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 18:57:42', NULL, 5, 'email5@example.com', '2008-10-16 18:57:42')
314
+ User Create (0.000165) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 18:57:42', NULL, 6, 'email6@example.com', '2008-10-16 18:57:42')
315
+ User Load (0.000732) SELECT * FROM "users" 
316
+
317
+
318
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:42) [GET]
319
+ Session ID:
320
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
321
+ User Load (0.000793) SELECT * FROM "users" 
322
+ Rendering template within layouts/users
323
+ Rendering users/index
324
+ Completed in 0.00504 (198 reqs/sec) | Rendering: 0.00355 (70%) | DB: 0.00219 (43%) | 200 OK [http://test.host/users?order=ascending&sort=email]
325
+ User Create (0.000475) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 18:57:42', NULL, 7, 'email7@example.com', '2008-10-16 18:57:42')
326
+ User Create (0.000155) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 18:57:42', NULL, 8, 'email8@example.com', '2008-10-16 18:57:42')
327
+ User Load (0.000673) SELECT * FROM "users" 
328
+
329
+
330
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 14:57:42) [GET]
331
+ Session ID:
332
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
333
+ User Load (0.000696) SELECT * FROM "users" 
334
+ Rendering template within layouts/users
335
+ Rendering users/index
336
+ Completed in 0.00477 (209 reqs/sec) | Rendering: 0.00328 (68%) | DB: 0.00200 (41%) | 200 OK [http://test.host/users?order=descending&sort=email]
337
+ User Create (0.000537) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:11:54', NULL, 1, 'email1@example.com', '2008-10-16 19:11:54')
338
+ User Create (0.000117) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:11:54', NULL, 2, 'email2@example.com', '2008-10-16 19:11:54')
339
+ User Load (0.000494) SELECT * FROM "users" 
340
+
341
+
342
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:11:54) [GET]
343
+ Session ID:
344
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
345
+ User Load (0.000506) SELECT * FROM "users" 
346
+ Rendering template within layouts/users
347
+ Rendering users/index
348
+ User Create (0.000604) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:11:54', NULL, 3, 'email3@example.com', '2008-10-16 19:11:54')
349
+ User Create (0.000204) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:11:54', NULL, 4, 'email4@example.com', '2008-10-16 19:11:54')
350
+ User Load (0.000716) SELECT * FROM "users" 
351
+
352
+
353
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:11:54) [GET]
354
+ Session ID:
355
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
356
+ User Load (0.001146) SELECT * FROM "users" 
357
+ Rendering template within layouts/users
358
+ Rendering users/index
359
+ User Create (0.000588) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:11:54', NULL, 5, 'email5@example.com', '2008-10-16 19:11:54')
360
+ User Create (0.000198) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:11:54', NULL, 6, 'email6@example.com', '2008-10-16 19:11:54')
361
+ User Load (0.000725) SELECT * FROM "users" 
362
+
363
+
364
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:11:54) [GET]
365
+ Session ID:
366
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
367
+ User Load (0.000663) SELECT * FROM "users" 
368
+ Rendering template within layouts/users
369
+ Rendering users/index
370
+ User Create (0.000511) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:11:55', NULL, 7, 'email7@example.com', '2008-10-16 19:11:55')
371
+ User Create (0.000156) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:11:55', NULL, 8, 'email8@example.com', '2008-10-16 19:11:55')
372
+ User Load (0.000681) SELECT * FROM "users" 
373
+
374
+
375
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:11:55) [GET]
376
+ Session ID:
377
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
378
+ User Load (0.000739) SELECT * FROM "users" 
379
+ Rendering template within layouts/users
380
+ Rendering users/index
381
+ User Create (0.000595) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:13:10', NULL, 1, 'email1@example.com', '2008-10-16 19:13:10')
382
+ User Create (0.000123) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:13:10', NULL, 2, 'email2@example.com', '2008-10-16 19:13:10')
383
+ User Load (0.000495) SELECT * FROM "users" 
384
+
385
+
386
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:13:10) [GET]
387
+ Session ID:
388
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
389
+ User Load (0.000507) SELECT * FROM "users" 
390
+ Rendering template within layouts/users
391
+ Rendering users/index
392
+ Completed in 0.04518 (22 reqs/sec) | Rendering: 0.04133 (91%) | DB: 0.00172 (3%) | 200 OK [http://test.host/users?order=ascending&sort=age]
393
+ User Create (0.000491) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:13:10', NULL, 3, 'email3@example.com', '2008-10-16 19:13:10')
394
+ User Create (0.000156) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:13:10', NULL, 4, 'email4@example.com', '2008-10-16 19:13:10')
395
+ User Load (0.000683) SELECT * FROM "users" 
396
+
397
+
398
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:13:10) [GET]
399
+ Session ID:
400
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
401
+ User Load (0.000747) SELECT * FROM "users" 
402
+ Rendering template within layouts/users
403
+ Rendering users/index
404
+ Completed in 0.00480 (208 reqs/sec) | Rendering: 0.00339 (70%) | DB: 0.00208 (43%) | 200 OK [http://test.host/users?order=descending&sort=age]
405
+ User Create (0.000354) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:13:10', NULL, 5, 'email5@example.com', '2008-10-16 19:13:10')
406
+ User Create (0.000109) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:13:10', NULL, 6, 'email6@example.com', '2008-10-16 19:13:10')
407
+ User Load (0.000487) SELECT * FROM "users" 
408
+
409
+
410
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:13:10) [GET]
411
+ Session ID:
412
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
413
+ User Load (0.000490) SELECT * FROM "users" 
414
+ Rendering template within layouts/users
415
+ Rendering users/index
416
+ Completed in 0.00333 (300 reqs/sec) | Rendering: 0.00237 (71%) | DB: 0.00144 (43%) | 200 OK [http://test.host/users?order=ascending&sort=email]
417
+ User Create (0.000470) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:13:10', NULL, 7, 'email7@example.com', '2008-10-16 19:13:10')
418
+ User Create (0.000156) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:13:10', NULL, 8, 'email8@example.com', '2008-10-16 19:13:10')
419
+ User Load (0.000502) SELECT * FROM "users" 
420
+
421
+
422
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:13:10) [GET]
423
+ Session ID:
424
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
425
+ User Load (0.000484) SELECT * FROM "users" 
426
+ Rendering template within layouts/users
427
+ Rendering users/index
428
+ Completed in 0.00402 (248 reqs/sec) | Rendering: 0.00304 (75%) | DB: 0.00161 (40%) | 200 OK [http://test.host/users?order=descending&sort=email]
429
+ User Create (0.000779) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:14:30', NULL, 1, 'email1@example.com', '2008-10-16 19:14:30')
430
+ User Create (0.000122) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:14:30', NULL, 2, 'email2@example.com', '2008-10-16 19:14:30')
431
+ User Load (0.000512) SELECT * FROM "users" 
432
+
433
+
434
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:14:30) [GET]
435
+ Session ID:
436
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
437
+ User Load (0.000651) SELECT * FROM "users" 
438
+ Rendering template within layouts/users
439
+ Rendering users/index
440
+ Completed in 0.04577 (21 reqs/sec) | Rendering: 0.04157 (90%) | DB: 0.00206 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
441
+ User Create (0.000547) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:14:30', NULL, 3, 'email3@example.com', '2008-10-16 19:14:30')
442
+ User Create (0.000165) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:14:30', NULL, 4, 'email4@example.com', '2008-10-16 19:14:30')
443
+ User Load (0.000688) SELECT * FROM "users" 
444
+
445
+
446
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:14:30) [GET]
447
+ Session ID:
448
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
449
+ User Load (0.000670) SELECT * FROM "users" 
450
+ Rendering template within layouts/users
451
+ Rendering users/index
452
+ Completed in 0.00470 (212 reqs/sec) | Rendering: 0.00330 (70%) | DB: 0.00207 (44%) | 200 OK [http://test.host/users?order=descending&sort=age]
453
+ User Create (0.000354) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:14:30', NULL, 5, 'email5@example.com', '2008-10-16 19:14:30')
454
+ User Create (0.000113) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:14:30', NULL, 6, 'email6@example.com', '2008-10-16 19:14:30')
455
+ User Load (0.000513) SELECT * FROM "users" 
456
+
457
+
458
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:14:30) [GET]
459
+ Session ID:
460
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
461
+ User Load (0.000464) SELECT * FROM "users" 
462
+ Rendering template within layouts/users
463
+ Rendering users/index
464
+ Completed in 0.00318 (314 reqs/sec) | Rendering: 0.00226 (71%) | DB: 0.00144 (45%) | 200 OK [http://test.host/users?order=ascending&sort=email]
465
+ User Create (0.000408) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:14:30', NULL, 7, 'email7@example.com', '2008-10-16 19:14:30')
466
+ User Create (0.000150) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:14:30', NULL, 8, 'email8@example.com', '2008-10-16 19:14:30')
467
+ User Load (0.000488) SELECT * FROM "users" 
468
+
469
+
470
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:14:30) [GET]
471
+ Session ID:
472
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
473
+ User Load (0.000472) SELECT * FROM "users" 
474
+ Rendering template within layouts/users
475
+ Rendering users/index
476
+ Completed in 0.00348 (286 reqs/sec) | Rendering: 0.00253 (72%) | DB: 0.00152 (43%) | 200 OK [http://test.host/users?order=descending&sort=email]
477
+ User Create (0.000506) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:18:12', NULL, 1, 'email1@example.com', '2008-10-16 19:18:12')
478
+ User Create (0.000118) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:18:12', NULL, 2, 'email2@example.com', '2008-10-16 19:18:12')
479
+ User Load (0.000489) SELECT * FROM "users" 
480
+
481
+
482
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:18:12) [GET]
483
+ Session ID:
484
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
485
+ User Load (0.000610) SELECT * FROM "users" 
486
+ Rendering template within layouts/users
487
+ Rendering users/index
488
+ Completed in 0.04553 (21 reqs/sec) | Rendering: 0.04149 (91%) | DB: 0.00172 (3%) | 200 OK [http://test.host/users?order=ascending&sort=age]
489
+ User Create (0.000573) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:18:12', NULL, 3, 'email3@example.com', '2008-10-16 19:18:12')
490
+ User Create (0.000154) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:18:12', NULL, 4, 'email4@example.com', '2008-10-16 19:18:12')
491
+ User Load (0.000683) SELECT * FROM "users" 
492
+
493
+
494
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:18:12) [GET]
495
+ Session ID:
496
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
497
+ User Load (0.000803) SELECT * FROM "users" 
498
+ Rendering template within layouts/users
499
+ Rendering users/index
500
+ Completed in 0.00501 (199 reqs/sec) | Rendering: 0.00341 (68%) | DB: 0.00221 (44%) | 200 OK [http://test.host/users?order=descending&sort=age]
501
+ User Create (0.000343) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:18:12', NULL, 5, 'email5@example.com', '2008-10-16 19:18:12')
502
+ User Create (0.000118) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:18:12', NULL, 6, 'email6@example.com', '2008-10-16 19:18:12')
503
+ User Load (0.000484) SELECT * FROM "users" 
504
+
505
+
506
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:18:12) [GET]
507
+ Session ID:
508
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
509
+ User Load (0.000459) SELECT * FROM "users" 
510
+ Rendering template within layouts/users
511
+ Rendering users/index
512
+ Completed in 0.00323 (309 reqs/sec) | Rendering: 0.00231 (71%) | DB: 0.00140 (43%) | 200 OK [http://test.host/users?order=ascending&sort=email]
513
+ User Create (0.000487) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:18:12', NULL, 7, 'email7@example.com', '2008-10-16 19:18:12')
514
+ User Create (0.000141) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:18:12', NULL, 8, 'email8@example.com', '2008-10-16 19:18:12')
515
+ User Load (0.000546) SELECT * FROM "users" 
516
+
517
+
518
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:18:12) [GET]
519
+ Session ID:
520
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
521
+ User Load (0.000469) SELECT * FROM "users" 
522
+ Rendering template within layouts/users
523
+ Rendering users/index
524
+ Completed in 0.00342 (292 reqs/sec) | Rendering: 0.00244 (71%) | DB: 0.00164 (47%) | 200 OK [http://test.host/users?order=descending&sort=email]
525
+ User Create (0.000560) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:20:40', NULL, 1, 'email1@example.com', '2008-10-16 19:20:40')
526
+ User Create (0.000123) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:20:40', NULL, 2, 'email2@example.com', '2008-10-16 19:20:40')
527
+ User Load (0.000555) SELECT * FROM "users" 
528
+
529
+
530
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:20:40) [GET]
531
+ Session ID:
532
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
533
+ User Load (0.000520) SELECT * FROM "users" 
534
+ Rendering template within layouts/users
535
+ Rendering users/index
536
+ Completed in 0.04955 (20 reqs/sec) | Rendering: 0.04561 (92%) | DB: 0.00176 (3%) | 200 OK [http://test.host/users?order=ascending&sort=age]
537
+ User Create (0.000505) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:20:40', NULL, 3, 'email3@example.com', '2008-10-16 19:20:40')
538
+ User Create (0.000157) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:20:40', NULL, 4, 'email4@example.com', '2008-10-16 19:20:40')
539
+ User Load (0.000844) SELECT * FROM "users" 
540
+
541
+
542
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:20:40) [GET]
543
+ Session ID:
544
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
545
+ User Load (0.000915) SELECT * FROM "users" 
546
+ Rendering template within layouts/users
547
+ Rendering users/index
548
+ Completed in 0.00507 (197 reqs/sec) | Rendering: 0.00341 (67%) | DB: 0.00242 (47%) | 200 OK [http://test.host/users?order=descending&sort=age]
549
+ User Create (0.000455) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:20:41', NULL, 5, 'email5@example.com', '2008-10-16 19:20:41')
550
+ User Create (0.000141) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:20:41', NULL, 6, 'email6@example.com', '2008-10-16 19:20:41')
551
+ User Load (0.000812) SELECT * FROM "users" 
552
+
553
+
554
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:20:41) [GET]
555
+ Session ID:
556
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
557
+ User Load (0.000543) SELECT * FROM "users" 
558
+ Rendering template within layouts/users
559
+ Rendering users/index
560
+ Completed in 0.00392 (255 reqs/sec) | Rendering: 0.00283 (72%) | DB: 0.00195 (49%) | 200 OK [http://test.host/users?order=ascending&sort=email]
561
+ User Create (0.000349) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:20:41', NULL, 7, 'email7@example.com', '2008-10-16 19:20:41')
562
+ User Create (0.000108) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:20:41', NULL, 8, 'email8@example.com', '2008-10-16 19:20:41')
563
+ User Load (0.000490) SELECT * FROM "users" 
564
+
565
+
566
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:20:41) [GET]
567
+ Session ID:
568
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
569
+ User Load (0.000690) SELECT * FROM "users" 
570
+ Rendering template within layouts/users
571
+ Rendering users/index
572
+ Completed in 0.00424 (235 reqs/sec) | Rendering: 0.00290 (68%) | DB: 0.00164 (38%) | 200 OK [http://test.host/users?order=descending&sort=email]
573
+ User Create (0.000565) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:21:26', NULL, 1, 'email1@example.com', '2008-10-16 19:21:26')
574
+ User Create (0.000136) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:21:26', NULL, 2, 'email2@example.com', '2008-10-16 19:21:26')
575
+ User Load (0.000511) SELECT * FROM "users" 
576
+
577
+
578
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:26) [GET]
579
+ Session ID:
580
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
581
+ User Load (0.000952) SELECT * FROM "users" ORDER BY age asc
582
+ Rendering template within layouts/users
583
+ Rendering users/index
584
+ Completed in 0.04831 (20 reqs/sec) | Rendering: 0.04393 (90%) | DB: 0.00216 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
585
+ User Create (0.000582) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:21:26', NULL, 3, 'email3@example.com', '2008-10-16 19:21:26')
586
+ User Create (0.000202) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:21:26', NULL, 4, 'email4@example.com', '2008-10-16 19:21:26')
587
+ User Load (0.000726) SELECT * FROM "users" 
588
+
589
+
590
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:26) [GET]
591
+ Session ID:
592
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
593
+ User Load (0.002443) SELECT * FROM "users" ORDER BY age desc
594
+ Rendering template within layouts/users
595
+ Rendering users/index
596
+ Completed in 0.00569 (175 reqs/sec) | Rendering: 0.00247 (43%) | DB: 0.00395 (69%) | 200 OK [http://test.host/users?order=descending&sort=age]
597
+ User Create (0.000355) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:21:26', NULL, 5, 'email5@example.com', '2008-10-16 19:21:26')
598
+ User Create (0.000112) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:21:26', NULL, 6, 'email6@example.com', '2008-10-16 19:21:26')
599
+ User Load (0.000476) SELECT * FROM "users" 
600
+
601
+
602
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:26) [GET]
603
+ Session ID:
604
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
605
+ User Load (0.000840) SELECT * FROM "users" ORDER BY users.email asc
606
+ Rendering template within layouts/users
607
+ Rendering users/index
608
+ Completed in 0.00368 (271 reqs/sec) | Rendering: 0.00231 (62%) | DB: 0.00178 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
609
+ User Create (0.000338) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:21:26', NULL, 7, 'email7@example.com', '2008-10-16 19:21:26')
610
+ User Create (0.000108) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:21:26', NULL, 8, 'email8@example.com', '2008-10-16 19:21:26')
611
+ User Load (0.000468) SELECT * FROM "users" 
612
+
613
+
614
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:26) [GET]
615
+ Session ID:
616
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
617
+ User Load (0.000869) SELECT * FROM "users" ORDER BY users.email desc
618
+ Rendering template within layouts/users
619
+ Rendering users/index
620
+ Completed in 0.00393 (254 reqs/sec) | Rendering: 0.00249 (63%) | DB: 0.00178 (45%) | 200 OK [http://test.host/users?order=descending&sort=email]
621
+ User Create (0.000582) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name1', '2008-10-16 19:21:37', NULL, 1, 'email1@example.com', '2008-10-16 19:21:37')
622
+ User Create (0.000119) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name2', '2008-10-16 19:21:37', NULL, 2, 'email2@example.com', '2008-10-16 19:21:37')
623
+ User Load (0.000498) SELECT * FROM "users" 
624
+
625
+
626
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
627
+ Session ID:
628
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
629
+ User Load (0.000959) SELECT * FROM "users" ORDER BY age asc
630
+ Rendering template within layouts/users
631
+ Rendering users/index
632
+ Completed in 0.04584 (21 reqs/sec) | Rendering: 0.04136 (90%) | DB: 0.00216 (4%) | 200 OK [http://test.host/users?order=ascending&sort=age]
633
+ User Create (0.000517) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name3', '2008-10-16 19:21:37', NULL, 3, 'email3@example.com', '2008-10-16 19:21:37')
634
+ User Create (0.000165) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name4', '2008-10-16 19:21:37', NULL, 4, 'email4@example.com', '2008-10-16 19:21:37')
635
+ User Load (0.000699) SELECT * FROM "users" 
636
+
637
+
638
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
639
+ Session ID:
640
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"age"}
641
+ User Load (0.001245) SELECT * FROM "users" ORDER BY age desc
642
+ Rendering template within layouts/users
643
+ Rendering users/index
644
+ Completed in 0.00540 (185 reqs/sec) | Rendering: 0.00335 (61%) | DB: 0.00263 (48%) | 200 OK [http://test.host/users?order=descending&sort=age]
645
+ User Create (0.000478) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name5', '2008-10-16 19:21:37', NULL, 5, 'email5@example.com', '2008-10-16 19:21:37')
646
+ User Create (0.000163) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name6', '2008-10-16 19:21:37', NULL, 6, 'email6@example.com', '2008-10-16 19:21:37')
647
+ User Load (0.000682) SELECT * FROM "users" 
648
+
649
+
650
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
651
+ Session ID:
652
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
653
+ User Load (0.001323) SELECT * FROM "users" ORDER BY users.email asc
654
+ Rendering template within layouts/users
655
+ Rendering users/index
656
+ Completed in 0.00541 (184 reqs/sec) | Rendering: 0.00338 (62%) | DB: 0.00265 (48%) | 200 OK [http://test.host/users?order=ascending&sort=email]
657
+ User Create (0.000525) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name7', '2008-10-16 19:21:37', NULL, 7, 'email7@example.com', '2008-10-16 19:21:37')
658
+ User Create (0.000197) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name8', '2008-10-16 19:21:37', NULL, 8, 'email8@example.com', '2008-10-16 19:21:37')
659
+ User Load (0.000699) SELECT * FROM "users" 
660
+
661
+
662
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
663
+ Session ID:
664
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"email"}
665
+ User Load (0.001170) SELECT * FROM "users" ORDER BY users.email desc
666
+ Rendering template within layouts/users
667
+ Rendering users/index
668
+ Completed in 0.00484 (206 reqs/sec) | Rendering: 0.00293 (60%) | DB: 0.00259 (53%) | 200 OK [http://test.host/users?order=descending&sort=email]
669
+ User Create (0.000448) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name9', '2008-10-16 19:21:37', NULL, 9, 'email9@example.com', '2008-10-16 19:21:37')
670
+ User Create (0.000159) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name10', '2008-10-16 19:21:37', NULL, 10, 'email10@example.com', '2008-10-16 19:21:37')
671
+ User Load (0.000698) SELECT * FROM "users" 
672
+
673
+
674
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
675
+ Session ID:
676
+ Parameters: {"order"=>"ascending", "action"=>"index", "controller"=>"users", "sort"=>"name"}
677
+ User Load (0.001885) SELECT * FROM "users" ORDER BY name asc
678
+ Rendering template within layouts/users
679
+ Rendering users/index
680
+ Completed in 0.00631 (158 reqs/sec) | Rendering: 0.00358 (56%) | DB: 0.00319 (50%) | 200 OK [http://test.host/users?order=ascending&sort=name]
681
+ User Create (0.000474) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name11', '2008-10-16 19:21:37', NULL, 11, 'email11@example.com', '2008-10-16 19:21:37')
682
+ User Create (0.000163) INSERT INTO "users" ("name", "updated_at", "admin", "age", "email", "created_at") VALUES('name12', '2008-10-16 19:21:37', NULL, 12, 'email12@example.com', '2008-10-16 19:21:37')
683
+ User Load (0.000687) SELECT * FROM "users" 
684
+
685
+
686
+ Processing UsersController#index (for 0.0.0.0 at 2008-10-16 15:21:37) [GET]
687
+ Session ID:
688
+ Parameters: {"order"=>"descending", "action"=>"index", "controller"=>"users", "sort"=>"name"}
689
+ User Load (0.001261) SELECT * FROM "users" ORDER BY name desc
690
+ Rendering template within layouts/users
691
+ Rendering users/index
692
+ Completed in 0.00504 (198 reqs/sec) | Rendering: 0.00305 (60%) | DB: 0.00258 (51%) | 200 OK [http://test.host/users?order=descending&sort=name]
@@ -7,7 +7,7 @@ class UsersControllerTest < ActionController::TestCase
7
7
  2.times { |each| Factory :user }
8
8
  end
9
9
 
10
- # should_sort_by :name
10
+ should_sort_by :name
11
11
  should_sort_by :email # Hash syntax
12
12
  should_sort_by :age
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dancroak-sortable_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Croak
@@ -62,6 +62,7 @@ files:
62
62
  - test/rails_root/config/environments/test.rb
63
63
  - test/rails_root/config/initializers
64
64
  - test/rails_root/config/initializers/new_rails_defaults.rb
65
+ - test/rails_root/config/initializers/sortable_table.rb
65
66
  - test/rails_root/config/routes.rb
66
67
  - test/rails_root/db
67
68
  - test/rails_root/db/development.sqlite3
@@ -74,6 +75,7 @@ files:
74
75
  - test/rails_root/log/development.log
75
76
  - test/rails_root/log/production.log
76
77
  - test/rails_root/log/server.log
78
+ - test/rails_root/log/test.log
77
79
  - test/rails_root/public
78
80
  - test/rails_root/public/404.html
79
81
  - test/rails_root/public/422.html
@@ -130,128 +132,6 @@ files:
130
132
  - test/rails_root/tmp/sessions
131
133
  - test/rails_root/tmp/sockets
132
134
  - test/rails_root/vendor
133
- - test/rails_root/vendor/plugins
134
- - test/rails_root/vendor/plugins/shoulda
135
- - test/rails_root/vendor/plugins/shoulda/bin
136
- - test/rails_root/vendor/plugins/shoulda/bin/convert_to_should_syntax
137
- - test/rails_root/vendor/plugins/shoulda/CONTRIBUTION_GUIDELINES.rdoc
138
- - test/rails_root/vendor/plugins/shoulda/init.rb
139
- - test/rails_root/vendor/plugins/shoulda/lib
140
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda
141
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/active_record_helpers.rb
142
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/color.rb
143
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/controller_tests
144
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/controller_tests/controller_tests.rb
145
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats
146
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/html.rb
147
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/controller_tests/formats/xml.rb
148
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/gem
149
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/gem/proc_extensions.rb
150
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/gem/shoulda.rb
151
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/general.rb
152
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda/private_helpers.rb
153
- - test/rails_root/vendor/plugins/shoulda/lib/shoulda.rb
154
- - test/rails_root/vendor/plugins/shoulda/MIT-LICENSE
155
- - test/rails_root/vendor/plugins/shoulda/Rakefile
156
- - test/rails_root/vendor/plugins/shoulda/README.rdoc
157
- - test/rails_root/vendor/plugins/shoulda/tasks
158
- - test/rails_root/vendor/plugins/shoulda/tasks/list_tests.rake
159
- - test/rails_root/vendor/plugins/shoulda/tasks/yaml_to_shoulda.rake
160
- - test/rails_root/vendor/plugins/shoulda/test
161
- - test/rails_root/vendor/plugins/shoulda/test/fixtures
162
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/addresses.yml
163
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/posts.yml
164
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/products.yml
165
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/taggings.yml
166
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/tags.yml
167
- - test/rails_root/vendor/plugins/shoulda/test/fixtures/users.yml
168
- - test/rails_root/vendor/plugins/shoulda/test/functional
169
- - test/rails_root/vendor/plugins/shoulda/test/functional/posts_controller_test.rb
170
- - test/rails_root/vendor/plugins/shoulda/test/functional/users_controller_test.rb
171
- - test/rails_root/vendor/plugins/shoulda/test/other
172
- - test/rails_root/vendor/plugins/shoulda/test/other/context_test.rb
173
- - test/rails_root/vendor/plugins/shoulda/test/other/convert_to_should_syntax_test.rb
174
- - test/rails_root/vendor/plugins/shoulda/test/other/helpers_test.rb
175
- - test/rails_root/vendor/plugins/shoulda/test/other/private_helpers_test.rb
176
- - test/rails_root/vendor/plugins/shoulda/test/other/should_test.rb
177
- - test/rails_root/vendor/plugins/shoulda/test/rails_root
178
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app
179
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/controllers
180
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/controllers/application.rb
181
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/controllers/posts_controller.rb
182
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/controllers/users_controller.rb
183
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/helpers
184
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/helpers/application_helper.rb
185
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/helpers/posts_helper.rb
186
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/helpers/users_helper.rb
187
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models
188
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/address.rb
189
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/dog.rb
190
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/flea.rb
191
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/post.rb
192
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/product.rb
193
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/tag.rb
194
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/tagging.rb
195
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/models/user.rb
196
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views
197
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/layouts
198
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/layouts/posts.rhtml
199
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/layouts/users.rhtml
200
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/posts
201
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/posts/edit.rhtml
202
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/posts/index.rhtml
203
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/posts/new.rhtml
204
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/posts/show.rhtml
205
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/users
206
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/users/edit.rhtml
207
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/users/index.rhtml
208
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/users/new.rhtml
209
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/app/views/users/show.rhtml
210
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config
211
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/boot.rb
212
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/database.yml
213
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/environment.rb
214
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/environments
215
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/environments/sqlite3.rb
216
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/initializers
217
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/initializers/new_rails_defaults.rb
218
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/initializers/shoulda.rb
219
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/config/routes.rb
220
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db
221
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate
222
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/001_create_users.rb
223
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/002_create_posts.rb
224
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/003_create_taggings.rb
225
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/004_create_tags.rb
226
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/005_create_dogs.rb
227
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/006_create_addresses.rb
228
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/007_create_fleas.rb
229
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/008_create_dogs_fleas.rb
230
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/migrate/009_create_products.rb
231
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/db/schema.rb
232
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/log
233
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/public
234
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/public/404.html
235
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/public/422.html
236
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/public/500.html
237
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/script
238
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/script/console
239
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/script/generate
240
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/vendor
241
- - test/rails_root/vendor/plugins/shoulda/test/rails_root/vendor/plugins
242
- - test/rails_root/vendor/plugins/shoulda/test/README
243
- - test/rails_root/vendor/plugins/shoulda/test/test_helper.rb
244
- - test/rails_root/vendor/plugins/shoulda/test/unit
245
- - test/rails_root/vendor/plugins/shoulda/test/unit/address_test.rb
246
- - test/rails_root/vendor/plugins/shoulda/test/unit/dog_test.rb
247
- - test/rails_root/vendor/plugins/shoulda/test/unit/flea_test.rb
248
- - test/rails_root/vendor/plugins/shoulda/test/unit/post_test.rb
249
- - test/rails_root/vendor/plugins/shoulda/test/unit/product_test.rb
250
- - test/rails_root/vendor/plugins/shoulda/test/unit/tag_test.rb
251
- - test/rails_root/vendor/plugins/shoulda/test/unit/tagging_test.rb
252
- - test/rails_root/vendor/plugins/shoulda/test/unit/user_test.rb
253
- - test/rails_root/vendor/plugins/sortable
254
- - test/rails_root/vendor/plugins/sortable/init.rb
255
135
  has_rdoc: false
256
136
  homepage: http://github.com/dancroak/sortable_table
257
137
  post_install_message: