rails_sortable 1.1.4 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/sortable_controller.rb +8 -12
  3. data/lib/rails_sortable/version.rb +1 -1
  4. data/spec/controllers/sortable_controller_spec.rb +36 -4
  5. data/spec/dummy/app/assets/javascripts/multiple_classes.js +5 -0
  6. data/spec/dummy/app/controllers/multiple_classes_controller.rb +6 -0
  7. data/spec/dummy/app/models/first_item.rb +6 -0
  8. data/spec/dummy/app/models/second_item.rb +6 -0
  9. data/spec/dummy/app/views/multiple_classes/index.html.erb +24 -0
  10. data/spec/dummy/config/routes.rb +1 -0
  11. data/spec/dummy/db/development.sqlite3 +0 -0
  12. data/spec/dummy/db/migrate/20180427061457_create_multiple_classes.rb +16 -0
  13. data/spec/dummy/db/schema.rb +19 -5
  14. data/spec/dummy/db/seeds.rb +8 -0
  15. data/spec/dummy/db/test.sqlite3 +0 -0
  16. data/spec/dummy/log/development.log +2184 -0
  17. data/spec/dummy/log/test.log +1490 -0
  18. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-M/-MxjO-GIk1YIlXanNrTyM9cLnPq0bO3MI-l009yz0Mg.cache +1 -0
  19. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/-R/-RBl5Otls9eKjBDLs-sw0CZKjYNIoxyt05c77eu6MPU.cache +0 -0
  20. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0i/0iROcwwTcx7Nm88QZYGEnMcYR8UQeRUFriWBo-AMrtU.cache +0 -0
  21. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0n/0nKbZIps6rbbr-UQaOC_KTqpuX9fhn_TriiUkKPUBQw.cache +1 -0
  22. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2R/2RrKCDr-Q1CEpEpqQkEgIt5iH10_PKVy5gdekeB33CE.cache +1 -0
  23. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3_/3_ikYoAQJZPTdaucuQdek7xr3QcTwbIrknn7eLwwX2Y.cache +0 -0
  24. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5R/5RYBbdp1pIijXwX-ki6-lcG5sklaiIGdoJKujtMY9Ck.cache +1 -0
  25. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5U/5UIyU8PudiW_iM9D7hkZPh-maaHNvGLifR-1mCBElNU.cache +3 -0
  26. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6Y/6Ydb9bx-hjXctdCddWpP5gZT0t7Q6x0tVZICdanl6Z4.cache +3 -0
  27. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7H/7H2jf_3YDp04XWv7NFnsX_QYQbCGMFha4fnxXbZzPxY.cache +0 -0
  28. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7Z/7ZqRFEuAQoUrKtyppHSip355JXDt6-UOAcFQdCVL5AQ.cache +0 -0
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8_/8_JrtcQ7x-pYsW0T-um9YsKU5gtTtCZECctaGANEAPQ.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9d/9drpfCvBkVorj5Uh7JuO2zH-xyzxCmaE-LYSOceIi1Y.cache +1 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/B1/B12lZXpX2SuWc-8ZZbwnSOjkPWG6IAjSHqTp1ZLDiPc.cache +0 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BJ/bjqMDOHJA3QMQplCmWO3bAR9LI-P3mYmB1OkrE2gvGU.cache +0 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Br/BROlrF20pevmND11w_FKUPmj4KGd5-sDxf8zcX-EvIY.cache +1 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cc/CcnEw78oTmT3w5eoiu8nSTCD3ldctQgRdkTfHT7iBJ8.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ce/CeO3B7IIEwMWOQTlP54p0YC2RMpMdGrcLv-DPe7laYg.cache +0 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cm/CmV8mhB6UKVBJUUgfz-AgqC6MmFqNnrc7NswK9KzgMc.cache +1 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/D4/D4oL3pjfMuOq2OOBcXLN4a1r8eaic5lV7SfmU7CQTR0.cache +0 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DR/DRJXpz00WCgk_pwUtp2ZBsc9Z5PBRqLZbfFkg9xzzAw.cache +2 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E6/E64eNmSKxozGCgeR3kjqrcSzflp3MLaan9MGNVfMOoY.cache +0 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/EO/EOFrKCtDwVoJD8KP_2u7lABqLpCWOrm_ZVDvL8rjsSw.cache +1 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/G0/G0NalhnGiuamT2OI17HoCc4EPkUhYr8huUcypatURvs.cache +3 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HF/HFuNhzNZA5ILxIzWi2wxnZ_uEYPrAQ4OVoo0Y_92muU.cache +0 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HG/HGJPxZDpIQVCru78seOUmrq_lZm4TlXwvUqb2q6KdTM.cache +0 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HX/HXTUcJKnpwxwvdmnltMvIETHL0RTtc8kQspCLn5oBr8.cache +1 -0
  45. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/He/HeyU5xWergTGEX2eKxB1wp2Zx6FgMOr4SQmgB3D-z4o.cache +1 -0
  46. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jc/jcPtKoW_pZxWBDuwtHTlrXCtDhL_N4o_fjDreM6vz6I.cache +1 -0
  47. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kq/Kqu3a6W9qe-McpE_IQBHgbAgeb1a4ZtPQSorzLzPxeo.cache +3 -0
  48. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LQ/LQnjjctpdUBBWqhz0HImImRbgE6nECTPeNxspb-VNs8.cache +1 -0
  49. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LX/LXz9mdEZDH1ed4s0aXWnbULYVLid2Z0mHtFma0Nge6Q.cache +1 -0
  50. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MS/MSa_epQaTJbZLoL_jmVkGL8NsdoFIySavZKDehUerNM.cache +0 -0
  51. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NA/NA_m7mep3p9_vMh1hQGMikdtfhmnJuBr_vU3kuOBiSI.cache +0 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/NJ/njTjJCUNchOdQxcYt9m_kid_xr7mTRi5BS0a60tdXhk.cache +0 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OR/ORCeVOJmVr7LAd376qIb_umhbvAwqqaL_h3MVIlqdq8.cache +1 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/P5/P5Fx55mYkUbjVE9Q64de3km-kIPqXSimoTgK3GQChYw.cache +1 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ph/PHEABP75roYQqVvPULYUzf-QScsZA5v9TxgWVCGFwt4.cache +1 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMNNzlBu8uphXxYWynzTjCrc4IRjN1eJTgXz1kBy-f4.cache +0 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QM/QMlK1VIkn3SxwPQt_Wrvksm99Q-OVXqttnUgFb03wts.cache +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RL/RLyO3mPMlK49UJnzRHe-W11qo0CuM8NsXoRChGN6g6o.cache +1 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/RN/Rnfi_JFT98UOzDD-WUl9CQVj-KWLhMAd9JiC6DZF6zk.cache +1 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Su/SUXWucDTF5XyS59tBg0iTnrOWBf8A5y9O0Zq99ACukY.cache +1 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sz/Szn48h7y5KuT6vQNu1zvQXFLmymT4ef-W1W6C8wAZxA.cache +3 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Td/TdnE4Q4UR70spMP__OFEwIFkxroxQqp568LKGXIai-I.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Td/tdmMsvm7gqkcRCngtvl_NXa2_lL8Pac_VIA5q4fVtvo.cache +1 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Te/Te74d-ZEO1xAxiKaND-z632M5lD3P7VLuUIh-2kd8MQ.cache +3 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/U4/U4gfLvtxZEeiubxkqK1hcfagjer3H2kbv8XUWGEsJYo.cache +0 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UD/UDL-nMhsFC7yTkdXfNRGWqNmNwE7GvzuDPLK4tbSlvY.cache +0 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vj/Vj8CQxaExVSMQ319-sdhDC1sH02DjQ8_nb1MZk8AMRI.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vw/VwZtLKc4TIR2JWGX9BU0AXVl_iQK83hQgvL0MAIwF_Y.cache +3 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XZ/XZPs04jla05HsqxDp7bcHmaoM_VPUOOwlpvx8YaXFXk.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xv/XvJT2k3s8q54ROSU3cRYZCto2TCcGc7ZL1d1i8FtwB8.cache +1 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZJ/ZjXllK5bajP7gHYoJU4IBgGJswbqqJoWcm-lGWuex1k.cache +0 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zn/ZnrUy5hAd3tdrxdNvOHaURoZCX0ko0jk6w5rs9-Pbe0.cache +1 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aE/aEEK4t9oR0ZSCw-2nGSpE02KhHya-SK0OdGQ75tMdzc.cache +1 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aH/aHjY3KMtKEGjynQpZJzlLafP-TqilsxJtTcC1Y7lNP0.cache +1 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/by/BYz1beHhPysw7f2umniCtPP9TxY1bdVG2hTPAvwTuP0.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c-/c-czee8Len6ZwW5H_aQsHWyCrtQKhesYe2SdCSeZmAU.cache +1 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eN/eNkauokY7xthUOVxLjtrknNOUMllmRyHWVdFIXi3amI.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eb/ebkNWw0hYH6EkApRsknok-fZlBMFmoBn0HDbIjH5dsw.cache +1 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fu/fuYmDGIamN2lUkeufN7pp6L8a9rk7yjLPCrEjLdOxBA.cache +1 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gO/GodMxJBpguaP3XaKuZWzHsiTMILQgqWak5zLKuLhXZg.cache +1 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ic/icFZcLCjbN6LXGmB9XcsQGNaC-QQvwhsL-Ie1j7Jxgg.cache +0 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jT/jTGFywDBW5nvJPf_NSnQVJR2iv7-Y85enZnk9cfW9l4.cache +1 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/k-/k--70WGiqC2QeEM4ZOcLy53HlIMdEvtDGVKFfgR6f2k.cache +1 -0
  84. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/k1/k1_bCeDDzTc7KRdXgqLe4imAodPwcQ0G_fjyu-MBYiM.cache +1 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l8/l8P1pR4maK6k4JR_rsJAE5FFGmxVG4auDU3a9VZiyr4.cache +3 -0
  86. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ld/ldqcVkKyUsgJ0gMrR5p1_ANbiZF42zVk4IXmX2DggLU.cache +3 -0
  87. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lg/lgGD39TPi-RG7Ke7Db27gw1fNHHLqfCN7Okprk5ZUl0.cache +0 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mO/MOTF0qkPowo6wdvhuSeDrdmhnnc--MsuMN6KpFsMK6U.cache +1 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mO/mO2YX9JvGxI3y_4fETHgFvmUF0I-Pxi0bmn0F47FiRw.cache +1 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o4/o4Y9F2XU_uVXmdHbLHiTSqN0NE0piayqn2EwMN4yDgQ.cache +0 -0
  91. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oU/OudGcHFf5703QsPJuoTpUDoIUFWj_ds0f1aVpz6-VWo.cache +0 -0
  92. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oU/oUkdVnPbZerIVEH91ePjSb-F9gf8t8mvYKIIUC3NiQs.cache +1 -0
  93. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r-/r-PwDSHYD-uwFsoCE-QfG4HzYf93Bak0QFKlE57Gfrg.cache +3 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r7/r7QssHA-naMaFK1dcId7ccOwg6y3ZqG0X6i_4iyi6q8.cache +1 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ro/ro8JATasiLE0VFTxitnvTaOr0xSA7bQ-HTUuhoy5dTQ.cache +1 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/s7/S7c4AutKDwvFu029xwHtDTZa8wOx6f5bYCNzHu33wXE.cache +1 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u7/u7rA35fsBnNqyk3zJrUucgz54DWK9ptIMu9bBDcgtXw.cache +1 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uM/uMrRwuPdEG_Q9id7XYXTHHEemwESucB140FjNNtf-Ak.cache +0 -0
  99. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uW/uWpRXEIJzFMcsSUwp-Vu5QLS3vWbos65wsNMgWi-9k0.cache +0 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ue/ueFmbntvMyyizUqFBhs_eUNOXuTumRHTE3ByHDwmiIs.cache +1 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wE/wE4iEOr0Zmk7UHDtRjQ7cOG4zgh4VleO5M3gnnw8nh8.cache +0 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wK/wKwimkD56NZPO3iTTRZxxNHTsVJPxjZltgVnEilhG9s.cache +0 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xf/xfR7DxnUeBsEPt3xHCn6q28Ywsa1QjteIkEN-cO7mLc.cache +3 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xi/xiyktcCc7fjOiqg8GNi_eaQKrlTYOEKfBMGowfYymKs.cache +1 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yu/yuwmn98doTj56vnrPNlt0MuB_saWjn0L3FxjZRnAXwM.cache +0 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yv/yvMbRMt8t7laAS_JbXEu1AGKqtNpY1ssT0Pd91PiJBQ.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z4/z4IPqa2GavyC7WdY_wl7hSK6UzXmMrtiS2ibU2USzig.cache +1 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zf/zF1W191tyyUh00LT5FNorujBZKbT0S6emjIsaoTyOHE.cache +1 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zf/zfMPdEUfQOzkNPjdvWAjTqbY2NYcDouR1aWyxGy1k6o.cache +1 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zp/zpHzjLS4rrb5Z7QGgYBKexGFcPuSHOpanTl4PD3tePU.cache +0 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zw/zwJgJL0K4GhfgTJSYALV6kWoitPrL2DXnHHKBZEO6Gw.cache +0 -0
  112. data/spec/dummy/tmp/pids/server.pid +1 -0
  113. data/vendor/assets/javascripts/plugin.js +11 -4
  114. metadata +197 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68460fb1a8862e4715a9e453b2f61a4fb6d71c4d954b4a5dc1dcece0df1b6fab
4
- data.tar.gz: f0b3ad873c0a562b4c3811b10bfb577a8a566ee10035065c364a71bdbc167585
3
+ metadata.gz: bdbbe937287dfd784fb3b6d4f8cf2c5dd8a513580cbdea594a37ede1f7f8d7a7
4
+ data.tar.gz: d0af01d6e990af8f9047820666a278a1c2f5eab3e5b2bd46bc0b2f1c74f2453a
5
5
  SHA512:
6
- metadata.gz: 603e02eefd9ec9c18b1cdff4c3657fa620fcdb5b3ad6af8bee06f46aa8670ccdf7548504f47e5f3092d86383719177220fa3e9bde6cdc52057d5e58cbd75f536
7
- data.tar.gz: bf663b64587f4293ede0870b47db0a753d44b54f4b776c8fbc0a0afdf28f9e3734008c8e3837093d27d07c544f626e44525d305e9fe565e58652bf64815f3e9d
6
+ metadata.gz: db72da9f15ab2803f7237fb7ead45f05dcf1d093f95ce9ae7296151c4fb02f51948847dce0187628ca7e215c981e6435770132f4ce2e439145d33374707401e2
7
+ data.tar.gz: 892509aadbe29dc12d90a580ac1dc9896d8bd6bb81da9a17307b0809010d4391bf02949d82423305ac7205394ef1f4f913993d54e3ccfb4bbc00de0d63d1ab1f
@@ -1,15 +1,13 @@
1
1
  class SortableController < ApplicationController
2
2
  #
3
- # post /sortable/reorder, rails_sortable: { klass: ["1", "3", "2"] }
3
+ # post /sortable/reorder, rails_sortable: [{ klass: "Item", id: "3" }, { klass: "Item", id: "2" }, { klass: "Item", id: "1" }]
4
4
  #
5
5
  def reorder
6
- klass, ids = parse_params
7
- attr = klass.sort_attribute
8
6
  ActiveRecord::Base.transaction do
9
- id_to_model = klass.find(ids).index_by(&:id)
10
- ids.each_with_index do |id, new_sort|
11
- model = id_to_model[id]
12
- model.update_sort!(new_sort) if model.read_attribute(attr) != new_sort
7
+ params['rails_sortable'].each_with_index do |klass_to_id, new_sort|
8
+ model = find_model(klass_to_id)
9
+ current_sort = model.read_attribute(model.class.sort_attribute)
10
+ model.update_sort!(new_sort) if current_sort != new_sort
13
11
  end
14
12
  end
15
13
 
@@ -18,10 +16,8 @@ class SortableController < ApplicationController
18
16
 
19
17
  private
20
18
 
21
- def parse_params
22
- rails_sortable_params = params['rails_sortable']
23
- klass_name = rails_sortable_params.keys.first
24
- ids = rails_sortable_params[klass_name].map {|id| id.to_i }
25
- [ klass_name.constantize, ids ]
19
+ def find_model(klass_to_id)
20
+ klass, id = klass_to_id.values_at('klass', 'id')
21
+ klass.constantize.find(id.to_i)
26
22
  end
27
23
  end
@@ -1,3 +1,3 @@
1
1
  module RailsSortable
2
- VERSION = '1.1.4'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -1,17 +1,22 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SortableController, type: :controller do
4
- describe "POST reorder" do
4
+ describe 'POST reorder' do
5
5
  before do
6
6
  @item1 = Item.create!
