rails_sortable 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +20 -0
  3. data/README.md +3 -0
  4. data/Rakefile +23 -0
  5. data/app/controllers/sortable_controller.rb +22 -0
  6. data/app/helpers/sortable_helper.rb +9 -0
  7. data/config/routes.rb +3 -0
  8. data/lib/rails_sortable.rb +4 -0
  9. data/lib/rails_sortable/engine.rb +4 -0
  10. data/lib/rails_sortable/version.rb +3 -0
  11. data/lib/tasks/rails_sortable_tasks.rake +4 -0
  12. data/spec/controllers/sortable_controller_spec.rb +18 -0
  13. data/spec/dummy/README.rdoc +28 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/javascripts/application.js +17 -0
  16. data/spec/dummy/app/assets/javascripts/items.js +5 -0
  17. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  18. data/spec/dummy/app/assets/stylesheets/items.css +4 -0
  19. data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
  20. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  21. data/spec/dummy/app/controllers/items_controller.rb +58 -0
  22. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  23. data/spec/dummy/app/helpers/items_helper.rb +2 -0
  24. data/spec/dummy/app/models/item.rb +3 -0
  25. data/spec/dummy/app/views/items/_form.html.erb +25 -0
  26. data/spec/dummy/app/views/items/edit.html.erb +6 -0
  27. data/spec/dummy/app/views/items/index.html.erb +29 -0
  28. data/spec/dummy/app/views/items/new.html.erb +5 -0
  29. data/spec/dummy/app/views/items/show.html.erb +14 -0
  30. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/spec/dummy/bin/bundle +3 -0
  32. data/spec/dummy/bin/rails +4 -0
  33. data/spec/dummy/bin/rake +4 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/dummy/config/application.rb +28 -0
  36. data/spec/dummy/config/boot.rb +5 -0
  37. data/spec/dummy/config/database.yml +25 -0
  38. data/spec/dummy/config/environment.rb +5 -0
  39. data/spec/dummy/config/environments/development.rb +29 -0
  40. data/spec/dummy/config/environments/production.rb +80 -0
  41. data/spec/dummy/config/environments/test.rb +36 -0
  42. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  44. data/spec/dummy/config/initializers/inflections.rb +16 -0
  45. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  46. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  47. data/spec/dummy/config/initializers/session_store.rb +3 -0
  48. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  49. data/spec/dummy/config/locales/en.yml +23 -0
  50. data/spec/dummy/config/routes.rb +58 -0
  51. data/spec/dummy/db/development.sqlite3 +0 -0
  52. data/spec/dummy/db/migrate/20131223124841_create_items.rb +10 -0
  53. data/spec/dummy/db/schema.rb +23 -0
  54. data/spec/dummy/db/seeds.rb +1 -0
  55. data/spec/dummy/db/test.sqlite3 +0 -0
  56. data/spec/dummy/log/development.log +4188 -0
  57. data/spec/dummy/log/test.log +269 -0
  58. data/spec/dummy/public/404.html +58 -0
  59. data/spec/dummy/public/422.html +58 -0
  60. data/spec/dummy/public/500.html +57 -0
  61. data/spec/dummy/public/favicon.ico +0 -0
  62. data/spec/dummy/tmp/cache/assets/development/sprockets/09c0e9561d4e4c3ec8867c7a8a9b9b42 +0 -0
  63. data/spec/dummy/tmp/cache/assets/development/sprockets/0e84bdca51a3a0487e386e9da49cab86 +0 -0
  64. data/spec/dummy/tmp/cache/assets/development/sprockets/12552dd68c1fdaa0e003f5139c1ef188 +0 -0
  65. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  66. data/spec/dummy/tmp/cache/assets/development/sprockets/21445b043a030a6b874e6fc2926b3f03 +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sprockets/24af22f97404b0fdf1924aa9c64dbefc +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sprockets/24e4e999e945d87db51a6c0639266e6c +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sprockets/271346ac3b88c8d5b342e1e9617ecd25 +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sprockets/2a668655870d5f03dc3a3d9aa691bfed +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sprockets/3d7976736cb0fb316656b1ceeeb68979 +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sprockets/3f88dd8cc7343b35f4ad7016c8a8aa2f +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sprockets/443eeec33985f295f3de84d801267f43 +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sprockets/45690638871d819932026564912e2195 +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sprockets/46bfe8e4c6de42d38202670518db2720 +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sprockets/47210cd74cee569fb21f67fe042804a0 +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sprockets/48711599d95075043d13736e542084b4 +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/59a3fa5688c2134fd84019b59936c2b6 +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/5c5e9ad9739439966aa96de5924073ba +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/5da49418ee5d9d42e17ac02fca5457b6 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/618391a0ef7663854d9df6f34286bfbd +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/62485efd0b3ff6bb41eac572b53368da +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/70de4d1e613727407438e972a9099dfd +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/71418eee6104b64017eb6e6a1f2773c4 +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/72ac123f6449bd8bef14d2eab5098f14 +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/7c69465efeecee1a50197180d6684639 +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/7c7385263be91392fe4b3ebac4e30c18 +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/87d94fb98d5bd32dfd9d145e5b837a83 +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/8f32d9d0ad1e7bbeaf8ae8477dc9f861 +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/96d9c878cbed31839fb895da7fea6146 +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/9daa91d8364698dd61c25d6de342962d +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sprockets/a1a1917817d5eb7f6a00422e9b3f731e +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sprockets/b0e2031acc600ce5786fd4e5685545ae +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/bc6acc8a7c1dacadb37b0bd2e5df09dd +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/c292a12f53708efd19a07da3aa15a0b8 +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/c374e273ada03bedc3ec10dddbaf5a5d +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/c5b2447c005428e7f762f972217f7fc9 +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/c7fb08920199d3630a32e2233c85433e +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sprockets/cb36d45bba6ca52ebb343d2ceeff7645 +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sprockets/ccaade7f71ba3ee748987ed0d4e09af8 +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sprockets/d23f84be9419f8cd6361e094fd9aa0ff +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sprockets/d2b64ac41957bdfd9906972476b82d0e +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sprockets/d486933f2537d00d15fd3cf43bf7af8f +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sprockets/d4d4f33a44b8bd5e03a00ac263ac59d8 +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sprockets/d69e40330afbc5a33c238ac4dfbd86a6 +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sprockets/df136c2e2fc74151ed1324d5fd05481e +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sprockets/e84cf0ef44a46fdbcc61114872eb0714 +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sprockets/e9bb2f00040ed550d231427ad03b236e +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sprockets/ecbc5574068be4c5270f875b71d7e95a +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sprockets/ee8d3ea7f4ea5f4f5204e13648ebad08 +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sprockets/f5086810e52de33164c7427bec325b8d +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sprockets/f932895e1a3359b877edea2bedae3850 +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sprockets/ff209c6e804d4f56d185430b6ed27bc4 +0 -0
  122. data/spec/helpers/enumerable_spec.rb +25 -0
  123. data/spec/spec_helper.rb +42 -0
  124. data/vendor/assets/javascripts/rails_sortable.js +17 -0
  125. metadata +321 -0