7
7
  @item2 = Item.create!
8
8
  @item3 = Item.create!
9
9
  end
10
- it "should reorder models" do
10
+ it 'should reorder models' do
11
+ data = [
12
+ { klass: 'Item', id: @item1.to_param },
13
+ { klass: 'Item', id: @item3.to_param },
14
+ { klass: 'Item', id: @item2.to_param },
15
+ ]
11
16
  if Gem::Version.new(Rails.version) < Gem::Version.new(5)
12
- post :reorder, rails_sortable: { Item: [@item1.id, @item3.id, @item2.id] }
17
+ post :reorder, rails_sortable: data
13
18
  else
14
- post :reorder, params: { rails_sortable: { Item: [@item1.id, @item3.id, @item2.id] } }
19
+ post :reorder, params: { rails_sortable: data }
15
20
  end
16
21
  expect(response.body).to be_blank
17
22
  expect(Item.find(@item1.id).sort).to eql 0
@@ -19,4 +24,31 @@ describe SortableController, type: :controller do
19
24
  expect(Item.find(@item3.id).sort).to eql 1
20
25
  end
21
26
  end
27
+
28
+ describe 'POST reorder with multiple classes' do
29
+ before do
30
+ @first_item1 = FirstItem.create!
31
+ @first_item2 = FirstItem.create!
32
+ @second_item1 = SecondItem.create!
33
+ @second_item2 = SecondItem.create!
34
+ end
35
+ it 'should reorder models' do
36
+ data = [
37
+ { klass: 'SecondItem', id: @second_item2.to_param },
38
+ { klass: 'FirstItem', id: @first_item2.to_param },
39
+ { klass: 'FirstItem', id: @first_item1.to_param },
40
+ { klass: 'SecondItem', id: @second_item1.to_param },
41
+ ]
42
+ if Gem::Version.new(Rails.version) < Gem::Version.new(5)
43
+ post :reorder, rails_sortable: data
44
+ else
45
+ post :reorder, params: { rails_sortable: data }
46
+ end
47
+ expect(response.body).to be_blank
48
+ expect(SecondItem.find(@second_item2.id).sort).to eql 0
49
+ expect(FirstItem.find(@first_item2.id).sort).to eql 1
50
+ expect(FirstItem.find(@first_item1.id).sort).to eql 2
51
+ expect(SecondItem.find(@second_item1.id).sort).to eql 3
52
+ end
53
+ end
22
54
  end
@@ -0,0 +1,5 @@
1
+ (function($) {
2
+
3
+ $(".sortable-multiple-classes").railsSortable();
4
+
5
+ })(jQuery);
@@ -0,0 +1,6 @@
1
+ class MultipleClassesController < ApplicationController
2
+ # GET /multiple_classes
3
+ def index
4
+ @items = (FirstItem.all + SecondItem.all).sort_by(&:sort)
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ class FirstItem < ActiveRecord::Base
2
+ include RailsSortable::Model
3
+ set_sortable :sort
4
+
5
+ default_scope -> { order(:sort) }
6
+ end
@@ -0,0 +1,6 @@
1
+ class SecondItem < ActiveRecord::Base
2
+ include RailsSortable::Model
3
+ set_sortable :sort
4
+
5
+ default_scope -> { order(:sort) }
6
+ end
@@ -0,0 +1,24 @@
1
+ <h1>Listing multiple class items</h1>
2
+
3
+ <table>
4
+ <thead>
5
+ <tr>
6
+ <th>Title</th>
7
+ <th>Sort</th>
8
+ <th>Updated at</th>
9
+ <th></th>
10
+ <th></th>
11
+ <th></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody class="sortable-multiple-classes">
16
+ <% @items.each_with_sortable_id do |item, sortable_id| %>
17
+ <tr id="<%= sortable_id %>">
18
+ <td><%= item.title %></td>
19
+ <td><%= item.sort %></td>
20
+ <td><%= item.updated_at %></td>
21
+ </tr>
22
+ <% end %>
23
+ </tbody>
24
+ </table>
@@ -1,4 +1,5 @@
1
1
  Dummy::Application.routes.draw do
2
2
  resources :items
3
3
  resources :sequenced_items
4
+ get 'multiple_classes', to: 'multiple_classes#index'
4
5
  end
Binary file
@@ -0,0 +1,16 @@
1
+ class CreateMultipleClasses < Dummy::MigrationClass
2
+ def change
3
+ create_table :first_items do |t|
4
+ t.string :title
5
+ t.integer :sort
6
+
7
+ t.timestamps null: false
8
+ end
9
+ create_table :second_items do |t|
10
+ t.string :title
11
+ t.integer :sort
12
+
13
+ t.timestamps null: false
14
+ end
15
+ end
16
+ end
@@ -10,18 +10,32 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20170414031946) do
13
+ ActiveRecord::Schema.define(version: 20180427061457) do
14
+
15
+ create_table "first_items", force: :cascade do |t|
16
+ t.string "title"
17
+ t.integer "sort"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ end
14
21
 
15
22
  create_table "items", force: :cascade do |t|
16
- t.string "title"
17
- t.integer "sort"
23
+ t.string "title"
24
+ t.integer "sort"
25
+ t.datetime "created_at", null: false
26
+ t.datetime "updated_at", null: false
27
+ end
28
+
29
+ create_table "second_items", force: :cascade do |t|
30
+ t.string "title"
31
+ t.integer "sort"
18
32
  t.datetime "created_at", null: false
19
33
  t.datetime "updated_at", null: false
20
34
  end
21
35
 
22
36
  create_table "sequenced_items", force: :cascade do |t|
23
- t.string "title"
24
- t.integer "sequence"
37
+ t.string "title"
38
+ t.integer "sequence"
25
39
  t.datetime "created_at", null: false
26
40
  t.datetime "updated_at", null: false
27
41
  end
@@ -1,2 +1,10 @@
1
+ Item.delete_all
1
2
  10.times {|i| Item.create! title: "Title#{i}", sort: i }
3
+
4
+ SequencedItem.delete_all
2
5
  10.times {|i| SequencedItem.create! title: "OtherTitle#{i}", sequence: i }
6
+
7
+ FirstItem.delete_all
8
+ (0..4).each {|i| FirstItem.create! title: "FirstTitle#{i}", sort: i }
9
+ SecondItem.delete_all
10
+ (5..9).each {|i| SecondItem.create! title: "SecondTitle#{i}", sort: i }
Binary file
@@ -1743,3 +1743,2187 @@ Processing by ItemsController#index as HTML
1743
1743
  Completed 200 OK in 32ms (Views: 28.8ms | ActiveRecord: 0.2ms)
1744
1744
 
1745
1745
 
1746
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1747
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1748
+  (0.0ms) begin transaction
1749
+  (0.0ms) commit transaction
1750
+  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1751
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1752
+ Migrating to CreateMultipleClasses (20180427061457)
1753
+  (0.0ms) begin transaction
1754
+  (0.1ms) SELECT sqlite_version(*)
1755
+  (0.4ms) CREATE TABLE "multiple_classes_1" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sort" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1756
+  (0.1ms) CREATE TABLE "multiple_classes_2" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sort" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1757
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180427061457"]]
1758
+  (0.8ms) commit transaction
1759
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1760
+  (0.1ms) begin transaction
1761
+  (0.0ms) commit transaction
1762
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1763
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1764
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1765
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1766
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1767
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1768
+  (0.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "environment"]]
1769
+  (0.0ms) SELECT sqlite_version(*)
1770
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
1771
+  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1772
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1773
+ Migrating to CreateItems (20131223124841)
1774
+  (0.1ms) begin transaction
1775
+  (0.3ms) CREATE TABLE "items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sort" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1776
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131223124841"]]
1777
+  (0.8ms) commit transaction
1778
+ Migrating to CreateSequencedItems (20170414031946)
1779
+  (0.1ms) begin transaction
1780
+  (0.3ms) CREATE TABLE "sequenced_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sequence" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1781
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170414031946"]]
1782
+  (0.7ms) commit transaction
1783
+ Migrating to CreateMultipleClasses (20180427061457)
1784
+  (0.1ms) begin transaction
1785
+  (0.3ms) CREATE TABLE "first_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sort" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1786
+  (0.1ms) CREATE TABLE "second_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "sort" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1787
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20180427061457"]]
1788
+  (0.8ms) commit transaction
1789
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
1790
+  (0.1ms) begin transaction
1791
+ SQL (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "development"], ["created_at", "2018-04-27 06:18:15.112539"], ["updated_at", "2018-04-27 06:18:15.112539"]]
1792
+  (0.7ms) commit transaction
1793
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1794
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1795
+ SQL (2.8ms) DELETE FROM "items"
1796
+  (0.0ms) begin transaction
1797
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title0"], ["sort", 0], ["created_at", "2018-04-27 06:19:13.219571"], ["updated_at", "2018-04-27 06:19:13.219571"]]
1798
+  (0.8ms) commit transaction
1799
+  (0.0ms) begin transaction
1800
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title1"], ["sort", 1], ["created_at", "2018-04-27 06:19:13.222029"], ["updated_at", "2018-04-27 06:19:13.222029"]]
1801
+  (0.7ms) commit transaction
1802
+  (0.1ms) begin transaction
1803
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title2"], ["sort", 2], ["created_at", "2018-04-27 06:19:13.223984"], ["updated_at", "2018-04-27 06:19:13.223984"]]
1804
+  (1.1ms) commit transaction
1805
+  (0.0ms) begin transaction
1806
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title3"], ["sort", 3], ["created_at", "2018-04-27 06:19:13.226762"], ["updated_at", "2018-04-27 06:19:13.226762"]]
1807
+  (0.6ms) commit transaction
1808
+  (0.0ms) begin transaction
1809
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title4"], ["sort", 4], ["created_at", "2018-04-27 06:19:13.228940"], ["updated_at", "2018-04-27 06:19:13.228940"]]
1810
+  (1.0ms) commit transaction
1811
+  (0.1ms) begin transaction
1812
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title5"], ["sort", 5], ["created_at", "2018-04-27 06:19:13.231383"], ["updated_at", "2018-04-27 06:19:13.231383"]]
1813
+  (0.6ms) commit transaction
1814
+  (0.0ms) begin transaction
1815
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title6"], ["sort", 6], ["created_at", "2018-04-27 06:19:13.233277"], ["updated_at", "2018-04-27 06:19:13.233277"]]
1816
+  (0.8ms) commit transaction
1817
+  (0.0ms) begin transaction
1818
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title7"], ["sort", 7], ["created_at", "2018-04-27 06:19:13.235348"], ["updated_at", "2018-04-27 06:19:13.235348"]]
1819
+  (1.1ms) commit transaction
1820
+  (0.1ms) begin transaction
1821
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title8"], ["sort", 8], ["created_at", "2018-04-27 06:19:13.238281"], ["updated_at", "2018-04-27 06:19:13.238281"]]
1822
+  (0.8ms) commit transaction
1823
+  (0.0ms) begin transaction
1824
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title9"], ["sort", 9], ["created_at", "2018-04-27 06:19:13.240595"], ["updated_at", "2018-04-27 06:19:13.240595"]]
1825
+  (1.0ms) commit transaction
1826
+ SQL (1.3ms) DELETE FROM "sequenced_items"
1827
+  (0.0ms) begin transaction
1828
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle0"], ["sequence", 0], ["created_at", "2018-04-27 06:19:13.252451"], ["updated_at", "2018-04-27 06:19:13.252451"]]
1829
+  (1.3ms) commit transaction
1830
+  (0.1ms) begin transaction
1831
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle1"], ["sequence", 1], ["created_at", "2018-04-27 06:19:13.256087"], ["updated_at", "2018-04-27 06:19:13.256087"]]
1832
+  (0.7ms) commit transaction
1833
+  (0.0ms) begin transaction
1834
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle2"], ["sequence", 2], ["created_at", "2018-04-27 06:19:13.258575"], ["updated_at", "2018-04-27 06:19:13.258575"]]
1835
+  (0.9ms) commit transaction
1836
+  (0.0ms) begin transaction
1837
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle3"], ["sequence", 3], ["created_at", "2018-04-27 06:19:13.261468"], ["updated_at", "2018-04-27 06:19:13.261468"]]
1838
+  (1.1ms) commit transaction
1839
+  (0.0ms) begin transaction
1840
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle4"], ["sequence", 4], ["created_at", "2018-04-27 06:19:13.264149"], ["updated_at", "2018-04-27 06:19:13.264149"]]
1841
+  (0.9ms) commit transaction
1842
+  (0.0ms) begin transaction
1843
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle5"], ["sequence", 5], ["created_at", "2018-04-27 06:19:13.266589"], ["updated_at", "2018-04-27 06:19:13.266589"]]
1844
+  (0.6ms) commit transaction
1845
+  (0.0ms) begin transaction
1846
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle6"], ["sequence", 6], ["created_at", "2018-04-27 06:19:13.268708"], ["updated_at", "2018-04-27 06:19:13.268708"]]
1847
+  (1.0ms) commit transaction
1848
+  (0.0ms) begin transaction
1849
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle7"], ["sequence", 7], ["created_at", "2018-04-27 06:19:13.271365"], ["updated_at", "2018-04-27 06:19:13.271365"]]
1850
+  (1.0ms) commit transaction
1851
+  (0.0ms) begin transaction
1852
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle8"], ["sequence", 8], ["created_at", "2018-04-27 06:19:13.274135"], ["updated_at", "2018-04-27 06:19:13.274135"]]
1853
+  (0.8ms) commit transaction
1854
+  (0.0ms) begin transaction
1855
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle9"], ["sequence", 9], ["created_at", "2018-04-27 06:19:13.276933"], ["updated_at", "2018-04-27 06:19:13.276933"]]
1856
+  (1.1ms) commit transaction
1857
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1858
+ SQL (2.3ms) DELETE FROM "items"
1859
+  (0.1ms) begin transaction
1860
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title0"], ["sort", 0], ["created_at", "2018-04-27 06:22:12.535952"], ["updated_at", "2018-04-27 06:22:12.535952"]]
1861
+  (1.0ms) commit transaction
1862
+  (0.0ms) begin transaction
1863
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title1"], ["sort", 1], ["created_at", "2018-04-27 06:22:12.538524"], ["updated_at", "2018-04-27 06:22:12.538524"]]
1864
+  (0.7ms) commit transaction
1865
+  (0.0ms) begin transaction
1866
+ SQL (0.7ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title2"], ["sort", 2], ["created_at", "2018-04-27 06:22:12.540737"], ["updated_at", "2018-04-27 06:22:12.540737"]]
1867
+  (1.1ms) commit transaction
1868
+  (0.0ms) begin transaction
1869
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title3"], ["sort", 3], ["created_at", "2018-04-27 06:22:12.544234"], ["updated_at", "2018-04-27 06:22:12.544234"]]
1870
+  (1.2ms) commit transaction
1871
+  (0.0ms) begin transaction
1872
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title4"], ["sort", 4], ["created_at", "2018-04-27 06:22:12.546963"], ["updated_at", "2018-04-27 06:22:12.546963"]]
1873
+  (1.1ms) commit transaction
1874
+  (0.1ms) begin transaction
1875
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title5"], ["sort", 5], ["created_at", "2018-04-27 06:22:12.549926"], ["updated_at", "2018-04-27 06:22:12.549926"]]
1876
+  (1.1ms) commit transaction
1877
+  (0.0ms) begin transaction
1878
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title6"], ["sort", 6], ["created_at", "2018-04-27 06:22:12.552734"], ["updated_at", "2018-04-27 06:22:12.552734"]]
1879
+  (0.8ms) commit transaction
1880
+  (0.0ms) begin transaction
1881
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title7"], ["sort", 7], ["created_at", "2018-04-27 06:22:12.554973"], ["updated_at", "2018-04-27 06:22:12.554973"]]
1882
+  (1.1ms) commit transaction
1883
+  (0.0ms) begin transaction
1884
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title8"], ["sort", 8], ["created_at", "2018-04-27 06:22:12.557735"], ["updated_at", "2018-04-27 06:22:12.557735"]]
1885
+  (0.7ms) commit transaction
1886
+  (0.0ms) begin transaction
1887
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title9"], ["sort", 9], ["created_at", "2018-04-27 06:22:12.559999"], ["updated_at", "2018-04-27 06:22:12.559999"]]
1888
+  (1.0ms) commit transaction
1889
+ SQL (1.6ms) DELETE FROM "sequenced_items"
1890
+  (0.1ms) begin transaction
1891
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle0"], ["sequence", 0], ["created_at", "2018-04-27 06:22:12.570379"], ["updated_at", "2018-04-27 06:22:12.570379"]]
1892
+  (0.9ms) commit transaction
1893
+  (0.0ms) begin transaction
1894
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle1"], ["sequence", 1], ["created_at", "2018-04-27 06:22:12.573034"], ["updated_at", "2018-04-27 06:22:12.573034"]]
1895
+  (1.4ms) commit transaction
1896
+  (0.0ms) begin transaction
1897
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle2"], ["sequence", 2], ["created_at", "2018-04-27 06:22:12.576596"], ["updated_at", "2018-04-27 06:22:12.576596"]]
1898
+  (0.8ms) commit transaction
1899
+  (0.0ms) begin transaction
1900
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle3"], ["sequence", 3], ["created_at", "2018-04-27 06:22:12.579625"], ["updated_at", "2018-04-27 06:22:12.579625"]]
1901
+  (1.5ms) commit transaction
1902
+  (0.0ms) begin transaction
1903
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle4"], ["sequence", 4], ["created_at", "2018-04-27 06:22:12.582248"], ["updated_at", "2018-04-27 06:22:12.582248"]]
1904
+  (1.1ms) commit transaction
1905
+  (0.0ms) begin transaction
1906
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle5"], ["sequence", 5], ["created_at", "2018-04-27 06:22:12.585159"], ["updated_at", "2018-04-27 06:22:12.585159"]]
1907
+  (0.9ms) commit transaction
1908
+  (0.0ms) begin transaction
1909
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle6"], ["sequence", 6], ["created_at", "2018-04-27 06:22:12.588241"], ["updated_at", "2018-04-27 06:22:12.588241"]]
1910
+  (1.1ms) commit transaction
1911
+  (0.0ms) begin transaction
1912
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle7"], ["sequence", 7], ["created_at", "2018-04-27 06:22:12.591087"], ["updated_at", "2018-04-27 06:22:12.591087"]]
1913
+  (1.1ms) commit transaction
1914
+  (0.0ms) begin transaction
1915
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle8"], ["sequence", 8], ["created_at", "2018-04-27 06:22:12.594035"], ["updated_at", "2018-04-27 06:22:12.594035"]]
1916
+  (0.8ms) commit transaction
1917
+  (0.5ms) begin transaction
1918
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle9"], ["sequence", 9], ["created_at", "2018-04-27 06:22:12.596902"], ["updated_at", "2018-04-27 06:22:12.596902"]]
1919
+  (1.1ms) commit transaction
1920
+ SQL (0.8ms) DELETE FROM "first_items"
1921
+  (0.0ms) begin transaction
1922
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle0"], ["sort", 0], ["created_at", "2018-04-27 06:22:12.607490"], ["updated_at", "2018-04-27 06:22:12.607490"]]
1923
+  (1.1ms) commit transaction
1924
+  (0.0ms) begin transaction
1925
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle1"], ["sort", 1], ["created_at", "2018-04-27 06:22:12.610132"], ["updated_at", "2018-04-27 06:22:12.610132"]]
1926
+  (0.7ms) commit transaction
1927
+  (0.0ms) begin transaction
1928
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle2"], ["sort", 2], ["created_at", "2018-04-27 06:22:12.612736"], ["updated_at", "2018-04-27 06:22:12.612736"]]
1929
+  (0.7ms) commit transaction
1930
+  (0.0ms) begin transaction
1931
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle3"], ["sort", 3], ["created_at", "2018-04-27 06:22:12.614729"], ["updated_at", "2018-04-27 06:22:12.614729"]]
1932
+  (1.1ms) commit transaction
1933
+  (0.0ms) begin transaction
1934
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle4"], ["sort", 4], ["created_at", "2018-04-27 06:22:12.617300"], ["updated_at", "2018-04-27 06:22:12.617300"]]
1935
+  (0.8ms) commit transaction
1936
+  (0.0ms) begin transaction
1937
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle5"], ["sort", 5], ["created_at", "2018-04-27 06:22:12.619513"], ["updated_at", "2018-04-27 06:22:12.619513"]]
1938
+  (0.6ms) commit transaction
1939
+  (0.5ms) begin transaction
1940
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle6"], ["sort", 6], ["created_at", "2018-04-27 06:22:12.622082"], ["updated_at", "2018-04-27 06:22:12.622082"]]
1941
+  (0.7ms) commit transaction
1942
+  (0.0ms) begin transaction
1943
+ SQL (0.6ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle7"], ["sort", 7], ["created_at", "2018-04-27 06:22:12.624155"], ["updated_at", "2018-04-27 06:22:12.624155"]]
1944
+  (1.1ms) commit transaction
1945
+  (0.0ms) begin transaction
1946
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle8"], ["sort", 8], ["created_at", "2018-04-27 06:22:12.626808"], ["updated_at", "2018-04-27 06:22:12.626808"]]
1947
+  (0.9ms) commit transaction
1948
+  (0.0ms) begin transaction
1949
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle9"], ["sort", 9], ["created_at", "2018-04-27 06:22:12.629345"], ["updated_at", "2018-04-27 06:22:12.629345"]]
1950
+  (1.0ms) commit transaction
1951
+ SQL (0.8ms) DELETE FROM "second_items"
1952
+  (0.0ms) begin transaction
1953
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle0"], ["sort", 0], ["created_at", "2018-04-27 06:22:12.640941"], ["updated_at", "2018-04-27 06:22:12.640941"]]
1954
+  (0.9ms) commit transaction
1955
+  (0.0ms) begin transaction
1956
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle1"], ["sort", 1], ["created_at", "2018-04-27 06:22:12.643146"], ["updated_at", "2018-04-27 06:22:12.643146"]]
1957
+  (0.8ms) commit transaction
1958
+  (0.0ms) begin transaction
1959
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle2"], ["sort", 2], ["created_at", "2018-04-27 06:22:12.644924"], ["updated_at", "2018-04-27 06:22:12.644924"]]
1960
+  (0.8ms) commit transaction
1961
+  (0.1ms) begin transaction
1962
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle3"], ["sort", 3], ["created_at", "2018-04-27 06:22:12.646757"], ["updated_at", "2018-04-27 06:22:12.646757"]]
1963
+  (0.6ms) commit transaction
1964
+  (0.1ms) begin transaction
1965
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle4"], ["sort", 4], ["created_at", "2018-04-27 06:22:12.648561"], ["updated_at", "2018-04-27 06:22:12.648561"]]
1966
+  (1.1ms) commit transaction
1967
+  (0.1ms) begin transaction
1968
+ SQL (0.4ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle5"], ["sort", 5], ["created_at", "2018-04-27 06:22:12.651042"], ["updated_at", "2018-04-27 06:22:12.651042"]]
1969
+  (0.8ms) commit transaction
1970
+  (0.1ms) begin transaction
1971
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle6"], ["sort", 6], ["created_at", "2018-04-27 06:22:12.653379"], ["updated_at", "2018-04-27 06:22:12.653379"]]
1972
+  (0.6ms) commit transaction
1973
+  (0.0ms) begin transaction
1974
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle7"], ["sort", 7], ["created_at", "2018-04-27 06:22:12.655281"], ["updated_at", "2018-04-27 06:22:12.655281"]]
1975
+  (1.0ms) commit transaction
1976
+  (0.0ms) begin transaction
1977
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle8"], ["sort", 8], ["created_at", "2018-04-27 06:22:12.657547"], ["updated_at", "2018-04-27 06:22:12.657547"]]
1978
+  (0.9ms) commit transaction
1979
+  (0.0ms) begin transaction
1980
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle9"], ["sort", 9], ["created_at", "2018-04-27 06:22:12.659784"], ["updated_at", "2018-04-27 06:22:12.659784"]]
1981
+  (0.6ms) commit transaction
1982
+ Started GET "/multiple_classes" for ::1 at 2018-04-27 15:28:04 +0900
1983
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1984
+ Processing by MultipleClassesController#index as HTML
1985
+ FirstItem Load (0.3ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
1986
+ SecondItem Load (0.3ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
1987
+ Completed 406 Not Acceptable in 106ms (ActiveRecord: 1.6ms)
1988
+
1989
+
1990
+
1991
+ ActionController::UnknownFormat (MultipleClassesController#index is missing a template for this request format and variant.
1992
+
1993
+ request.formats: ["text/html"]
1994
+ request.variant: []
1995
+
1996
+ NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
1997
+
1998
+ actionpack (5.1.4) lib/action_controller/metal/implicit_render.rb:53:in `default_render'
1999
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
2000
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
2001
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
2002
+ actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
2003
+ actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
2004
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2005
+ activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks'
2006
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
2007
+ actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
2008
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2009
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument'
2010
+ activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2011
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument'
2012
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2013
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
2014
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
2015
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
2016
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
2017
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
2018
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
2019
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
2020
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
2021
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
2022
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
2023
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
2024
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
2025
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
2026
+ rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'
2027
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
2028
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
2029
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
2030
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
2031
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
2032
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
2033
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
2034
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
2035
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2036
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
2037
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2038
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
2039
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
2040
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
2041
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
2042
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
2043
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
2044
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2045
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
2046
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
2047
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
2048
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2049
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2050
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
2051
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
2052
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
2053
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
2054
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
2055
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
2056
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
2057
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:28:08 +0900
2058
+ Processing by MultipleClassesController#index as HTML
2059
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2060
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2061
+ Completed 406 Not Acceptable in 69ms (ActiveRecord: 0.3ms)
2062
+
2063
+
2064
+
2065
+ ActionController::UnknownFormat (MultipleClassesController#index is missing a template for this request format and variant.
2066
+
2067
+ request.formats: ["text/html"]
2068
+ request.variant: []
2069
+
2070
+ NOTE! For XHR/Ajax or API requests, this action would normally respond with 204 No Content: an empty white screen. Since you're loading it in a web browser, we assume that you expected to actually render a template, not nothing, so we're showing an error to be extra-clear. If you expect 204 No Content, carry on. That's what you'll get from an XHR or API request. Give it a shot.):
2071
+
2072
+ actionpack (5.1.4) lib/action_controller/metal/implicit_render.rb:53:in `default_render'
2073
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
2074
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
2075
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
2076
+ actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
2077
+ actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
2078
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2079
+ activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks'
2080
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
2081
+ actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
2082
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2083
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument'
2084
+ activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2085
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument'
2086
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2087
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
2088
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
2089
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
2090
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
2091
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
2092
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
2093
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
2094
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
2095
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
2096
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
2097
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
2098
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
2099
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
2100
+ rack (2.0.3) lib/rack/conditional_get.rb:25:in `call'
2101
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
2102
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
2103
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
2104
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
2105
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
2106
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
2107
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
2108
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
2109
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2110
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
2111
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2112
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
2113
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
2114
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
2115
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
2116
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
2117
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
2118
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2119
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
2120
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
2121
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
2122
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2123
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2124
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
2125
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
2126
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
2127
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
2128
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
2129
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
2130
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
2131
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:29:01 +0900
2132
+ Processing by MultipleClassesController#index as HTML
2133
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2134
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2135
+ Rendering multiple_classes/index.html.erb within layouts/application
2136
+ Rendered multiple_classes/index.html.erb within layouts/application (0.3ms)
2137
+ Completed 200 OK in 314ms (Views: 310.6ms | ActiveRecord: 0.3ms)
2138
+
2139
+
2140
+ Started GET "/assets/plugin.self-26804471e7a071d1f55e3694e2e7a7b165e45b06775caf899bd8bef3acfc78f1.js?body=1" for ::1 at 2018-04-27 15:29:01 +0900
2141
+ Started GET "/assets/multiple_classes.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for ::1 at 2018-04-27 15:29:01 +0900
2142
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:30:01 +0900
2143
+ Processing by MultipleClassesController#index as HTML
2144
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2145
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2146
+ Rendering multiple_classes/index.html.erb within layouts/application
2147
+ Rendered multiple_classes/index.html.erb within layouts/application (14.8ms)
2148
+ Completed 500 Internal Server Error in 27ms (ActiveRecord: 0.4ms)
2149
+
2150
+
2151
+
2152
+ ActionView::Template::Error (undefined method `first_item_path' for #<#<Class:0x00007f9451609a18>:0x00007f9450df15d8>):
2153
+ 18: <td><%= item.title %></td>
2154
+ 19: <td><%= item.sort %></td>
2155
+ 20: <td><%= item.updated_at %></td>
2156
+ 21: <td><%= link_to 'Show', item %></td>
2157
+ 22: </tr>
2158
+ 23: <% end %>
2159
+ 24: </tbody>
2160
+
2161
+ app/views/multiple_classes/index.html.erb:21:in `block in _app_views_multiple_classes_index_html_erb__3266176590004586842_70137494343540'
2162
+ app/views/multiple_classes/index.html.erb:16:in `_app_views_multiple_classes_index_html_erb__3266176590004586842_70137494343540'
2163
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:30:11 +0900
2164
+ Processing by MultipleClassesController#index as HTML
2165
+ FirstItem Load (0.6ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2166
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2167
+ Rendering multiple_classes/index.html.erb within layouts/application
2168
+ Rendered multiple_classes/index.html.erb within layouts/application (1.6ms)
2169
+ Completed 200 OK in 34ms (Views: 29.7ms | ActiveRecord: 0.8ms)
2170
+
2171
+
2172
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2173
+ SQL (2.3ms) DELETE FROM "items"
2174
+  (0.0ms) begin transaction
2175
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title0"], ["sort", 0], ["created_at", "2018-04-27 06:32:11.791776"], ["updated_at", "2018-04-27 06:32:11.791776"]]
2176
+  (1.2ms) commit transaction
2177
+  (0.1ms) begin transaction
2178
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title1"], ["sort", 1], ["created_at", "2018-04-27 06:32:11.794549"], ["updated_at", "2018-04-27 06:32:11.794549"]]
2179
+  (0.7ms) commit transaction
2180
+  (0.1ms) begin transaction
2181
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title2"], ["sort", 2], ["created_at", "2018-04-27 06:32:11.796582"], ["updated_at", "2018-04-27 06:32:11.796582"]]
2182
+  (1.1ms) commit transaction
2183
+  (0.0ms) begin transaction
2184
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title3"], ["sort", 3], ["created_at", "2018-04-27 06:32:11.799173"], ["updated_at", "2018-04-27 06:32:11.799173"]]
2185
+  (0.6ms) commit transaction
2186
+  (0.0ms) begin transaction
2187
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title4"], ["sort", 4], ["created_at", "2018-04-27 06:32:11.801099"], ["updated_at", "2018-04-27 06:32:11.801099"]]
2188
+  (0.8ms) commit transaction
2189
+  (0.0ms) begin transaction
2190
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title5"], ["sort", 5], ["created_at", "2018-04-27 06:32:11.803260"], ["updated_at", "2018-04-27 06:32:11.803260"]]
2191
+  (1.1ms) commit transaction
2192
+  (0.1ms) begin transaction
2193
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title6"], ["sort", 6], ["created_at", "2018-04-27 06:32:11.806102"], ["updated_at", "2018-04-27 06:32:11.806102"]]
2194
+  (1.1ms) commit transaction
2195
+  (0.0ms) begin transaction
2196
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title7"], ["sort", 7], ["created_at", "2018-04-27 06:32:11.809080"], ["updated_at", "2018-04-27 06:32:11.809080"]]
2197
+  (1.0ms) commit transaction
2198
+  (0.0ms) begin transaction
2199
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title8"], ["sort", 8], ["created_at", "2018-04-27 06:32:11.811487"], ["updated_at", "2018-04-27 06:32:11.811487"]]
2200
+  (0.8ms) commit transaction
2201
+  (0.0ms) begin transaction
2202
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title9"], ["sort", 9], ["created_at", "2018-04-27 06:32:11.813612"], ["updated_at", "2018-04-27 06:32:11.813612"]]
2203
+  (1.1ms) commit transaction
2204
+ SQL (1.2ms) DELETE FROM "sequenced_items"
2205
+  (0.0ms) begin transaction
2206
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle0"], ["sequence", 0], ["created_at", "2018-04-27 06:32:11.825475"], ["updated_at", "2018-04-27 06:32:11.825475"]]
2207
+  (1.4ms) commit transaction
2208
+  (0.1ms) begin transaction
2209
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle1"], ["sequence", 1], ["created_at", "2018-04-27 06:32:11.828784"], ["updated_at", "2018-04-27 06:32:11.828784"]]
2210
+  (0.8ms) commit transaction
2211
+  (0.0ms) begin transaction
2212
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle2"], ["sequence", 2], ["created_at", "2018-04-27 06:32:11.831955"], ["updated_at", "2018-04-27 06:32:11.831955"]]
2213
+  (1.2ms) commit transaction
2214
+  (0.1ms) begin transaction
2215
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle3"], ["sequence", 3], ["created_at", "2018-04-27 06:32:11.835021"], ["updated_at", "2018-04-27 06:32:11.835021"]]
2216
+  (1.4ms) commit transaction
2217
+  (0.1ms) begin transaction
2218
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle4"], ["sequence", 4], ["created_at", "2018-04-27 06:32:11.839273"], ["updated_at", "2018-04-27 06:32:11.839273"]]
2219
+  (0.8ms) commit transaction
2220
+  (0.0ms) begin transaction
2221
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle5"], ["sequence", 5], ["created_at", "2018-04-27 06:32:11.842017"], ["updated_at", "2018-04-27 06:32:11.842017"]]
2222
+  (1.0ms) commit transaction
2223
+  (0.0ms) begin transaction
2224
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle6"], ["sequence", 6], ["created_at", "2018-04-27 06:32:11.844963"], ["updated_at", "2018-04-27 06:32:11.844963"]]
2225
+  (1.7ms) commit transaction
2226
+  (0.0ms) begin transaction
2227
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle7"], ["sequence", 7], ["created_at", "2018-04-27 06:32:11.847935"], ["updated_at", "2018-04-27 06:32:11.847935"]]
2228
+  (0.8ms) commit transaction
2229
+  (0.0ms) begin transaction
2230
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle8"], ["sequence", 8], ["created_at", "2018-04-27 06:32:11.850521"], ["updated_at", "2018-04-27 06:32:11.850521"]]
2231
+  (0.9ms) commit transaction
2232
+  (0.0ms) begin transaction
2233
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle9"], ["sequence", 9], ["created_at", "2018-04-27 06:32:11.853182"], ["updated_at", "2018-04-27 06:32:11.853182"]]
2234
+  (1.1ms) commit transaction
2235
+ SQL (1.0ms) DELETE FROM "first_items"
2236
+  (0.0ms) begin transaction
2237
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle0"], ["sort", 0], ["created_at", "2018-04-27 06:32:11.865084"], ["updated_at", "2018-04-27 06:32:11.865084"]]
2238
+  (1.1ms) commit transaction
2239
+  (0.0ms) begin transaction
2240
+ SQL (0.8ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle1"], ["sort", 1], ["created_at", "2018-04-27 06:32:11.868023"], ["updated_at", "2018-04-27 06:32:11.868023"]]
2241
+  (1.1ms) commit transaction
2242
+  (0.0ms) begin transaction
2243
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle2"], ["sort", 2], ["created_at", "2018-04-27 06:32:11.870979"], ["updated_at", "2018-04-27 06:32:11.870979"]]
2244
+  (1.0ms) commit transaction
2245
+  (0.0ms) begin transaction
2246
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle3"], ["sort", 3], ["created_at", "2018-04-27 06:32:11.873911"], ["updated_at", "2018-04-27 06:32:11.873911"]]
2247
+  (1.3ms) commit transaction
2248
+  (0.0ms) begin transaction
2249
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle4"], ["sort", 4], ["created_at", "2018-04-27 06:32:11.877421"], ["updated_at", "2018-04-27 06:32:11.877421"]]
2250
+  (0.8ms) commit transaction
2251
+  (0.0ms) begin transaction
2252
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle5"], ["sort", 5], ["created_at", "2018-04-27 06:32:11.879790"], ["updated_at", "2018-04-27 06:32:11.879790"]]
2253
+  (0.6ms) commit transaction
2254
+ SQL (0.8ms) DELETE FROM "second_items"
2255
+  (0.0ms) begin transaction
2256
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle6"], ["sort", 6], ["created_at", "2018-04-27 06:32:11.889987"], ["updated_at", "2018-04-27 06:32:11.889987"]]
2257
+  (1.1ms) commit transaction
2258
+  (0.0ms) begin transaction
2259
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle7"], ["sort", 7], ["created_at", "2018-04-27 06:32:11.892455"], ["updated_at", "2018-04-27 06:32:11.892455"]]
2260
+  (1.1ms) commit transaction
2261
+  (0.0ms) begin transaction
2262
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle8"], ["sort", 8], ["created_at", "2018-04-27 06:32:11.894831"], ["updated_at", "2018-04-27 06:32:11.894831"]]
2263
+  (0.8ms) commit transaction
2264
+  (0.0ms) begin transaction
2265
+ SQL (0.4ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle9"], ["sort", 9], ["created_at", "2018-04-27 06:32:11.897079"], ["updated_at", "2018-04-27 06:32:11.897079"]]
2266
+  (1.0ms) commit transaction
2267
+  (0.0ms) begin transaction
2268
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle10"], ["sort", 10], ["created_at", "2018-04-27 06:32:11.899581"], ["updated_at", "2018-04-27 06:32:11.899581"]]
2269
+  (0.6ms) commit transaction
2270
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:32:14 +0900
2271
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2272
+ Processing by MultipleClassesController#index as HTML
2273
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2274
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2275
+ Rendering multiple_classes/index.html.erb within layouts/application
2276
+ Rendered multiple_classes/index.html.erb within layouts/application (2.3ms)
2277
+ Completed 200 OK in 194ms (Views: 179.1ms | ActiveRecord: 1.2ms)
2278
+
2279
+
2280
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:11 +0900
2281
+ Processing by MultipleClassesController#index as HTML
2282
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2283
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2284
+ Rendering multiple_classes/index.html.erb within layouts/application
2285
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2286
+ Completed 200 OK in 84ms (Views: 79.2ms | ActiveRecord: 0.6ms)
2287
+
2288
+
2289
+ Started GET "/assets/multiple_classes.self-589f5f3c5637de945ef82f1dc58461907741a1ea7aa879f76a15e0d93419db60.js?body=1" for ::1 at 2018-04-27 15:33:12 +0900
2290
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:15 +0900
2291
+ Processing by MultipleClassesController#index as HTML
2292
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2293
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2294
+ Rendering multiple_classes/index.html.erb within layouts/application
2295
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2296
+ Completed 200 OK in 22ms (Views: 19.4ms | ActiveRecord: 0.2ms)
2297
+
2298
+
2299
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:34 +0900
2300
+ Processing by MultipleClassesController#index as HTML
2301
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2302
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2303
+ Rendering multiple_classes/index.html.erb within layouts/application
2304
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2305
+ Completed 200 OK in 27ms (Views: 22.1ms | ActiveRecord: 0.3ms)
2306
+
2307
+
2308
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:33:41 +0900
2309
+ Processing by SortableController#reorder as */*
2310
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["11", "12", "13", "14", "15", "16"], "SecondItem"=>["11", "15", "12", "13", "14"]}}
2311
+  (0.0ms) begin transaction
2312
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (11, 12, 13, 14, 15, 16) ORDER BY "first_items"."sort" ASC
2313
+  (0.0ms) commit transaction
2314
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
2315
+
2316
+
2317
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:43 +0900
2318
+ Processing by MultipleClassesController#index as HTML
2319
+ FirstItem Load (0.3ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2320
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2321
+ Rendering multiple_classes/index.html.erb within layouts/application
2322
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2323
+ Completed 200 OK in 25ms (Views: 21.7ms | ActiveRecord: 0.4ms)
2324
+
2325
+
2326
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:33:46 +0900
2327
+ Processing by SortableController#reorder as */*
2328
+ Parameters: {"rails_sortable"=>{"SecondItem"=>["15", "11", "12", "13", "14"], "FirstItem"=>["11", "12", "13", "14", "15", "16"]}}
2329
+  (0.1ms) begin transaction
2330
+ SecondItem Load (0.3ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" IN (15, 11, 12, 13, 14) ORDER BY "second_items"."sort" ASC
2331
+ SQL (0.5ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 06:33:46.789813"], ["id", 15]]
2332
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 06:33:46.791852"], ["id", 11]]
2333
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 06:33:46.794377"], ["id", 12]]
2334
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 06:33:46.795195"], ["id", 13]]
2335
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 06:33:46.795798"], ["id", 14]]
2336
+  (2.0ms) commit transaction
2337
+ Completed 200 OK in 11ms (ActiveRecord: 3.1ms)
2338
+
2339
+
2340
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:48 +0900
2341
+ Processing by MultipleClassesController#index as HTML
2342
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2343
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2344
+ Rendering multiple_classes/index.html.erb within layouts/application
2345
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2346
+ Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 0.3ms)
2347
+
2348
+
2349
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:33:57 +0900
2350
+ Processing by SortableController#reorder as */*
2351
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["11", "12", "13", "14", "15", "16"], "SecondItem"=>["11", "12", "13", "14", "15"]}}
2352
+  (0.1ms) begin transaction
2353
+ FirstItem Load (0.3ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (11, 12, 13, 14, 15, 16) ORDER BY "first_items"."sort" ASC
2354
+  (0.1ms) commit transaction
2355
+ Completed 200 OK in 3ms (ActiveRecord: 0.4ms)
2356
+
2357
+
2358
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:33:59 +0900
2359
+ Processing by MultipleClassesController#index as HTML
2360
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2361
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2362
+ Rendering multiple_classes/index.html.erb within layouts/application
2363
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2364
+ Completed 200 OK in 27ms (Views: 23.8ms | ActiveRecord: 0.4ms)
2365
+
2366
+
2367
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2368
+ SQL (2.1ms) DELETE FROM "items"
2369
+  (0.0ms) begin transaction
2370
+ SQL (0.7ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title0"], ["sort", 0], ["created_at", "2018-04-27 06:34:40.922388"], ["updated_at", "2018-04-27 06:34:40.922388"]]
2371
+  (1.1ms) commit transaction
2372
+  (0.0ms) begin transaction
2373
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title1"], ["sort", 1], ["created_at", "2018-04-27 06:34:40.925674"], ["updated_at", "2018-04-27 06:34:40.925674"]]
2374
+  (0.7ms) commit transaction
2375
+  (0.0ms) begin transaction
2376
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title2"], ["sort", 2], ["created_at", "2018-04-27 06:34:40.927937"], ["updated_at", "2018-04-27 06:34:40.927937"]]
2377
+  (1.3ms) commit transaction
2378
+  (0.1ms) begin transaction
2379
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title3"], ["sort", 3], ["created_at", "2018-04-27 06:34:40.931230"], ["updated_at", "2018-04-27 06:34:40.931230"]]
2380
+  (1.2ms) commit transaction
2381
+  (0.1ms) begin transaction
2382
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title4"], ["sort", 4], ["created_at", "2018-04-27 06:34:40.934178"], ["updated_at", "2018-04-27 06:34:40.934178"]]
2383
+  (0.9ms) commit transaction
2384
+  (0.0ms) begin transaction
2385
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title5"], ["sort", 5], ["created_at", "2018-04-27 06:34:40.937036"], ["updated_at", "2018-04-27 06:34:40.937036"]]
2386
+  (1.0ms) commit transaction
2387
+  (0.0ms) begin transaction
2388
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title6"], ["sort", 6], ["created_at", "2018-04-27 06:34:40.939573"], ["updated_at", "2018-04-27 06:34:40.939573"]]
2389
+  (0.8ms) commit transaction
2390
+  (0.0ms) begin transaction
2391
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title7"], ["sort", 7], ["created_at", "2018-04-27 06:34:40.941698"], ["updated_at", "2018-04-27 06:34:40.941698"]]
2392
+  (0.6ms) commit transaction
2393
+  (0.0ms) begin transaction
2394
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title8"], ["sort", 8], ["created_at", "2018-04-27 06:34:40.943456"], ["updated_at", "2018-04-27 06:34:40.943456"]]
2395
+  (0.8ms) commit transaction
2396
+  (0.1ms) begin transaction
2397
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title9"], ["sort", 9], ["created_at", "2018-04-27 06:34:40.945558"], ["updated_at", "2018-04-27 06:34:40.945558"]]
2398
+  (1.0ms) commit transaction
2399
+ SQL (0.8ms) DELETE FROM "sequenced_items"
2400
+  (0.0ms) begin transaction
2401
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle0"], ["sequence", 0], ["created_at", "2018-04-27 06:34:40.955904"], ["updated_at", "2018-04-27 06:34:40.955904"]]
2402
+  (0.9ms) commit transaction
2403
+  (0.0ms) begin transaction
2404
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle1"], ["sequence", 1], ["created_at", "2018-04-27 06:34:40.958562"], ["updated_at", "2018-04-27 06:34:40.958562"]]
2405
+  (1.0ms) commit transaction
2406
+  (0.0ms) begin transaction
2407
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle2"], ["sequence", 2], ["created_at", "2018-04-27 06:34:40.961064"], ["updated_at", "2018-04-27 06:34:40.961064"]]
2408
+  (0.9ms) commit transaction
2409
+  (0.0ms) begin transaction
2410
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle3"], ["sequence", 3], ["created_at", "2018-04-27 06:34:40.963778"], ["updated_at", "2018-04-27 06:34:40.963778"]]
2411
+  (1.0ms) commit transaction
2412
+  (0.5ms) begin transaction
2413
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle4"], ["sequence", 4], ["created_at", "2018-04-27 06:34:40.966390"], ["updated_at", "2018-04-27 06:34:40.966390"]]
2414
+  (0.7ms) commit transaction
2415
+  (0.0ms) begin transaction
2416
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle5"], ["sequence", 5], ["created_at", "2018-04-27 06:34:40.968680"], ["updated_at", "2018-04-27 06:34:40.968680"]]
2417
+  (0.7ms) commit transaction
2418
+  (0.0ms) begin transaction
2419
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle6"], ["sequence", 6], ["created_at", "2018-04-27 06:34:40.970821"], ["updated_at", "2018-04-27 06:34:40.970821"]]
2420
+  (1.2ms) commit transaction
2421
+  (0.0ms) begin transaction
2422
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle7"], ["sequence", 7], ["created_at", "2018-04-27 06:34:40.973540"], ["updated_at", "2018-04-27 06:34:40.973540"]]
2423
+  (1.1ms) commit transaction
2424
+  (0.0ms) begin transaction
2425
+ SQL (0.6ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle8"], ["sequence", 8], ["created_at", "2018-04-27 06:34:40.976401"], ["updated_at", "2018-04-27 06:34:40.976401"]]
2426
+  (0.7ms) commit transaction
2427
+  (0.0ms) begin transaction
2428
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle9"], ["sequence", 9], ["created_at", "2018-04-27 06:34:40.978639"], ["updated_at", "2018-04-27 06:34:40.978639"]]
2429
+  (1.1ms) commit transaction
2430
+ SQL (1.4ms) DELETE FROM "first_items"
2431
+  (0.0ms) begin transaction
2432
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle0"], ["sort", 0], ["created_at", "2018-04-27 06:34:40.991020"], ["updated_at", "2018-04-27 06:34:40.991020"]]
2433
+  (0.9ms) commit transaction
2434
+  (0.0ms) begin transaction
2435
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle1"], ["sort", 1], ["created_at", "2018-04-27 06:34:40.993485"], ["updated_at", "2018-04-27 06:34:40.993485"]]
2436
+  (1.1ms) commit transaction
2437
+  (0.0ms) begin transaction
2438
+ SQL (0.7ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle2"], ["sort", 2], ["created_at", "2018-04-27 06:34:40.996158"], ["updated_at", "2018-04-27 06:34:40.996158"]]
2439
+  (1.1ms) commit transaction
2440
+  (0.0ms) begin transaction
2441
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle3"], ["sort", 3], ["created_at", "2018-04-27 06:34:40.998883"], ["updated_at", "2018-04-27 06:34:40.998883"]]
2442
+  (1.1ms) commit transaction
2443
+  (0.4ms) begin transaction
2444
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle4"], ["sort", 4], ["created_at", "2018-04-27 06:34:41.001998"], ["updated_at", "2018-04-27 06:34:41.001998"]]
2445
+  (1.1ms) commit transaction
2446
+ SQL (0.9ms) DELETE FROM "second_items"
2447
+  (0.0ms) begin transaction
2448
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle5"], ["sort", 5], ["created_at", "2018-04-27 06:34:41.013308"], ["updated_at", "2018-04-27 06:34:41.013308"]]
2449
+  (1.1ms) commit transaction
2450
+  (0.0ms) begin transaction
2451
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle6"], ["sort", 6], ["created_at", "2018-04-27 06:34:41.015789"], ["updated_at", "2018-04-27 06:34:41.015789"]]
2452
+  (0.9ms) commit transaction
2453
+  (0.0ms) begin transaction
2454
+ SQL (0.4ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle7"], ["sort", 7], ["created_at", "2018-04-27 06:34:41.017942"], ["updated_at", "2018-04-27 06:34:41.017942"]]
2455
+  (1.0ms) commit transaction
2456
+  (0.0ms) begin transaction
2457
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle8"], ["sort", 8], ["created_at", "2018-04-27 06:34:41.021031"], ["updated_at", "2018-04-27 06:34:41.021031"]]
2458
+  (0.8ms) commit transaction
2459
+  (0.0ms) begin transaction
2460
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle9"], ["sort", 9], ["created_at", "2018-04-27 06:34:41.023243"], ["updated_at", "2018-04-27 06:34:41.023243"]]
2461
+  (0.6ms) commit transaction
2462
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:34:41 +0900
2463
+ Processing by MultipleClassesController#index as HTML
2464
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2465
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2466
+ Rendering multiple_classes/index.html.erb within layouts/application
2467
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
2468
+ Completed 200 OK in 26ms (Views: 22.1ms | ActiveRecord: 0.3ms)
2469
+
2470
+
2471
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:34:52 +0900
2472
+ Processing by SortableController#reorder as */*
2473
+ Parameters: {"rails_sortable"=>{"SecondItem"=>["20", "16", "17", "18", "19"], "FirstItem"=>["17", "18", "19", "20", "21"]}}
2474
+  (0.1ms) begin transaction
2475
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" IN (20, 16, 17, 18, 19) ORDER BY "second_items"."sort" ASC
2476
+ SQL (0.3ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 06:34:52.759148"], ["id", 20]]
2477
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 06:34:52.760575"], ["id", 16]]
2478
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 06:34:52.761933"], ["id", 17]]
2479
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 06:34:52.762743"], ["id", 18]]
2480
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 06:34:52.763407"], ["id", 19]]
2481
+  (2.4ms) commit transaction
2482
+ Completed 200 OK in 10ms (ActiveRecord: 3.3ms)
2483
+
2484
+
2485
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:35:08 +0900
2486
+ Processing by MultipleClassesController#index as HTML
2487
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2488
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2489
+ Rendering multiple_classes/index.html.erb within layouts/application
2490
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
2491
+ Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.3ms)
2492
+
2493
+
2494
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2495
+ SQL (2.3ms) DELETE FROM "items"
2496
+  (0.0ms) begin transaction
2497
+ SQL (0.4ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title0"], ["sort", 0], ["created_at", "2018-04-27 06:35:24.899943"], ["updated_at", "2018-04-27 06:35:24.899943"]]
2498
+  (0.8ms) commit transaction
2499
+  (0.0ms) begin transaction
2500
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title1"], ["sort", 1], ["created_at", "2018-04-27 06:35:24.902297"], ["updated_at", "2018-04-27 06:35:24.902297"]]
2501
+  (0.9ms) commit transaction
2502
+  (0.0ms) begin transaction
2503
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title2"], ["sort", 2], ["created_at", "2018-04-27 06:35:24.904653"], ["updated_at", "2018-04-27 06:35:24.904653"]]
2504
+  (0.6ms) commit transaction
2505
+  (0.0ms) begin transaction
2506
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title3"], ["sort", 3], ["created_at", "2018-04-27 06:35:24.906455"], ["updated_at", "2018-04-27 06:35:24.906455"]]
2507
+  (1.1ms) commit transaction
2508
+  (0.1ms) begin transaction
2509
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title4"], ["sort", 4], ["created_at", "2018-04-27 06:35:24.908792"], ["updated_at", "2018-04-27 06:35:24.908792"]]
2510
+  (1.1ms) commit transaction
2511
+  (0.0ms) begin transaction
2512
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title5"], ["sort", 5], ["created_at", "2018-04-27 06:35:24.911206"], ["updated_at", "2018-04-27 06:35:24.911206"]]
2513
+  (0.9ms) commit transaction
2514
+  (0.1ms) begin transaction
2515
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title6"], ["sort", 6], ["created_at", "2018-04-27 06:35:24.914111"], ["updated_at", "2018-04-27 06:35:24.914111"]]
2516
+  (0.8ms) commit transaction
2517
+  (0.0ms) begin transaction
2518
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title7"], ["sort", 7], ["created_at", "2018-04-27 06:35:24.916183"], ["updated_at", "2018-04-27 06:35:24.916183"]]
2519
+  (0.9ms) commit transaction
2520
+  (0.0ms) begin transaction
2521
+ SQL (0.2ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title8"], ["sort", 8], ["created_at", "2018-04-27 06:35:24.918450"], ["updated_at", "2018-04-27 06:35:24.918450"]]
2522
+  (1.0ms) commit transaction
2523
+  (0.1ms) begin transaction
2524
+ SQL (0.3ms) INSERT INTO "items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Title9"], ["sort", 9], ["created_at", "2018-04-27 06:35:24.920917"], ["updated_at", "2018-04-27 06:35:24.920917"]]
2525
+  (0.6ms) commit transaction
2526
+ SQL (1.0ms) DELETE FROM "sequenced_items"
2527
+  (0.0ms) begin transaction
2528
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle0"], ["sequence", 0], ["created_at", "2018-04-27 06:35:24.930102"], ["updated_at", "2018-04-27 06:35:24.930102"]]
2529
+  (1.2ms) commit transaction
2530
+  (0.0ms) begin transaction
2531
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle1"], ["sequence", 1], ["created_at", "2018-04-27 06:35:24.932868"], ["updated_at", "2018-04-27 06:35:24.932868"]]
2532
+  (0.8ms) commit transaction
2533
+  (0.0ms) begin transaction
2534
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle2"], ["sequence", 2], ["created_at", "2018-04-27 06:35:24.935592"], ["updated_at", "2018-04-27 06:35:24.935592"]]
2535
+  (1.2ms) commit transaction
2536
+  (0.0ms) begin transaction
2537
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle3"], ["sequence", 3], ["created_at", "2018-04-27 06:35:24.938037"], ["updated_at", "2018-04-27 06:35:24.938037"]]
2538
+  (0.7ms) commit transaction
2539
+  (0.0ms) begin transaction
2540
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle4"], ["sequence", 4], ["created_at", "2018-04-27 06:35:24.940146"], ["updated_at", "2018-04-27 06:35:24.940146"]]
2541
+  (0.7ms) commit transaction
2542
+  (0.0ms) begin transaction
2543
+ SQL (0.3ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle5"], ["sequence", 5], ["created_at", "2018-04-27 06:35:24.942597"], ["updated_at", "2018-04-27 06:35:24.942597"]]
2544
+  (1.1ms) commit transaction
2545
+  (0.0ms) begin transaction
2546
+ SQL (0.4ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle6"], ["sequence", 6], ["created_at", "2018-04-27 06:35:24.945438"], ["updated_at", "2018-04-27 06:35:24.945438"]]
2547
+  (0.6ms) commit transaction
2548
+  (0.0ms) begin transaction
2549
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle7"], ["sequence", 7], ["created_at", "2018-04-27 06:35:24.948321"], ["updated_at", "2018-04-27 06:35:24.948321"]]
2550
+  (1.1ms) commit transaction
2551
+  (0.5ms) begin transaction
2552
+ SQL (0.5ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle8"], ["sequence", 8], ["created_at", "2018-04-27 06:35:24.951235"], ["updated_at", "2018-04-27 06:35:24.951235"]]
2553
+  (0.7ms) commit transaction
2554
+  (0.0ms) begin transaction
2555
+ SQL (0.2ms) INSERT INTO "sequenced_items" ("title", "sequence", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "OtherTitle9"], ["sequence", 9], ["created_at", "2018-04-27 06:35:24.953896"], ["updated_at", "2018-04-27 06:35:24.953896"]]
2556
+  (0.8ms) commit transaction
2557
+ SQL (1.3ms) DELETE FROM "first_items"
2558
+  (0.0ms) begin transaction
2559
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle0"], ["sort", 0], ["created_at", "2018-04-27 06:35:24.965491"], ["updated_at", "2018-04-27 06:35:24.965491"]]
2560
+  (0.8ms) commit transaction
2561
+  (0.1ms) begin transaction
2562
+ SQL (0.3ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle1"], ["sort", 1], ["created_at", "2018-04-27 06:35:24.967985"], ["updated_at", "2018-04-27 06:35:24.967985"]]
2563
+  (1.2ms) commit transaction
2564
+  (0.4ms) begin transaction
2565
+ SQL (0.4ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle2"], ["sort", 2], ["created_at", "2018-04-27 06:35:24.971663"], ["updated_at", "2018-04-27 06:35:24.971663"]]
2566
+  (1.0ms) commit transaction
2567
+  (0.0ms) begin transaction
2568
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle3"], ["sort", 3], ["created_at", "2018-04-27 06:35:24.974507"], ["updated_at", "2018-04-27 06:35:24.974507"]]
2569
+  (1.2ms) commit transaction
2570
+  (0.0ms) begin transaction
2571
+ SQL (0.2ms) INSERT INTO "first_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "FirstTitle4"], ["sort", 4], ["created_at", "2018-04-27 06:35:24.977291"], ["updated_at", "2018-04-27 06:35:24.977291"]]
2572
+  (1.2ms) commit transaction
2573
+ SQL (1.0ms) DELETE FROM "second_items"
2574
+  (0.0ms) begin transaction
2575
+ SQL (0.2ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle5"], ["sort", 5], ["created_at", "2018-04-27 06:35:24.990332"], ["updated_at", "2018-04-27 06:35:24.990332"]]
2576
+  (1.1ms) commit transaction
2577
+  (0.1ms) begin transaction
2578
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle6"], ["sort", 6], ["created_at", "2018-04-27 06:35:24.992743"], ["updated_at", "2018-04-27 06:35:24.992743"]]
2579
+  (0.7ms) commit transaction
2580
+  (0.1ms) begin transaction
2581
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle7"], ["sort", 7], ["created_at", "2018-04-27 06:35:24.994742"], ["updated_at", "2018-04-27 06:35:24.994742"]]
2582
+  (1.1ms) commit transaction
2583
+  (0.1ms) begin transaction
2584
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle8"], ["sort", 8], ["created_at", "2018-04-27 06:35:24.997287"], ["updated_at", "2018-04-27 06:35:24.997287"]]
2585
+  (1.2ms) commit transaction
2586
+  (0.0ms) begin transaction
2587
+ SQL (0.3ms) INSERT INTO "second_items" ("title", "sort", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "SecondTitle9"], ["sort", 9], ["created_at", "2018-04-27 06:35:25.000088"], ["updated_at", "2018-04-27 06:35:25.000088"]]
2588
+  (0.6ms) commit transaction
2589
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:35:25 +0900
2590
+ Processing by MultipleClassesController#index as HTML
2591
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2592
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2593
+ Rendering multiple_classes/index.html.erb within layouts/application
2594
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2595
+ Completed 200 OK in 28ms (Views: 25.3ms | ActiveRecord: 0.3ms)
2596
+
2597
+
2598
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:36:03 +0900
2599
+ Processing by MultipleClassesController#index as HTML
2600
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2601
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2602
+ Completed 500 Internal Server Error in 17ms (ActiveRecord: 1.7ms)
2603
+
2604
+
2605
+
2606
+ ArgumentError (wrong number of arguments (given 1, expected 0)):
2607
+
2608
+ app/controllers/multiple_classes_controller.rb:4:in `sort'
2609
+ app/controllers/multiple_classes_controller.rb:4:in `index'
2610
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:36:15 +0900
2611
+ Processing by MultipleClassesController#index as HTML
2612
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2613
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2614
+ Rendering multiple_classes/index.html.erb within layouts/application
2615
+ Rendered multiple_classes/index.html.erb within layouts/application (3.0ms)
2616
+ Completed 500 Internal Server Error in 23ms (ActiveRecord: 1.2ms)
2617
+
2618
+
2619
+
2620
+ ActionView::Template::Error (undefined method `sortable_id' for #<Array:0x00007fbdc2ac4478>):
2621
+ 13: </thead>
2622
+ 14:
2623
+ 15: <tbody class="sortable-multiple-classes">
2624
+ 16: <% @items.each_with_sortable_id do |item, sortable_id| %>
2625
+ 17: <tr id="<%= sortable_id %>">
2626
+ 18: <td><%= item.title %></td>
2627
+ 19: <td><%= item.sort %></td>
2628
+
2629
+ app/views/multiple_classes/index.html.erb:16:in `_app_views_multiple_classes_index_html_erb___2930206086772843472_70226489891380'
2630
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:36:52 +0900
2631
+ Processing by MultipleClassesController#index as HTML
2632
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2633
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2634
+ Rendering multiple_classes/index.html.erb within layouts/application
2635
+ Rendered multiple_classes/index.html.erb within layouts/application (2.4ms)
2636
+ Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.3ms)
2637
+
2638
+
2639
+
2640
+ ActionView::Template::Error (undefined method `sortable_id' for #<Array:0x00007fbdbe7d87b8>):
2641
+ 14:
2642
+ 15: <tbody class="sortable-multiple-classes">
2643
+ 16: <% @items.each do |item| %>
2644
+ 17: <tr id="<%= item.sortable_id %>">
2645
+ 18: <td><%= item.title %></td>
2646
+ 19: <td><%= item.sort %></td>
2647
+ 20: <td><%= item.updated_at %></td>
2648
+
2649
+ app/views/multiple_classes/index.html.erb:17:in `block in _app_views_multiple_classes_index_html_erb___2930206086772843472_70226450799420'
2650
+ app/views/multiple_classes/index.html.erb:16:in `each'
2651
+ app/views/multiple_classes/index.html.erb:16:in `_app_views_multiple_classes_index_html_erb___2930206086772843472_70226450799420'
2652
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:37:14 +0900
2653
+ Processing by MultipleClassesController#index as HTML
2654
+ FirstItem Load (0.4ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2655
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2656
+ Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.7ms)
2657
+
2658
+
2659
+
2660
+ ArgumentError (wrong number of arguments (given 1, expected 0)):
2661
+
2662
+ app/controllers/multiple_classes_controller.rb:4:in `sort'
2663
+ app/controllers/multiple_classes_controller.rb:4:in `index'
2664
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:38:00 +0900
2665
+ Processing by MultipleClassesController#index as HTML
2666
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2667
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2668
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.2ms)
2669
+
2670
+
2671
+
2672
+ ArgumentError (wrong number of arguments (given 1, expected 0)):
2673
+
2674
+ app/controllers/multiple_classes_controller.rb:4:in `sort_by'
2675
+ app/controllers/multiple_classes_controller.rb:4:in `index'
2676
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:38:35 +0900
2677
+ Processing by MultipleClassesController#index as HTML
2678
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2679
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2680
+ Rendering multiple_classes/index.html.erb within layouts/application
2681
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2682
+ Completed 200 OK in 35ms (Views: 22.5ms | ActiveRecord: 1.2ms)
2683
+
2684
+
2685
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:30 +0900
2686
+ Processing by SortableController#reorder as */*
2687
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["26", "22", "23", "24", "25"], "SecondItem"=>["21", "22", "23", "24", "25"]}}
2688
+  (0.1ms) begin transaction
2689
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (26, 22, 23, 24, 25) ORDER BY "first_items"."sort" ASC
2690
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 06:42:30.294474"], ["id", 26]]
2691
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 06:42:30.295489"], ["id", 22]]
2692
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 06:42:30.296074"], ["id", 23]]
2693
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 06:42:30.296639"], ["id", 24]]
2694
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 06:42:30.297177"], ["id", 25]]
2695
+  (2.0ms) commit transaction
2696
+ Completed 200 OK in 9ms (ActiveRecord: 2.7ms)
2697
+
2698
+
2699
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:42:31 +0900
2700
+ Processing by MultipleClassesController#index as HTML
2701
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2702
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2703
+ Rendering multiple_classes/index.html.erb within layouts/application
2704
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2705
+ Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.3ms)
2706
+
2707
+
2708
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:34 +0900
2709
+ Processing by SortableController#reorder as */*
2710
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["22", "26", "23", "24", "25"], "SecondItem"=>["21", "22", "23", "24", "25"]}}
2711
+  (0.1ms) begin transaction
2712
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (22, 26, 23, 24, 25) ORDER BY "first_items"."sort" ASC
2713
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 06:42:34.509144"], ["id", 22]]
2714
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 06:42:34.510096"], ["id", 26]]
2715
+  (2.1ms) commit transaction
2716
+ Completed 200 OK in 6ms (ActiveRecord: 2.5ms)
2717
+
2718
+
2719
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:42:36 +0900
2720
+ Processing by MultipleClassesController#index as HTML
2721
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2722
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2723
+ Rendering multiple_classes/index.html.erb within layouts/application
2724
+ Rendered multiple_classes/index.html.erb within layouts/application (1.2ms)
2725
+ Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.3ms)
2726
+
2727
+
2728
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:38 +0900
2729
+ Processing by SortableController#reorder as */*
2730
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["22", "23", "24", "25", "26"], "SecondItem"=>["21", "22", "23", "24", "25"]}}
2731
+  (0.0ms) begin transaction
2732
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (22, 23, 24, 25, 26) ORDER BY "first_items"."sort" ASC
2733
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 06:42:38.401863"], ["id", 23]]
2734
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 06:42:38.402602"], ["id", 24]]
2735
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 06:42:38.403522"], ["id", 25]]
2736
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 06:42:38.409159"], ["id", 26]]
2737
+  (2.2ms) commit transaction
2738
+ Completed 200 OK in 13ms (ActiveRecord: 2.9ms)
2739
+
2740
+
2741
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:42:39 +0900
2742
+ Processing by MultipleClassesController#index as HTML
2743
+ FirstItem Load (0.3ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2744
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2745
+ Rendering multiple_classes/index.html.erb within layouts/application
2746
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2747
+ Completed 200 OK in 28ms (Views: 23.8ms | ActiveRecord: 0.4ms)
2748
+
2749
+
2750
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:44 +0900
2751
+ Processing by SortableController#reorder as */*
2752
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["22", "23", "24", "25", "26"], "SecondItem"=>["25", "21", "22", "23", "24"]}}
2753
+  (0.0ms) begin transaction
2754
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (22, 23, 24, 25, 26) ORDER BY "first_items"."sort" ASC
2755
+  (0.0ms) commit transaction
2756
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2757
+
2758
+
2759
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:42:45 +0900
2760
+ Processing by MultipleClassesController#index as HTML
2761
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2762
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2763
+ Rendering multiple_classes/index.html.erb within layouts/application
2764
+ Rendered multiple_classes/index.html.erb within layouts/application (1.0ms)
2765
+ Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.2ms)
2766
+
2767
+
2768
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:49 +0900
2769
+ Processing by SortableController#reorder as */*
2770
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["22", "23", "24", "25", "26"], "SecondItem"=>["24", "21", "22", "23", "25"]}}
2771
+  (0.1ms) begin transaction
2772
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (22, 23, 24, 25, 26) ORDER BY "first_items"."sort" ASC
2773
+  (0.1ms) commit transaction
2774
+ Completed 200 OK in 3ms (ActiveRecord: 0.3ms)
2775
+
2776
+
2777
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:42:50 +0900
2778
+ Processing by MultipleClassesController#index as HTML
2779
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2780
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2781
+ Rendering multiple_classes/index.html.erb within layouts/application
2782
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2783
+ Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.3ms)
2784
+
2785
+
2786
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:42:58 +0900
2787
+ Processing by SortableController#reorder as */*
2788
+ Parameters: {"rails_sortable"=>{"FirstItem"=>["22", "23", "24", "25", "26"], "SecondItem"=>["25", "21", "22", "23", "24"]}}
2789
+  (0.1ms) begin transaction
2790
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" IN (22, 23, 24, 25, 26) ORDER BY "first_items"."sort" ASC
2791
+  (0.1ms) commit transaction
2792
+ Completed 200 OK in 2ms (ActiveRecord: 0.3ms)
2793
+
2794
+
2795
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:43:01 +0900
2796
+ Processing by MultipleClassesController#index as HTML
2797
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2798
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2799
+ Rendering multiple_classes/index.html.erb within layouts/application
2800
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2801
+ Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.3ms)
2802
+
2803
+
2804
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:49:38 +0900
2805
+ Processing by MultipleClassesController#index as HTML
2806
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2807
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2808
+ Rendering multiple_classes/index.html.erb within layouts/application
2809
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2810
+ Completed 200 OK in 84ms (Views: 70.4ms | ActiveRecord: 1.0ms)
2811
+
2812
+
2813
+ Started GET "/assets/plugin.self-4fabe587e5f6c5da678e7cee109858314a54508354004e06b02bf534ee4ee1d8.js?body=1" for ::1 at 2018-04-27 15:49:38 +0900
2814
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:50:39 +0900
2815
+ Processing by MultipleClassesController#index as HTML
2816
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2817
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2818
+ Rendering multiple_classes/index.html.erb within layouts/application
2819
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2820
+ Completed 200 OK in 78ms (Views: 74.1ms | ActiveRecord: 0.4ms)
2821
+
2822
+
2823
+ Started GET "/assets/plugin.self-9a8fce8e7273fc539135d08ac0433515a24f0ca5e5eb52a7de4719396229d042.js?body=1" for ::1 at 2018-04-27 15:50:39 +0900
2824
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:52:07 +0900
2825
+ Processing by MultipleClassesController#index as HTML
2826
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2827
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2828
+ Rendering multiple_classes/index.html.erb within layouts/application
2829
+ Rendered multiple_classes/index.html.erb within layouts/application (1.1ms)
2830
+ Completed 200 OK in 71ms (Views: 68.2ms | ActiveRecord: 0.2ms)
2831
+
2832
+
2833
+ Started GET "/assets/plugin.self-0ed26b738acdf16bf529666ec21e9e5899c63f25defe2a26898dc5ca00413278.js?body=1" for ::1 at 2018-04-27 15:52:07 +0900
2834
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:55:16 +0900
2835
+ Processing by MultipleClassesController#index as HTML
2836
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2837
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2838
+ Rendering multiple_classes/index.html.erb within layouts/application
2839
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2840
+ Completed 200 OK in 88ms (Views: 76.6ms | ActiveRecord: 1.0ms)
2841
+
2842
+
2843
+ Started GET "/assets/plugin.self-254d67c41a6cf711f5a396ab4fac31de5c72ca9bb073b2ba4229416a22fdee8c.js?body=1" for ::1 at 2018-04-27 15:55:16 +0900
2844
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:55:21 +0900
2845
+ Processing by SortableController#reorder as */*
2846
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
2847
+  (0.1ms) begin transaction
2848
+  (0.0ms) rollback transaction
2849
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
2850
+
2851
+
2852
+
2853
+ ArgumentError (wrong number of arguments (given 2, expected 0..1)):
2854
+
2855
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/logger.rb:492:in `debug'
2856
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:21:in `block (2 levels) in reorder'
2857
+ actionpack (5.1.4) lib/action_controller/metal/strong_parameters.rb:332:in `block in each_pair'
2858
+ actionpack (5.1.4) lib/action_controller/metal/strong_parameters.rb:331:in `each_pair'
2859
+ actionpack (5.1.4) lib/action_controller/metal/strong_parameters.rb:331:in `each_pair'
2860
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `block in reorder'
2861
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
2862
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
2863
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
2864
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
2865
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
2866
+ activerecord (5.1.4) lib/active_record/transactions.rb:210:in `transaction'
2867
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:19:in `reorder'
2868
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
2869
+ actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
2870
+ actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
2871
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2872
+ activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks'
2873
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
2874
+ actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
2875
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2876
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument'
2877
+ activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2878
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument'
2879
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2880
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
2881
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
2882
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
2883
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
2884
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
2885
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
2886
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
2887
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
2888
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
2889
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
2890
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
2891
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
2892
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
2893
+ rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
2894
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
2895
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
2896
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
2897
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
2898
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
2899
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
2900
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
2901
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
2902
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2903
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
2904
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
2905
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
2906
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
2907
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
2908
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
2909
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
2910
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
2911
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
2912
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
2913
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
2914
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
2915
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
2916
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
2917
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
2918
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
2919
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
2920
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
2921
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
2922
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
2923
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
2924
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:56:13 +0900
2925
+ Processing by MultipleClassesController#index as HTML
2926
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2927
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2928
+ Rendering multiple_classes/index.html.erb within layouts/application
2929
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2930
+ Completed 200 OK in 42ms (Views: 24.1ms | ActiveRecord: 1.3ms)
2931
+
2932
+
2933
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:56:16 +0900
2934
+ Processing by SortableController#reorder as */*
2935
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
2936
+  (0.1ms) begin transaction
2937
+ 0=
2938
+ 1=
2939
+ 2=
2940
+ 3=
2941
+ 4=
2942
+ 5=
2943
+ 6=
2944
+ 7=
2945
+ 8=
2946
+ 9=
2947
+  (0.1ms) commit transaction
2948
+ Completed 200 OK in 3ms (ActiveRecord: 0.1ms)
2949
+
2950
+
2951
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 15:57:59 +0900
2952
+ Processing by MultipleClassesController#index as HTML
2953
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2954
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2955
+ Rendering multiple_classes/index.html.erb within layouts/application
2956
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
2957
+ Completed 200 OK in 34ms (Views: 22.6ms | ActiveRecord: 1.0ms)
2958
+
2959
+
2960
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 15:58:01 +0900
2961
+ Processing by SortableController#reorder as */*
2962
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
2963
+  (0.1ms) begin transaction
2964
+ 0
2965
+ 1
2966
+ 2
2967
+ 3
2968
+ 4
2969
+ 5
2970
+ 6
2971
+ 7
2972
+ 8
2973
+ 9
2974
+  (0.1ms) commit transaction
2975
+ Completed 200 OK in 2ms (ActiveRecord: 0.2ms)
2976
+
2977
+
2978
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:00:38 +0900
2979
+ Processing by MultipleClassesController#index as HTML
2980
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
2981
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
2982
+ Rendering multiple_classes/index.html.erb within layouts/application
2983
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
2984
+ Completed 200 OK in 73ms (Views: 68.7ms | ActiveRecord: 0.3ms)
2985
+
2986
+
2987
+ Started GET "/assets/plugin.self-7c4ef12b34ec890255a1a692631f0cfd4f7098873ca5ee9f14dafab06f62fcbb.js?body=1" for ::1 at 2018-04-27 16:00:39 +0900
2988
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:00:41 +0900
2989
+ Processing by SortableController#reorder as JSON
2990
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
2991
+  (0.0ms) begin transaction
2992
+ 0
2993
+ 1
2994
+ 2
2995
+ 3
2996
+ 4
2997
+ 5
2998
+ 6
2999
+ 7
3000
+ 8
3001
+ 9
3002
+  (0.0ms) commit transaction
3003
+ Completed 200 OK in 1ms (ActiveRecord: 0.1ms)
3004
+
3005
+
3006
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:01:04 +0900
3007
+ Processing by MultipleClassesController#index as HTML
3008
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3009
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3010
+ Rendering multiple_classes/index.html.erb within layouts/application
3011
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
3012
+ Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 0.4ms)
3013
+
3014
+
3015
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:01:07 +0900
3016
+ Processing by SortableController#reorder as JSON
3017
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
3018
+  (0.1ms) begin transaction
3019
+ 0
3020
+ 1
3021
+ 2
3022
+ 3
3023
+ 4
3024
+ 5
3025
+ 6
3026
+ 7
3027
+ 8
3028
+ 9
3029
+  (0.1ms) commit transaction
3030
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3031
+
3032
+
3033
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:01:19 +0900
3034
+ Processing by MultipleClassesController#index as HTML
3035
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3036
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3037
+ Rendering multiple_classes/index.html.erb within layouts/application
3038
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3039
+ Completed 200 OK in 26ms (Views: 21.6ms | ActiveRecord: 0.4ms)
3040
+
3041
+
3042
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:01:22 +0900
3043
+ Processing by SortableController#reorder as */*
3044
+ Parameters: {"rails_sortable"=>{"0"=>{"klass"=>"SecondItem", "id"=>"25"}, "1"=>{"klass"=>"FirstItem", "id"=>"22"}, "2"=>{"klass"=>"FirstItem", "id"=>"23"}, "3"=>{"klass"=>"FirstItem", "id"=>"24"}, "4"=>{"klass"=>"FirstItem", "id"=>"25"}, "5"=>{"klass"=>"FirstItem", "id"=>"26"}, "6"=>{"klass"=>"SecondItem", "id"=>"21"}, "7"=>{"klass"=>"SecondItem", "id"=>"22"}, "8"=>{"klass"=>"SecondItem", "id"=>"23"}, "9"=>{"klass"=>"SecondItem", "id"=>"24"}}}
3045
+  (0.1ms) begin transaction
3046
+ 0
3047
+ 1
3048
+ 2
3049
+ 3
3050
+ 4
3051
+ 5
3052
+ 6
3053
+ 7
3054
+ 8
3055
+ 9
3056
+  (0.1ms) commit transaction
3057
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3058
+
3059
+
3060
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:05:06 +0900
3061
+ Processing by MultipleClassesController#index as HTML
3062
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3063
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3064
+ Rendering multiple_classes/index.html.erb within layouts/application
3065
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3066
+ Completed 200 OK in 77ms (Views: 74.5ms | ActiveRecord: 0.3ms)
3067
+
3068
+
3069
+ Started GET "/assets/plugin.self-a732a76e6d85c44c43f9059cf8b31643c836f4e798d0ca93296c2d416f68bf4f.js?body=1" for ::1 at 2018-04-27 16:05:07 +0900
3070
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:05:09 +0900
3071
+ Error occurred while parsing request parameters.
3072
+ Contents:
3073
+
3074
+ rails_sortable%5B0%5D%5Bklass%5D=SecondItem&rails_sortable%5B0%5D%5Bid%5D=25&rails_sortable%5B1%5D%5Bklass%5D=FirstItem&rails_sortable%5B1%5D%5Bid%5D=22&rails_sortable%5B2%5D%5Bklass%5D=FirstItem&rails_sortable%5B2%5D%5Bid%5D=23&rails_sortable%5B3%5D%5Bklass%5D=FirstItem&rails_sortable%5B3%5D%5Bid%5D=24&rails_sortable%5B4%5D%5Bklass%5D=FirstItem&rails_sortable%5B4%5D%5Bid%5D=25&rails_sortable%5B5%5D%5Bklass%5D=FirstItem&rails_sortable%5B5%5D%5Bid%5D=26&rails_sortable%5B6%5D%5Bklass%5D=SecondItem&rails_sortable%5B6%5D%5Bid%5D=21&rails_sortable%5B7%5D%5Bklass%5D=SecondItem&rails_sortable%5B7%5D%5Bid%5D=22&rails_sortable%5B8%5D%5Bklass%5D=SecondItem&rails_sortable%5B8%5D%5Bid%5D=23&rails_sortable%5B9%5D%5Bklass%5D=SecondItem&rails_sortable%5B9%5D%5Bid%5D=24
3075
+
3076
+ ActionDispatch::Http::Parameters::ParseError (765: unexpected token at 'rails_sortable%5B0%5D%5Bklass%5D=SecondItem&rails_sortable%5B0%5D%5Bid%5D=25&rails_sortable%5B1%5D%5Bklass%5D=FirstItem&rails_sortable%5B1%5D%5Bid%5D=22&rails_sortable%5B2%5D%5Bklass%5D=FirstItem&rails_sortable%5B2%5D%5Bid%5D=23&rails_sortable%5B3%5D%5Bklass%5D=FirstItem&rails_sortable%5B3%5D%5Bid%5D=24&rails_sortable%5B4%5D%5Bklass%5D=FirstItem&rails_sortable%5B4%5D%5Bid%5D=25&rails_sortable%5B5%5D%5Bklass%5D=FirstItem&rails_sortable%5B5%5D%5Bid%5D=26&rails_sortable%5B6%5D%5Bklass%5D=SecondItem&rails_sortable%5B6%5D%5Bid%5D=21&rails_sortable%5B7%5D%5Bklass%5D=SecondItem&rails_sortable%5B7%5D%5Bid%5D=22&rails_sortable%5B8%5D%5Bklass%5D=SecondItem&rails_sortable%5B8%5D%5Bid%5D=23&rails_sortable%5B9%5D%5Bklass%5D=SecondItem&rails_sortable%5B9%5D%5Bid%5D=24'):
3077
+
3078
+ actionpack (5.1.4) lib/action_dispatch/http/parameters.rb:115:in `rescue in parse_formatted_parameters'
3079
+ actionpack (5.1.4) lib/action_dispatch/http/parameters.rb:109:in `parse_formatted_parameters'
3080
+ actionpack (5.1.4) lib/action_dispatch/http/request.rb:361:in `block in POST'
3081
+ rack (2.0.3) lib/rack/request.rb:57:in `fetch'
3082
+ rack (2.0.3) lib/rack/request.rb:57:in `fetch_header'
3083
+ actionpack (5.1.4) lib/action_dispatch/http/request.rb:360:in `POST'
3084
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:286:in `_wrapper_enabled?'
3085
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:235:in `process_action'
3086
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
3087
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
3088
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
3089
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
3090
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
3091
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
3092
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
3093
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
3094
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
3095
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
3096
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
3097
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
3098
+ rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
3099
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
3100
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
3101
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
3102
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
3103
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
3104
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
3105
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
3106
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
3107
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3108
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
3109
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3110
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
3111
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
3112
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
3113
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
3114
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
3115
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
3116
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3117
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
3118
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
3119
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
3120
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
3121
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3122
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
3123
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
3124
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
3125
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
3126
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
3127
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
3128
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
3129
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:05:57 +0900
3130
+ Processing by MultipleClassesController#index as HTML
3131
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3132
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3133
+ Rendering multiple_classes/index.html.erb within layouts/application
3134
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3135
+ Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.3ms)
3136
+
3137
+
3138
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:05:59 +0900
3139
+ Error occurred while parsing request parameters.
3140
+ Contents:
3141
+
3142
+ rails_sortable%5B0%5D%5Bklass%5D=SecondItem&rails_sortable%5B0%5D%5Bid%5D=25&rails_sortable%5B1%5D%5Bklass%5D=FirstItem&rails_sortable%5B1%5D%5Bid%5D=22&rails_sortable%5B2%5D%5Bklass%5D=FirstItem&rails_sortable%5B2%5D%5Bid%5D=23&rails_sortable%5B3%5D%5Bklass%5D=FirstItem&rails_sortable%5B3%5D%5Bid%5D=24&rails_sortable%5B4%5D%5Bklass%5D=FirstItem&rails_sortable%5B4%5D%5Bid%5D=25&rails_sortable%5B5%5D%5Bklass%5D=FirstItem&rails_sortable%5B5%5D%5Bid%5D=26&rails_sortable%5B6%5D%5Bklass%5D=SecondItem&rails_sortable%5B6%5D%5Bid%5D=21&rails_sortable%5B7%5D%5Bklass%5D=SecondItem&rails_sortable%5B7%5D%5Bid%5D=22&rails_sortable%5B8%5D%5Bklass%5D=SecondItem&rails_sortable%5B8%5D%5Bid%5D=23&rails_sortable%5B9%5D%5Bklass%5D=SecondItem&rails_sortable%5B9%5D%5Bid%5D=24
3143
+
3144
+ ActionDispatch::Http::Parameters::ParseError (765: unexpected token at 'rails_sortable%5B0%5D%5Bklass%5D=SecondItem&rails_sortable%5B0%5D%5Bid%5D=25&rails_sortable%5B1%5D%5Bklass%5D=FirstItem&rails_sortable%5B1%5D%5Bid%5D=22&rails_sortable%5B2%5D%5Bklass%5D=FirstItem&rails_sortable%5B2%5D%5Bid%5D=23&rails_sortable%5B3%5D%5Bklass%5D=FirstItem&rails_sortable%5B3%5D%5Bid%5D=24&rails_sortable%5B4%5D%5Bklass%5D=FirstItem&rails_sortable%5B4%5D%5Bid%5D=25&rails_sortable%5B5%5D%5Bklass%5D=FirstItem&rails_sortable%5B5%5D%5Bid%5D=26&rails_sortable%5B6%5D%5Bklass%5D=SecondItem&rails_sortable%5B6%5D%5Bid%5D=21&rails_sortable%5B7%5D%5Bklass%5D=SecondItem&rails_sortable%5B7%5D%5Bid%5D=22&rails_sortable%5B8%5D%5Bklass%5D=SecondItem&rails_sortable%5B8%5D%5Bid%5D=23&rails_sortable%5B9%5D%5Bklass%5D=SecondItem&rails_sortable%5B9%5D%5Bid%5D=24'):
3145
+
3146
+ actionpack (5.1.4) lib/action_dispatch/http/parameters.rb:115:in `rescue in parse_formatted_parameters'
3147
+ actionpack (5.1.4) lib/action_dispatch/http/parameters.rb:109:in `parse_formatted_parameters'
3148
+ actionpack (5.1.4) lib/action_dispatch/http/request.rb:361:in `block in POST'
3149
+ rack (2.0.3) lib/rack/request.rb:57:in `fetch'
3150
+ rack (2.0.3) lib/rack/request.rb:57:in `fetch_header'
3151
+ actionpack (5.1.4) lib/action_dispatch/http/request.rb:360:in `POST'
3152
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:286:in `_wrapper_enabled?'
3153
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:235:in `process_action'
3154
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
3155
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
3156
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
3157
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
3158
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
3159
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
3160
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
3161
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
3162
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
3163
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
3164
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
3165
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
3166
+ rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
3167
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
3168
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
3169
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
3170
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
3171
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
3172
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
3173
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
3174
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
3175
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3176
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
3177
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3178
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
3179
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
3180
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
3181
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
3182
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
3183
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
3184
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3185
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
3186
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
3187
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
3188
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
3189
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3190
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
3191
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
3192
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
3193
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
3194
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
3195
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
3196
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
3197
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:07:00 +0900
3198
+ Processing by MultipleClassesController#index as HTML
3199
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3200
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3201
+ Rendering multiple_classes/index.html.erb within layouts/application
3202
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
3203
+ Completed 200 OK in 73ms (Views: 69.7ms | ActiveRecord: 0.2ms)
3204
+
3205
+
3206
+ Started GET "/assets/plugin.self-3eef75928b956f91555e372d9019d6bd833fc6f31e963e80411c391713839e45.js?body=1" for ::1 at 2018-04-27 16:07:00 +0900
3207
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:07:03 +0900
3208
+ Processing by SortableController#reorder as JSON
3209
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3210
+  (0.0ms) begin transaction
3211
+ {"klass"=>"SecondItem", "id"=>"25"}
3212
+ {"klass"=>"FirstItem", "id"=>"22"}
3213
+ {"klass"=>"FirstItem", "id"=>"23"}
3214
+ {"klass"=>"FirstItem", "id"=>"24"}
3215
+ {"klass"=>"FirstItem", "id"=>"25"}
3216
+ {"klass"=>"FirstItem", "id"=>"26"}
3217
+ {"klass"=>"SecondItem", "id"=>"21"}
3218
+ {"klass"=>"SecondItem", "id"=>"22"}
3219
+ {"klass"=>"SecondItem", "id"=>"23"}
3220
+ {"klass"=>"SecondItem", "id"=>"24"}
3221
+  (0.0ms) commit transaction
3222
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3223
+
3224
+
3225
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:08:02 +0900
3226
+ Processing by MultipleClassesController#index as HTML
3227
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3228
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3229
+ Rendering multiple_classes/index.html.erb within layouts/application
3230
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3231
+ Completed 200 OK in 35ms (Views: 21.1ms | ActiveRecord: 1.1ms)
3232
+
3233
+
3234
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:08:04 +0900
3235
+ Processing by SortableController#reorder as JSON
3236
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3237
+  (0.0ms) begin transaction
3238
+ SecondItem
3239
+ 25
3240
+ FirstItem
3241
+ 22
3242
+ FirstItem
3243
+ 23
3244
+ FirstItem
3245
+ 24
3246
+ FirstItem
3247
+ 25
3248
+ FirstItem
3249
+ 26
3250
+ SecondItem
3251
+ 21
3252
+ SecondItem
3253
+ 22
3254
+ SecondItem
3255
+ 23
3256
+ SecondItem
3257
+ 24
3258
+  (0.0ms) commit transaction
3259
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3260
+
3261
+
3262
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:09:40 +0900
3263
+ Processing by MultipleClassesController#index as HTML
3264
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3265
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3266
+ Rendering multiple_classes/index.html.erb within layouts/application
3267
+ Rendered multiple_classes/index.html.erb within layouts/application (1.0ms)
3268
+ Completed 200 OK in 36ms (Views: 23.8ms | ActiveRecord: 1.2ms)
3269
+
3270
+
3271
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:09:42 +0900
3272
+ Processing by SortableController#reorder as JSON
3273
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3274
+  (0.0ms) begin transaction
3275
+ SecondItem=25
3276
+ FirstItem=22
3277
+ FirstItem=23
3278
+ FirstItem=24
3279
+ FirstItem=25
3280
+ FirstItem=26
3281
+ SecondItem=21
3282
+ SecondItem=22
3283
+ SecondItem=23
3284
+ SecondItem=24
3285
+  (0.0ms) commit transaction
3286
+ Completed 200 OK in 2ms (ActiveRecord: 0.1ms)
3287
+
3288
+
3289
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:13:27 +0900
3290
+ Processing by MultipleClassesController#index as HTML
3291
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3292
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3293
+ Rendering multiple_classes/index.html.erb within layouts/application
3294
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3295
+ Completed 200 OK in 34ms (Views: 21.6ms | ActiveRecord: 1.0ms)
3296
+
3297
+
3298
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:13:35 +0900
3299
+ Processing by SortableController#reorder as JSON
3300
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3301
+  (0.0ms) begin transaction
3302
+  (0.0ms) rollback transaction
3303
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
3304
+
3305
+
3306
+
3307
+ NoMethodError (undefined method `find' for "SecondItem":String):
3308
+
3309
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:22:in `block (2 levels) in reorder'
3310
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `each'
3311
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `each_with_index'
3312
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `block in reorder'
3313
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
3314
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
3315
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
3316
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
3317
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
3318
+ activerecord (5.1.4) lib/active_record/transactions.rb:210:in `transaction'
3319
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:19:in `reorder'
3320
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
3321
+ actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
3322
+ actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
3323
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3324
+ activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks'
3325
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
3326
+ actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
3327
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
3328
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument'
3329
+ activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
3330
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument'
3331
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3332
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
3333
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
3334
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
3335
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
3336
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
3337
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
3338
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
3339
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
3340
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
3341
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
3342
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
3343
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
3344
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
3345
+ rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
3346
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
3347
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
3348
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
3349
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
3350
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
3351
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
3352
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
3353
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
3354
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3355
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
3356
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3357
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
3358
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
3359
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
3360
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
3361
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
3362
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
3363
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3364
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
3365
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
3366
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
3367
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
3368
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3369
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
3370
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
3371
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
3372
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
3373
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
3374
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
3375
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
3376
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:13:54 +0900
3377
+ Processing by MultipleClassesController#index as HTML
3378
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3379
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3380
+ Rendering multiple_classes/index.html.erb within layouts/application
3381
+ Rendered multiple_classes/index.html.erb within layouts/application (1.0ms)
3382
+ Completed 200 OK in 37ms (Views: 23.4ms | ActiveRecord: 1.4ms)
3383
+
3384
+
3385
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:13:56 +0900
3386
+ Processing by SortableController#reorder as JSON
3387
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3388
+  (0.0ms) begin transaction
3389
+  (0.0ms) rollback transaction
3390
+ Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms)
3391
+
3392
+
3393
+
3394
+ NoMethodError (undefined method `find' for "SecondItem":String):
3395
+
3396
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:22:in `block (2 levels) in reorder'
3397
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `each'
3398
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `each_with_index'
3399
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:20:in `block in reorder'
3400
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `block in transaction'
3401
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:194:in `block in within_new_transaction'
3402
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
3403
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/transaction.rb:191:in `within_new_transaction'
3404
+ activerecord (5.1.4) lib/active_record/connection_adapters/abstract/database_statements.rb:235:in `transaction'
3405
+ activerecord (5.1.4) lib/active_record/transactions.rb:210:in `transaction'
3406
+ /Users/madmax/Programs/itmammoth/rails_sortable/app/controllers/sortable_controller.rb:19:in `reorder'
3407
+ actionpack (5.1.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
3408
+ actionpack (5.1.4) lib/abstract_controller/base.rb:186:in `process_action'
3409
+ actionpack (5.1.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
3410
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3411
+ activesupport (5.1.4) lib/active_support/callbacks.rb:131:in `run_callbacks'
3412
+ actionpack (5.1.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
3413
+ actionpack (5.1.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
3414
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
3415
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `block in instrument'
3416
+ activesupport (5.1.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
3417
+ activesupport (5.1.4) lib/active_support/notifications.rb:166:in `instrument'
3418
+ actionpack (5.1.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3419
+ actionpack (5.1.4) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
3420
+ activerecord (5.1.4) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
3421
+ actionpack (5.1.4) lib/abstract_controller/base.rb:124:in `process'
3422
+ actionview (5.1.4) lib/action_view/rendering.rb:30:in `process'
3423
+ actionpack (5.1.4) lib/action_controller/metal.rb:189:in `dispatch'
3424
+ actionpack (5.1.4) lib/action_controller/metal.rb:253:in `dispatch'
3425
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
3426
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:31:in `serve'
3427
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:50:in `block in serve'
3428
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `each'
3429
+ actionpack (5.1.4) lib/action_dispatch/journey/router.rb:33:in `serve'
3430
+ actionpack (5.1.4) lib/action_dispatch/routing/route_set.rb:834:in `call'
3431
+ rack (2.0.3) lib/rack/etag.rb:25:in `call'
3432
+ rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
3433
+ rack (2.0.3) lib/rack/head.rb:12:in `call'
3434
+ rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
3435
+ rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
3436
+ actionpack (5.1.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
3437
+ activerecord (5.1.4) lib/active_record/migration.rb:556:in `call'
3438
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
3439
+ activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
3440
+ actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
3441
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3442
+ actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
3443
+ actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3444
+ railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
3445
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
3446
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
3447
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
3448
+ activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
3449
+ railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
3450
+ actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3451
+ actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
3452
+ rack (2.0.3) lib/rack/method_override.rb:22:in `call'
3453
+ rack (2.0.3) lib/rack/runtime.rb:22:in `call'
3454
+ activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
3455
+ actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
3456
+ actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
3457
+ rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
3458
+ railties (5.1.4) lib/rails/engine.rb:522:in `call'
3459
+ rack (2.0.3) lib/rack/handler/webrick.rb:86:in `service'
3460
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:140:in `service'
3461
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/httpserver.rb:96:in `run'
3462
+ /Users/madmax/.rbenv/versions/2.5.0/lib/ruby/2.5.0/webrick/server.rb:307:in `block in start_thread'
3463
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:16:10 +0900
3464
+ Processing by MultipleClassesController#index as HTML
3465
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3466
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3467
+ Rendering multiple_classes/index.html.erb within layouts/application
3468
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
3469
+ Completed 200 OK in 42ms (Views: 30.1ms | ActiveRecord: 1.0ms)
3470
+
3471
+
3472
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:16:13 +0900
3473
+ Processing by SortableController#reorder as JSON
3474
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3475
+  (0.1ms) begin transaction
3476
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3477
+ #<SecondItem:0x00007fbdbdb4a848>
3478
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3479
+ #<FirstItem:0x00007fbdbd398d48>
3480
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3481
+ #<FirstItem:0x00007fbdbd3610c8>
3482
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3483
+ #<FirstItem:0x00007fbdbed66b80>
3484
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3485
+ #<FirstItem:0x00007fbdbed16f18>
3486
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3487
+ #<FirstItem:0x00007fbdbecd6170>
3488
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3489
+ #<SecondItem:0x00007fbdbec974c0>
3490
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3491
+ #<SecondItem:0x00007fbdbec641b0>
3492
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3493
+ #<SecondItem:0x00007fbdbec2c4b8>
3494
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3495
+ #<SecondItem:0x00007fbdbebf6c78>
3496
+  (0.0ms) commit transaction
3497
+ Completed 200 OK in 9ms (ActiveRecord: 1.0ms)
3498
+
3499
+
3500
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:18:56 +0900
3501
+ Processing by MultipleClassesController#index as HTML
3502
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3503
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3504
+ Rendering multiple_classes/index.html.erb within layouts/application
3505
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
3506
+ Completed 200 OK in 32ms (Views: 20.1ms | ActiveRecord: 1.0ms)
3507
+
3508
+
3509
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:19:01 +0900
3510
+ Processing by SortableController#reorder as JSON
3511
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3512
+  (0.0ms) begin transaction
3513
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3514
+ SQL (0.3ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:19:01.835070"], ["id", 25]]
3515
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3516
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:19:01.837564"], ["id", 22]]
3517
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3518
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:19:01.839862"], ["id", 23]]
3519
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3520
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:19:01.841187"], ["id", 24]]
3521
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3522
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:19:01.842275"], ["id", 25]]
3523
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3524
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:19:01.843420"], ["id", 26]]
3525
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3526
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:19:01.845713"], ["id", 21]]
3527
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3528
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:19:01.848780"], ["id", 22]]
3529
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3530
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:19:01.850289"], ["id", 23]]
3531
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3532
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:19:01.851335"], ["id", 24]]
3533
+  (2.2ms) commit transaction
3534
+ Completed 200 OK in 21ms (ActiveRecord: 4.4ms)
3535
+
3536
+
3537
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:19:06 +0900
3538
+ Processing by MultipleClassesController#index as HTML
3539
+ FirstItem Load (0.4ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3540
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3541
+ Rendering multiple_classes/index.html.erb within layouts/application
3542
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3543
+ Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.5ms)
3544
+
3545
+
3546
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:19:12 +0900
3547
+ Processing by SortableController#reorder as JSON
3548
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3549
+  (0.0ms) begin transaction
3550
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3551
+ SQL (0.4ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:19:12.398094"], ["id", 22]]
3552
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3553
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:19:12.400594"], ["id", 23]]
3554
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3555
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:19:12.402346"], ["id", 24]]
3556
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3557
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:19:12.405426"], ["id", 25]]
3558
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3559
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:19:12.406793"], ["id", 26]]
3560
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3561
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:19:12.407935"], ["id", 21]]
3562
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3563
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:19:12.409249"], ["id", 22]]
3564
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3565
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:19:12.411474"], ["id", 23]]
3566
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3567
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:19:12.413118"], ["id", 24]]
3568
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3569
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:19:12.414211"], ["id", 25]]
3570
+  (0.9ms) commit transaction
3571
+ Completed 200 OK in 20ms (ActiveRecord: 3.1ms)
3572
+
3573
+
3574
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:19:15 +0900
3575
+ Processing by MultipleClassesController#index as HTML
3576
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3577
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3578
+ Rendering multiple_classes/index.html.erb within layouts/application
3579
+ Rendered multiple_classes/index.html.erb within layouts/application (1.5ms)
3580
+ Completed 200 OK in 26ms (Views: 23.1ms | ActiveRecord: 0.3ms)
3581
+
3582
+
3583
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:19:19 +0900
3584
+ Processing by SortableController#reorder as JSON
3585
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3586
+  (0.1ms) begin transaction
3587
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3588
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:19:19.193183"], ["id", 23]]
3589
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3590
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:19:19.195182"], ["id", 22]]
3591
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3592
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3593
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3594
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3595
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3596
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3597
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3598
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3599
+  (2.2ms) commit transaction
3600
+ Completed 200 OK in 12ms (ActiveRecord: 3.3ms)
3601
+
3602
+
3603
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:19:39 +0900
3604
+ Processing by MultipleClassesController#index as HTML
3605
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3606
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3607
+ Rendering multiple_classes/index.html.erb within layouts/application
3608
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3609
+ Completed 200 OK in 27ms (Views: 22.2ms | ActiveRecord: 0.4ms)
3610
+
3611
+
3612
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:19:41 +0900
3613
+ Processing by SortableController#reorder as JSON
3614
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3615
+  (0.1ms) begin transaction
3616
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3617
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:19:41.747228"], ["id", 22]]
3618
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3619
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:19:41.748634"], ["id", 23]]
3620
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3621
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3622
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3623
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3624
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3625
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3626
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3627
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3628
+  (0.9ms) commit transaction
3629
+ Completed 200 OK in 9ms (ActiveRecord: 1.9ms)
3630
+
3631
+
3632
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:19:42 +0900
3633
+ Processing by MultipleClassesController#index as HTML
3634
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3635
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3636
+ Rendering multiple_classes/index.html.erb within layouts/application
3637
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3638
+ Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.3ms)
3639
+
3640
+
3641
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:32:34 +0900
3642
+ Processing by MultipleClassesController#index as HTML
3643
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3644
+ SecondItem Load (0.4ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3645
+ Rendering multiple_classes/index.html.erb within layouts/application
3646
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
3647
+ Completed 200 OK in 56ms (Views: 34.4ms | ActiveRecord: 2.2ms)
3648
+
3649
+
3650
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:32:38 +0900
3651
+ Processing by SortableController#reorder as JSON
3652
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3653
+  (0.1ms) begin transaction
3654
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3655
+ SQL (0.3ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:32:38.359065"], ["id", 25]]
3656
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3657
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:32:38.361495"], ["id", 22]]
3658
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3659
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:32:38.363019"], ["id", 23]]
3660
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3661
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:32:38.364829"], ["id", 24]]
3662
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3663
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:32:38.366413"], ["id", 25]]
3664
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3665
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:32:38.368898"], ["id", 26]]
3666
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3667
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:32:38.371147"], ["id", 21]]
3668
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3669
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:32:38.372530"], ["id", 22]]
3670
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3671
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:32:38.374705"], ["id", 23]]
3672
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3673
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:32:38.375756"], ["id", 24]]
3674
+  (2.4ms) commit transaction
3675
+ Completed 200 OK in 25ms (ActiveRecord: 4.4ms)
3676
+
3677
+
3678
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:32:41 +0900
3679
+ Processing by SortableController#reorder as JSON
3680
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3681
+  (0.0ms) begin transaction
3682
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3683
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3684
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3685
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3686
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3687
+ SQL (0.5ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:32:41.169498"], ["id", 21]]
3688
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3689
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:32:41.173107"], ["id", 25]]
3690
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3691
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:32:41.174688"], ["id", 26]]
3692
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3693
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3694
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3695
+  (1.9ms) commit transaction
3696
+ Completed 200 OK in 16ms (ActiveRecord: 3.8ms)
3697
+
3698
+
3699
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:32:42 +0900
3700
+ Processing by MultipleClassesController#index as HTML
3701
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3702
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3703
+ Rendering multiple_classes/index.html.erb within layouts/application
3704
+ Rendered multiple_classes/index.html.erb within layouts/application (0.7ms)
3705
+ Completed 200 OK in 25ms (Views: 22.1ms | ActiveRecord: 0.3ms)
3706
+
3707
+
3708
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:32:45 +0900
3709
+ Processing by SortableController#reorder as JSON
3710
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3711
+  (0.1ms) begin transaction
3712
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3713
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:32:45.891577"], ["id", 22]]
3714
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3715
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:32:45.893461"], ["id", 23]]
3716
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3717
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:32:45.894819"], ["id", 24]]
3718
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3719
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:32:45.896502"], ["id", 21]]
3720
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3721
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:32:45.897803"], ["id", 25]]
3722
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3723
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:32:45.899093"], ["id", 26]]
3724
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3725
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:32:45.900318"], ["id", 22]]
3726
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3727
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:32:45.901626"], ["id", 23]]
3728
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3729
+ SQL (0.3ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:32:45.903629"], ["id", 24]]
3730
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3731
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:32:45.907312"], ["id", 25]]
3732
+  (1.9ms) commit transaction
3733
+ Completed 200 OK in 21ms (ActiveRecord: 4.1ms)
3734
+
3735
+
3736
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:32:48 +0900
3737
+ Processing by SortableController#reorder as JSON
3738
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3739
+  (0.1ms) begin transaction
3740
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3741
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3742
+ FirstItem Load (0.5ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3743
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3744
+ SQL (0.3ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:32:48.638039"], ["id", 25]]
3745
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3746
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:32:48.640157"], ["id", 26]]
3747
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3748
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:32:48.641911"], ["id", 21]]
3749
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3750
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3751
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3752
+ SecondItem Load (0.0ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3753
+  (2.0ms) commit transaction
3754
+ Completed 200 OK in 15ms (ActiveRecord: 4.1ms)
3755
+
3756
+
3757
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:32:49 +0900
3758
+ Processing by MultipleClassesController#index as HTML
3759
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3760
+ SecondItem Load (0.2ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3761
+ Rendering multiple_classes/index.html.erb within layouts/application
3762
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
3763
+ Completed 200 OK in 31ms (Views: 26.9ms | ActiveRecord: 0.3ms)
3764
+
3765
+
3766
+ Started GET "/items/" for ::1 at 2018-04-27 16:32:57 +0900
3767
+ Processing by ItemsController#index as HTML
3768
+ Rendering items/index.html.erb within layouts/application
3769
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
3770
+ Rendered items/index.html.erb within layouts/application (6.3ms)
3771
+ Completed 200 OK in 35ms (Views: 31.9ms | ActiveRecord: 0.5ms)
3772
+
3773
+
3774
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:32:59 +0900
3775
+ Processing by SortableController#reorder as JSON
3776
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"50"}, {"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}]}}
3777
+  (0.1ms) begin transaction
3778
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
3779
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:32:59.823768"], ["id", 50]]
3780
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
3781
+ SQL (0.3ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:32:59.826281"], ["id", 41]]
3782
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
3783
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:32:59.828884"], ["id", 42]]
3784
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
3785
+ SQL (0.2ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:32:59.832894"], ["id", 43]]
3786
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
3787
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:32:59.838384"], ["id", 44]]
3788
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
3789
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:32:59.839597"], ["id", 45]]
3790
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
3791
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:32:59.840700"], ["id", 46]]
3792
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
3793
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:32:59.841735"], ["id", 47]]
3794
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
3795
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:32:59.842767"], ["id", 48]]
3796
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
3797
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:32:59.846556"], ["id", 49]]
3798
+  (2.5ms) commit transaction
3799
+ Completed 200 OK in 29ms (ActiveRecord: 5.0ms)
3800
+
3801
+
3802
+ Started GET "/items/" for ::1 at 2018-04-27 16:33:00 +0900
3803
+ Processing by ItemsController#index as HTML
3804
+ Rendering items/index.html.erb within layouts/application
3805
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
3806
+ Rendered items/index.html.erb within layouts/application (3.0ms)
3807
+ Completed 200 OK in 28ms (Views: 26.5ms | ActiveRecord: 0.2ms)
3808
+
3809
+
3810
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:33:03 +0900
3811
+ Processing by SortableController#reorder as JSON
3812
+ Parameters: {"rails_sortable"=>[{"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"50"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"Item", "id"=>"41"}, {"klass"=>"Item", "id"=>"42"}, {"klass"=>"Item", "id"=>"43"}, {"klass"=>"Item", "id"=>"44"}, {"klass"=>"Item", "id"=>"45"}, {"klass"=>"Item", "id"=>"46"}, {"klass"=>"Item", "id"=>"47"}, {"klass"=>"Item", "id"=>"48"}, {"klass"=>"Item", "id"=>"49"}, {"klass"=>"Item", "id"=>"50"}]}}
3813
+  (0.1ms) begin transaction
3814
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 41], ["LIMIT", 1]]
3815
+ SQL (0.4ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:33:03.139382"], ["id", 41]]
3816
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 42], ["LIMIT", 1]]
3817
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:33:03.142149"], ["id", 42]]
3818
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 43], ["LIMIT", 1]]
3819
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:33:03.143553"], ["id", 43]]
3820
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 44], ["LIMIT", 1]]
3821
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:33:03.144684"], ["id", 44]]
3822
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 45], ["LIMIT", 1]]
3823
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:33:03.145851"], ["id", 45]]
3824
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 46], ["LIMIT", 1]]
3825
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:33:03.146943"], ["id", 46]]
3826
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 47], ["LIMIT", 1]]
3827
+ SQL (0.0ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:33:03.148051"], ["id", 47]]
3828
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 48], ["LIMIT", 1]]
3829
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:33:03.149322"], ["id", 48]]
3830
+ Item Load (0.1ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 49], ["LIMIT", 1]]
3831
+ SQL (0.7ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:33:03.151508"], ["id", 49]]
3832
+ Item Load (0.2ms) SELECT "items".* FROM "items" WHERE "items"."id" = ? ORDER BY "items"."sort" ASC LIMIT ? [["id", 50], ["LIMIT", 1]]
3833
+ SQL (0.1ms) UPDATE "items" SET "sort" = ?, "updated_at" = ? WHERE "items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:33:03.155688"], ["id", 50]]
3834
+  (2.0ms) commit transaction
3835
+ Completed 200 OK in 22ms (ActiveRecord: 4.7ms)
3836
+
3837
+
3838
+ Started GET "/items/" for ::1 at 2018-04-27 16:33:04 +0900
3839
+ Processing by ItemsController#index as HTML
3840
+ Rendering items/index.html.erb within layouts/application
3841
+ Item Load (0.2ms) SELECT "items".* FROM "items" ORDER BY "items"."sort" ASC
3842
+ Rendered items/index.html.erb within layouts/application (3.2ms)
3843
+ Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.2ms)
3844
+
3845
+
3846
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:34:46 +0900
3847
+ Processing by MultipleClassesController#index as HTML
3848
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3849
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3850
+ Rendering multiple_classes/index.html.erb within layouts/application
3851
+ Rendered multiple_classes/index.html.erb within layouts/application (1.0ms)
3852
+ Completed 200 OK in 71ms (Views: 68.0ms | ActiveRecord: 0.3ms)
3853
+
3854
+
3855
+ Started GET "/assets/multiple_classes.self-2067c9767a82e028abdd6df637be3878c29c3df8b764de6d009c7cda1cc65761.js?body=1" for ::1 at 2018-04-27 16:34:47 +0900
3856
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:34:49 +0900
3857
+ Processing by SortableController#reorder as JSON
3858
+ Parameters: {"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"SecondItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}]}}
3859
+  (0.0ms) begin transaction
3860
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3861
+ SQL (0.2ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:34:49.831718"], ["id", 25]]
3862
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3863
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:34:49.833301"], ["id", 22]]
3864
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3865
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:34:49.834558"], ["id", 23]]
3866
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3867
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:34:49.835612"], ["id", 24]]
3868
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3869
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:34:49.836683"], ["id", 25]]
3870
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3871
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:34:49.837929"], ["id", 26]]
3872
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3873
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:34:49.839133"], ["id", 21]]
3874
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3875
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:34:49.840228"], ["id", 22]]
3876
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3877
+ SQL (0.0ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:34:49.841281"], ["id", 23]]
3878
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3879
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:34:49.842431"], ["id", 24]]
3880
+  (2.4ms) commit transaction
3881
+ Completed 200 OK in 16ms (ActiveRecord: 3.9ms)
3882
+
3883
+
3884
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:34:51 +0900
3885
+ Processing by MultipleClassesController#index as HTML
3886
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3887
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3888
+ Rendering multiple_classes/index.html.erb within layouts/application
3889
+ Rendered multiple_classes/index.html.erb within layouts/application (0.8ms)
3890
+ Completed 200 OK in 28ms (Views: 24.6ms | ActiveRecord: 0.3ms)
3891
+
3892
+
3893
+ Started POST "/sortable/reorder" for ::1 at 2018-04-27 16:34:54 +0900
3894
+ Processing by SortableController#reorder as JSON
3895
+ Parameters: {"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}], "sortable"=>{"rails_sortable"=>[{"klass"=>"FirstItem", "id"=>"22"}, {"klass"=>"FirstItem", "id"=>"23"}, {"klass"=>"FirstItem", "id"=>"24"}, {"klass"=>"FirstItem", "id"=>"25"}, {"klass"=>"FirstItem", "id"=>"26"}, {"klass"=>"SecondItem", "id"=>"21"}, {"klass"=>"SecondItem", "id"=>"22"}, {"klass"=>"SecondItem", "id"=>"23"}, {"klass"=>"SecondItem", "id"=>"24"}, {"klass"=>"SecondItem", "id"=>"25"}]}}
3896
+  (0.0ms) begin transaction
3897
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3898
+ SQL (0.2ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 0], ["updated_at", "2018-04-27 07:34:54.038681"], ["id", 22]]
3899
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3900
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 1], ["updated_at", "2018-04-27 07:34:54.040187"], ["id", 23]]
3901
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3902
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 2], ["updated_at", "2018-04-27 07:34:54.041376"], ["id", 24]]
3903
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3904
+ SQL (0.1ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 3], ["updated_at", "2018-04-27 07:34:54.042933"], ["id", 25]]
3905
+ FirstItem Load (0.1ms) SELECT "first_items".* FROM "first_items" WHERE "first_items"."id" = ? ORDER BY "first_items"."sort" ASC LIMIT ? [["id", 26], ["LIMIT", 1]]
3906
+ SQL (0.0ms) UPDATE "first_items" SET "sort" = ?, "updated_at" = ? WHERE "first_items"."id" = ? [["sort", 4], ["updated_at", "2018-04-27 07:34:54.044234"], ["id", 26]]
3907
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 21], ["LIMIT", 1]]
3908
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 5], ["updated_at", "2018-04-27 07:34:54.045552"], ["id", 21]]
3909
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 22], ["LIMIT", 1]]
3910
+ SQL (0.2ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 6], ["updated_at", "2018-04-27 07:34:54.046805"], ["id", 22]]
3911
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 23], ["LIMIT", 1]]
3912
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 7], ["updated_at", "2018-04-27 07:34:54.049035"], ["id", 23]]
3913
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 24], ["LIMIT", 1]]
3914
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 8], ["updated_at", "2018-04-27 07:34:54.050327"], ["id", 24]]
3915
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" WHERE "second_items"."id" = ? ORDER BY "second_items"."sort" ASC LIMIT ? [["id", 25], ["LIMIT", 1]]
3916
+ SQL (0.1ms) UPDATE "second_items" SET "sort" = ?, "updated_at" = ? WHERE "second_items"."id" = ? [["sort", 9], ["updated_at", "2018-04-27 07:34:54.051481"], ["id", 25]]
3917
+  (2.4ms) commit transaction
3918
+ Completed 200 OK in 18ms (ActiveRecord: 4.1ms)
3919
+
3920
+
3921
+ Started GET "/multiple_classes/" for ::1 at 2018-04-27 16:34:55 +0900
3922
+ Processing by MultipleClassesController#index as HTML
3923
+ FirstItem Load (0.2ms) SELECT "first_items".* FROM "first_items" ORDER BY "first_items"."sort" ASC
3924
+ SecondItem Load (0.1ms) SELECT "second_items".* FROM "second_items" ORDER BY "second_items"."sort" ASC
3925
+ Rendering multiple_classes/index.html.erb within layouts/application
3926
+ Rendered multiple_classes/index.html.erb within layouts/application (0.9ms)
3927
+ Completed 200 OK in 32ms (Views: 27.9ms | ActiveRecord: 0.3ms)
3928
+
3929
+