@@ -0,0 +1,269 @@
1
+  (0.1ms) begin transaction
2
+  (0.1ms) rollback transaction
3
+  (0.1ms) begin transaction
4
+  (0.1ms) rollback transaction
5
+  (0.1ms) begin transaction
6
+  (0.0ms) rollback transaction
7
+  (0.1ms) begin transaction
8
+  (0.1ms) rollback transaction
9
+  (0.1ms) begin transaction
10
+  (0.1ms) rollback transaction
11
+  (0.1ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+  (0.1ms) begin transaction
14
+  (0.1ms) rollback transaction
15
+  (0.1ms) begin transaction
16
+  (0.1ms) rollback transaction
17
+  (0.1ms) begin transaction
18
+  (0.1ms) rollback transaction
19
+  (0.1ms) begin transaction
20
+  (0.1ms) rollback transaction
21
+  (0.1ms) begin transaction
22
+  (0.1ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+  (0.1ms) rollback transaction
25
+  (0.1ms) begin transaction
26
+  (0.1ms) rollback transaction
27
+  (0.1ms) begin transaction
28
+  (0.1ms) rollback transaction
29
+  (0.1ms) begin transaction
30
+  (0.1ms) rollback transaction
31
+  (0.1ms) begin transaction
32
+  (0.1ms) rollback transaction
33
+  (0.1ms) begin transaction
34
+  (0.1ms) rollback transaction
35
+  (0.1ms) begin transaction
36
+  (0.1ms) rollback transaction
37
+  (0.1ms) begin transaction
38
+  (0.1ms) rollback transaction
39
+  (0.1ms) begin transaction
40
+  (0.1ms) rollback transaction
41
+  (0.1ms) begin transaction
42
+  (0.1ms) rollback transaction
43
+  (0.1ms) begin transaction
44
+  (0.1ms) rollback transaction
45
+  (0.1ms) begin transaction
46
+  (0.1ms) rollback transaction
47
+  (0.1ms) begin transaction
48
+  (0.1ms) rollback transaction
49
+  (0.1ms) begin transaction
50
+ Processing by SortableController#reorder as HTML
51
+ Completed 500 Internal Server Error in 1ms
52
+  (0.1ms) rollback transaction
53
+  (0.1ms) begin transaction
54
+  (0.0ms) rollback transaction
55
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
56
+  (0.1ms) begin transaction
57
+  (0.1ms) SAVEPOINT active_record_1
58
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00]]
59
+  (0.0ms) RELEASE SAVEPOINT active_record_1
60
+  (0.0ms) SAVEPOINT active_record_1
61
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00]]
62
+  (0.0ms) RELEASE SAVEPOINT active_record_1
63
+  (0.0ms) SAVEPOINT active_record_1
64
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00], ["sort", 3], ["updated_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00]]
65
+  (0.0ms) RELEASE SAVEPOINT active_record_1
66
+ Processing by SortableController#reorder as HTML
67
+ Parameters: {"Item"=>["1", "3", "2"]}
68
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
69
+  (0.0ms) SAVEPOINT active_record_1
70
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00]]
71
+  (0.0ms) RELEASE SAVEPOINT active_record_1
72
+  (0.1ms) SAVEPOINT active_record_1
73
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:15:52 UTC +00:00]]
74
+  (0.0ms) RELEASE SAVEPOINT active_record_1
75
+ Rendered text template (0.0ms)
76
+ Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 0.7ms)
77
+  (2.0ms) rollback transaction
78
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
79
+  (0.1ms) begin transaction
80
+  (0.1ms) SAVEPOINT active_record_1
81
+ SQL (2.9ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00]]
82
+  (0.1ms) RELEASE SAVEPOINT active_record_1
83
+  (0.0ms) SAVEPOINT active_record_1
84
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00]]
85
+  (0.0ms) RELEASE SAVEPOINT active_record_1
86
+  (0.0ms) SAVEPOINT active_record_1
87
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00], ["sort", 3], ["updated_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00]]
88
+  (0.0ms) RELEASE SAVEPOINT active_record_1
89
+ Processing by SortableController#reorder as HTML
90
+ Parameters: {"Item"=>["1", "3", "2"]}
91
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
92
+  (0.0ms) SAVEPOINT active_record_1
93
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00]]
94
+  (0.1ms) RELEASE SAVEPOINT active_record_1
95
+  (0.1ms) SAVEPOINT active_record_1
96
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:15:59 UTC +00:00]]
97
+  (0.1ms) RELEASE SAVEPOINT active_record_1
98
+ Rendered text template (0.0ms)
99
+ Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.1ms)
100
+  (2.0ms) rollback transaction
101
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
102
+  (0.1ms) begin transaction
103
+  (0.1ms) SAVEPOINT active_record_1
104
+ SQL (4.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00]]
105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
106
+  (0.0ms) SAVEPOINT active_record_1
107
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00]]
108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
109
+  (0.1ms) SAVEPOINT active_record_1
110
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00], ["sort", 3], ["updated_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00]]
111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
112
+ Processing by SortableController#reorder as HTML
113
+ Parameters: {"Item"=>["1", "3", "2"]}
114
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
115
+  (0.1ms) SAVEPOINT active_record_1
116
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00]]
117
+  (0.0ms) RELEASE SAVEPOINT active_record_1
118
+  (0.0ms) SAVEPOINT active_record_1
119
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:16:32 UTC +00:00]]
120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
121
+ Rendered text template (0.0ms)
122
+ Completed 200 OK in 10ms (Views: 5.8ms | ActiveRecord: 0.6ms)
123
+  (2.0ms) rollback transaction
124
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+  (0.1ms) begin transaction
126
+  (0.1ms) SAVEPOINT active_record_1
127
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00]]
128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
129
+  (0.0ms) SAVEPOINT active_record_1
130
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00]]
131
+  (0.0ms) RELEASE SAVEPOINT active_record_1
132
+  (0.0ms) SAVEPOINT active_record_1
133
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00], ["sort", 3], ["updated_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00]]
134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135
+ Processing by SortableController#reorder as HTML
136
+ Parameters: {"Item"=>["1", "3", "2"]}
137
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
138
+  (0.1ms) SAVEPOINT active_record_1
139
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 1 [["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00]]
140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
141
+  (0.1ms) SAVEPOINT active_record_1
142
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:16:41 UTC +00:00]]
143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
144
+ Rendered text template (0.0ms)
145
+ Completed 200 OK in 11ms (Views: 5.1ms | ActiveRecord: 0.9ms)
146
+  (1.9ms) rollback transaction
147
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
148
+  (0.1ms) begin transaction
149
+  (0.0ms) SAVEPOINT active_record_1
150
+ SQL (3.0ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00], ["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00]]
151
+  (0.1ms) RELEASE SAVEPOINT active_record_1
152
+  (0.0ms) SAVEPOINT active_record_1
153
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00]]
154
+  (0.0ms) RELEASE SAVEPOINT active_record_1
155
+  (0.1ms) SAVEPOINT active_record_1
156
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:18:02 UTC +00:00]]
157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
158
+ Processing by SortableController#reorder as HTML
159
+ Parameters: {"Item"=>["0", "2", "1"]}
160
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
161
+ Completed 500 Internal Server Error in 1ms
162
+  (1.9ms) rollback transaction
163
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
164
+  (0.1ms) begin transaction
165
+  (0.0ms) SAVEPOINT active_record_1
166
+ SQL (2.8ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00], ["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00]]
167
+  (0.1ms) RELEASE SAVEPOINT active_record_1
168
+  (0.0ms) SAVEPOINT active_record_1
169
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00]]
170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
171
+  (0.0ms) SAVEPOINT active_record_1
172
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:19:18 UTC +00:00]]
173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
174
+ Processing by SortableController#reorder as HTML
175
+ Parameters: {"Item"=>["1", "3", "2"]}
176
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
177
+  (0.0ms) SAVEPOINT active_record_1
178
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:19:19 UTC +00:00]]
179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
180
+  (0.1ms) SAVEPOINT active_record_1
181
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:19:19 UTC +00:00]]
182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
183
+ Rendered text template (0.0ms)
184
+ Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 0.8ms)
185
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
186
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
187
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
188
+  (1.9ms) rollback transaction
189
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
190
+  (0.1ms) begin transaction
191
+  (0.0ms) SAVEPOINT active_record_1
192
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00], ["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00]]
193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
194
+  (0.0ms) SAVEPOINT active_record_1
195
+ SQL (0.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00]]
196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
197
+  (0.0ms) SAVEPOINT active_record_1
198
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00]]
199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
200
+ Processing by SortableController#reorder as HTML
201
+ Parameters: {"Item"=>["1", "3", "2"]}
202
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
203
+  (0.0ms) SAVEPOINT active_record_1
204
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00]]
205
+  (0.1ms) RELEASE SAVEPOINT active_record_1
206
+  (0.1ms) SAVEPOINT active_record_1
207
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:19:56 UTC +00:00]]
208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
209
+ Rendered text template (0.0ms)
210
+ Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 0.9ms)
211
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
212
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
213
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
214
+  (1.9ms) rollback transaction
215
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
216
+  (0.1ms) begin transaction
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ SQL (3.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00], ["sort", 0], ["updated_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00]]
219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
220
+  (0.0ms) SAVEPOINT active_record_1
221
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00]]
222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
223
+  (0.0ms) SAVEPOINT active_record_1
224
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00]]
225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
226
+ Processing by SortableController#reorder as HTML
227
+ Parameters: {"Item"=>["1", "3", "2"]}
228
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
229
+  (0.0ms) SAVEPOINT active_record_1
230
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00]]
231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
232
+  (0.0ms) SAVEPOINT active_record_1
233
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Fri, 27 Dec 2013 13:20:18 UTC +00:00]]
234
+  (0.0ms) RELEASE SAVEPOINT active_record_1
235
+ Rendered text template (0.0ms)
236
+ Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.6ms)
237
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
238
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
239
+ Item Load (0.0ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
240
+  (1.9ms) rollback transaction
241
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
242
+  (0.1ms) begin transaction
243
+  (0.1ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+  (0.1ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+  (0.0ms) SAVEPOINT active_record_1
248
+ SQL (3.2ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00], ["sort", 0], ["updated_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00]]
249
+  (0.1ms) RELEASE SAVEPOINT active_record_1
250
+  (0.0ms) SAVEPOINT active_record_1
251
+ SQL (0.3ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00], ["sort", 1], ["updated_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00]]
252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
253
+  (0.0ms) SAVEPOINT active_record_1
254
+ SQL (0.1ms) INSERT INTO "items" ("created_at", "sort", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00], ["sort", 2], ["updated_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00]]
255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
256
+ Processing by SortableController#reorder as HTML
257
+ Parameters: {"Item"=>["1", "3", "2"]}
258
+ Item Load (0.1ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
259
+  (0.0ms) SAVEPOINT active_record_1
260
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 3 [["sort", 1], ["updated_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00]]
261
+  (0.0ms) RELEASE SAVEPOINT active_record_1
262
+  (0.0ms) SAVEPOINT active_record_1
263
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = 2 [["sort", 2], ["updated_at", Fri, 27 Dec 2013 14:03:53 UTC +00:00]]
264
+  (0.0ms) RELEASE SAVEPOINT active_record_1
265
+ Completed 200 OK in 8ms (Views: 4.2ms | ActiveRecord: 0.6ms)
266
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 1]]
267
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 2]]
268
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT 1 [["id", 3]]
269
+  (1.9ms) rollback transaction
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes