autocompl 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (131) hide show
  1. checksums.yaml +4 -4
  2. data/lib/autocompl/repository.rb +11 -1
  3. data/lib/autocompl/version.rb +1 -1
  4. data/test/dummy/log/development.log +467 -0
  5. data/test/dummy/log/test.log +3 -0
  6. data/test/dummy/vendor/bundle/ruby/2.3.0/bin/console +23 -0
  7. data/test/dummy/vendor/bundle/ruby/2.3.0/cache/pg-0.19.0.gem +0 -0
  8. data/test/dummy/vendor/bundle/ruby/2.3.0/cache/pq-0.0.1.gem +0 -0
  9. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/gem.build_complete +0 -0
  10. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/gem_make.out +78 -0
  11. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/mkmf.log +1346 -0
  12. data/test/dummy/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/pg-0.19.0/pg_ext.bundle +0 -0
  13. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/BSDL +22 -0
  14. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ChangeLog +6378 -0
  15. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Contributors.rdoc +46 -0
  16. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/History.rdoc +363 -0
  17. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/LICENSE +56 -0
  18. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Manifest.txt +85 -0
  19. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/POSTGRES +23 -0
  20. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README-OS_X.rdoc +68 -0
  21. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README-Windows.rdoc +56 -0
  22. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README.ja.rdoc +14 -0
  23. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/README.rdoc +168 -0
  24. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Rakefile +216 -0
  25. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/Rakefile.cross +301 -0
  26. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/Makefile +261 -0
  27. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.def +947 -0
  28. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.rb +45 -0
  29. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/errorcodes.txt +467 -0
  30. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/extconf.h +38 -0
  31. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/extconf.rb +112 -0
  32. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.c +13 -0
  33. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.h +257 -0
  34. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/gvl_wrappers.o +0 -0
  35. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.c +667 -0
  36. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.h +395 -0
  37. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg.o +0 -0
  38. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_decoder.c +162 -0
  39. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_decoder.o +0 -0
  40. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_encoder.c +162 -0
  41. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_binary_encoder.o +0 -0
  42. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_coder.c +500 -0
  43. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_coder.o +0 -0
  44. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_connection.c +4102 -0
  45. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_connection.o +0 -0
  46. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_copy_coder.c +591 -0
  47. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_copy_coder.o +0 -0
  48. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_errors.c +95 -0
  49. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_errors.o +0 -0
  50. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_ext.bundle +0 -0
  51. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_result.c +1271 -0
  52. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_result.o +0 -0
  53. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_decoder.c +421 -0
  54. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_decoder.o +0 -0
  55. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_encoder.c +683 -0
  56. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_text_encoder.o +0 -0
  57. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map.c +159 -0
  58. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map.o +0 -0
  59. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_all_strings.c +116 -0
  60. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_all_strings.o +0 -0
  61. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_class.c +239 -0
  62. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_class.o +0 -0
  63. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_column.c +312 -0
  64. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_column.o +0 -0
  65. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_mri_type.c +284 -0
  66. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_mri_type.o +0 -0
  67. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_oid.c +355 -0
  68. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_by_oid.o +0 -0
  69. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_in_ruby.c +299 -0
  70. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/pg_type_map_in_ruby.o +0 -0
  71. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.c +149 -0
  72. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.h +65 -0
  73. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/util.o +0 -0
  74. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg.sln +26 -0
  75. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg_18/pg.vcproj +216 -0
  76. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/ext/vc/pg_19/pg_19.vcproj +209 -0
  77. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg.rb +64 -0
  78. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/basic_type_mapping.rb +426 -0
  79. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/coder.rb +83 -0
  80. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/connection.rb +271 -0
  81. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/constants.rb +11 -0
  82. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/exceptions.rb +11 -0
  83. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/result.rb +30 -0
  84. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/text_decoder.rb +51 -0
  85. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/text_encoder.rb +35 -0
  86. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg/type_map_by_column.rb +15 -0
  87. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/lib/pg_ext.bundle +0 -0
  88. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/array_insert.rb +20 -0
  89. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_api.rb +106 -0
  90. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_copyto.rb +39 -0
  91. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/async_mixed.rb +56 -0
  92. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/check_conn.rb +21 -0
  93. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/copyfrom.rb +81 -0
  94. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/copyto.rb +19 -0
  95. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/cursor.rb +21 -0
  96. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/disk_usage_report.rb +186 -0
  97. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/issue-119.rb +94 -0
  98. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/losample.rb +69 -0
  99. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/minimal-testcase.rb +17 -0
  100. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/notify_wait.rb +72 -0
  101. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/pg_statistics.rb +294 -0
  102. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/replication_monitor.rb +231 -0
  103. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/test_binary_values.rb +33 -0
  104. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/wal_shipper.rb +434 -0
  105. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/sample/warehouse_partitions.rb +320 -0
  106. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/data/expected_trace.out +26 -0
  107. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/data/random_binary_data +0 -0
  108. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/helpers.rb +352 -0
  109. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/basic_type_mapping_spec.rb +305 -0
  110. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/connection_spec.rb +1676 -0
  111. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/result_spec.rb +449 -0
  112. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_class_spec.rb +138 -0
  113. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_column_spec.rb +222 -0
  114. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_mri_type_spec.rb +136 -0
  115. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_by_oid_spec.rb +149 -0
  116. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_in_ruby_spec.rb +164 -0
  117. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_map_spec.rb +22 -0
  118. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg/type_spec.rb +777 -0
  119. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pg-0.19.0/spec/pg_spec.rb +50 -0
  120. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/Gemfile +4 -0
  121. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/LICENSE.txt +22 -0
  122. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/README.md +76 -0
  123. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/Rakefile +1 -0
  124. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/bin/console +7 -0
  125. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/lib/pq.rb +99 -0
  126. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/pq.gemspec +29 -0
  127. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/spec/helpers.rb +10 -0
  128. data/test/dummy/vendor/bundle/ruby/2.3.0/gems/pq-0.0.1/spec/queue_spec.rb +84 -0
  129. data/test/dummy/vendor/bundle/ruby/2.3.0/specifications/pg-0.19.0.gemspec +63 -0
  130. data/test/dummy/vendor/bundle/ruby/2.3.0/specifications/pq-0.0.1.gemspec +49 -0
  131. metadata +253 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 451f4f6c82f31bc074c13cfaa4214803940aee40
4
- data.tar.gz: 34797507e45ea10880975998c50ec3853ba5e603
3
+ metadata.gz: 0e47365440821cd691e0b259cf5fae4499bd9a11
4
+ data.tar.gz: 81fa0d86c3ea2520a41e251d4e5c2ca658a97d4a
5
5
  SHA512:
6
- metadata.gz: 34baf7b4c8d83315ffbd3eebf9c818dc7b061ab14366ecfe4b01093600bcf39bd5dfb664f8aec427a725e78ae3ebad52226d653ec8782ec4bb4db0b60f935d87
7
- data.tar.gz: 4fee165adf480e89c0d078169d789ae610059acd8f841572d03c268b4b6beada7bd139e536f96388a064314d759011df2746024933d05dc2c58a4a7e732e60e9
6
+ metadata.gz: 08a94d054e2ba14bcc8da12d23f21eb4b6fb9a352017e8fb47c19465064f6380398bd95f358e3d4b5d44642586a938379a3a662cc810bc3e208fac64c39d1800
7
+ data.tar.gz: b5a3e80412f58638f631cb6d22f10b5ac5663437c64034a8ede977deae361b1bcad200283d52106e7f73030b7808eeed747147648a9e8176231bc920f7f75bab
@@ -4,9 +4,19 @@ module Autocompl
4
4
  klass = model.to_s.camelize.constantize
5
5
  items = []
6
6
  for column in columns
7
- items.concat(klass.select(column).where("#{column} LIKE ?", "%#{options[:term]}%").limit(options[:limit]).distinct.map(&column))
7
+ items.concat(klass.select(column).where("#{column} #{like_clause(klass)} ?", "%#{options[:term]}%").limit(options[:limit]).distinct.map(&column))
8
8
  end
9
9
  items
10
10
  end
11
+
12
+ private
13
+
14
+ def like_clause(model)
15
+ postgres?(model) ? 'ILIKE' : 'LIKE'
16
+ end
17
+
18
+ def postgres?(model)
19
+ model.connection.class.to_s.match(/PostgreSQLAdapter/)
20
+ end
11
21
  end
12
22
  end
@@ -1,3 +1,3 @@
1
1
  module Autocompl
2
- VERSION = '0.2.1'.freeze
2
+ VERSION = '0.2.2'.freeze
3
3
  end
@@ -3089,3 +3089,470 @@ Processing by ProductsController#autocomplete_endpoint as JSON
3089
3089
  Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)
3090
3090
 
3091
3091
 
3092
+ Started GET "/products" for ::1 at 2017-01-27 08:14:25 +0900
3093
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from block (3 levels) in <class:Railtie> at /Users/takahashiseiji/src/github.com/timakin/autocompl/test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railtie.rb:113)
3094
+ ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3095
+ Processing by ProductsController#index as HTML
3096
+ Rendering products/index.html.erb within layouts/application
3097
+ Product Load (1.5ms) SELECT "products".* FROM "products"
3098
+ Rendered products/index.html.erb within layouts/application (26.4ms)
3099
+ Completed 200 OK in 352ms (Views: 341.9ms | ActiveRecord: 2.2ms)
3100
+
3101
+
3102
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF" for ::1 at 2017-01-27 08:14:28 +0900
3103
+ Processing by ProductsController#autocomplete_endpoint as JSON
3104
+ Parameters: {"term"=>"み"}
3105
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
3106
+
3107
+
3108
+
3109
+ NameError (undefined local variable or method `model' for #<ProductsController:0x007fd6a89efee0>):
3110
+
3111
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:15:in `like_clause'
3112
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:7:in `block in get_collection'
3113
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `each'
3114
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `get_collection'
3115
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:32:in `block in get_items'
3116
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `each'
3117
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `get_items'
3118
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:20:in `block in autocomplete'
3119
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
3120
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action'
3121
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
3122
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3123
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call'
3124
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
3125
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call'
3126
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
3127
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
3128
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3129
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
3130
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
3131
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
3132
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
3133
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
3134
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument'
3135
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3136
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
3137
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
3138
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process'
3139
+ vendor/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process'
3140
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch'
3141
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch'
3142
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
3143
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
3144
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
3145
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
3146
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
3147
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call'
3148
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call'
3149
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/conditional_get.rb:25:in `call'
3150
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
3151
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
3152
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
3153
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
3154
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call'
3155
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
3156
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
3157
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
3158
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3159
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
3160
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3161
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3162
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
3163
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3164
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app'
3165
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call'
3166
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged'
3167
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged'
3168
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged'
3169
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call'
3170
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
3171
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
3172
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
3173
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
3174
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3175
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call'
3176
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
3177
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call'
3178
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/webrick.rb:86:in `service'
3179
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
3180
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
3181
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
3182
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb
3183
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb
3184
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.8ms)
3185
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb
3186
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (1.1ms)
3187
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb
3188
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (1.5ms)
3189
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (92.4ms)
3190
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8Bn" for ::1 at 2017-01-27 08:14:28 +0900
3191
+ Processing by ProductsController#autocomplete_endpoint as JSON
3192
+ Parameters: {"term"=>"みかn"}
3193
+ Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.0ms)
3194
+
3195
+
3196
+
3197
+ NameError (undefined local variable or method `model' for #<ProductsController:0x007fd6a8c65170>):
3198
+
3199
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:15:in `like_clause'
3200
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:7:in `block in get_collection'
3201
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `each'
3202
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `get_collection'
3203
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:32:in `block in get_items'
3204
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `each'
3205
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `get_items'
3206
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:20:in `block in autocomplete'
3207
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
3208
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action'
3209
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
3210
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3211
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call'
3212
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
3213
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call'
3214
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
3215
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
3216
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3217
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
3218
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
3219
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
3220
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
3221
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
3222
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument'
3223
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3224
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
3225
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
3226
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process'
3227
+ vendor/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process'
3228
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch'
3229
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch'
3230
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
3231
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
3232
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
3233
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
3234
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
3235
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call'
3236
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call'
3237
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/conditional_get.rb:25:in `call'
3238
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
3239
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
3240
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
3241
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
3242
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call'
3243
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
3244
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
3245
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
3246
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3247
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
3248
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3249
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3250
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
3251
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3252
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app'
3253
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call'
3254
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged'
3255
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged'
3256
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged'
3257
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call'
3258
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
3259
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
3260
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
3261
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
3262
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3263
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call'
3264
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
3265
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call'
3266
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/webrick.rb:86:in `service'
3267
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
3268
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
3269
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
3270
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb
3271
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb
3272
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (0.5ms)
3273
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb
3274
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms)
3275
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb
3276
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (1.0ms)
3277
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (67.8ms)
3278
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8B%E3%82%93" for ::1 at 2017-01-27 08:14:29 +0900
3279
+ Processing by ProductsController#autocomplete_endpoint as JSON
3280
+ Parameters: {"term"=>"みかん"}
3281
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)
3282
+
3283
+
3284
+
3285
+ NameError (undefined local variable or method `model' for #<ProductsController:0x007fd6a4b82d10>):
3286
+
3287
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:15:in `like_clause'
3288
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:7:in `block in get_collection'
3289
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `each'
3290
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/repository.rb:6:in `get_collection'
3291
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:32:in `block in get_items'
3292
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `each'
3293
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:30:in `get_items'
3294
+ /Users/takahashiseiji/src/github.com/timakin/autocompl/lib/autocompl/base.rb:20:in `block in autocomplete'
3295
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
3296
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:188:in `process_action'
3297
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
3298
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
3299
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:126:in `call'
3300
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
3301
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:455:in `call'
3302
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
3303
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
3304
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3305
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
3306
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/rescue.rb:20:in `process_action'
3307
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
3308
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `block in instrument'
3309
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
3310
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/notifications.rb:164:in `instrument'
3311
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
3312
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
3313
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
3314
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/abstract_controller/base.rb:126:in `process'
3315
+ vendor/bundle/ruby/2.3.0/gems/actionview-5.0.1/lib/action_view/rendering.rb:30:in `process'
3316
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:190:in `dispatch'
3317
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_controller/metal.rb:262:in `dispatch'
3318
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
3319
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:32:in `serve'
3320
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:39:in `block in serve'
3321
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `each'
3322
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/journey/router.rb:26:in `serve'
3323
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:725:in `call'
3324
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/etag.rb:25:in `call'
3325
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/conditional_get.rb:25:in `call'
3326
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/head.rb:12:in `call'
3327
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:222:in `context'
3328
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/session/abstract/id.rb:216:in `call'
3329
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/cookies.rb:613:in `call'
3330
+ vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/migration.rb:553:in `call'
3331
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
3332
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:97:in `__run_callbacks__'
3333
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
3334
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/callbacks.rb:90:in `run_callbacks'
3335
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/callbacks.rb:36:in `call'
3336
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3337
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
3338
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
3339
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
3340
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:36:in `call_app'
3341
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `block in call'
3342
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `block in tagged'
3343
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:26:in `tagged'
3344
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/tagged_logging.rb:69:in `tagged'
3345
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/rack/logger.rb:24:in `call'
3346
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/request_id.rb:24:in `call'
3347
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/method_override.rb:22:in `call'
3348
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/runtime.rb:22:in `call'
3349
+ vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
3350
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
3351
+ vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/static.rb:136:in `call'
3352
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/sendfile.rb:111:in `call'
3353
+ vendor/bundle/ruby/2.3.0/gems/railties-5.0.1/lib/rails/engine.rb:522:in `call'
3354
+ vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/handler/webrick.rb:86:in `service'
3355
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
3356
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
3357
+ /Users/takahashiseiji/.rbenv/versions/2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
3358
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb
3359
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb
3360
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_source.text.erb (1.4ms)
3361
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb
3362
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (1.2ms)
3363
+ Rendering vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb
3364
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (2.0ms)
3365
+ Rendered vendor/bundle/ruby/2.3.0/gems/actionpack-5.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (86.9ms)
3366
+ Started GET "/products" for ::1 at 2017-01-27 08:15:08 +0900
3367
+ DEPRECATION WARNING: ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement. (called from block (3 levels) in <class:Railtie> at /Users/takahashiseiji/src/github.com/timakin/autocompl/test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.1/lib/active_record/railtie.rb:113)
3368
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3369
+ Processing by ProductsController#index as HTML
3370
+ Rendering products/index.html.erb within layouts/application
3371
+ Product Load (1.1ms) SELECT "products".* FROM "products"
3372
+ Rendered products/index.html.erb within layouts/application (32.3ms)
3373
+ Completed 200 OK in 363ms (Views: 354.6ms | ActiveRecord: 1.7ms)
3374
+
3375
+
3376
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF" for ::1 at 2017-01-27 08:15:10 +0900
3377
+ Processing by ProductsController#autocomplete_endpoint as JSON
3378
+ Parameters: {"term"=>"み"}
3379
+ Product Load (1.5ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%み%') LIMIT ? [["LIMIT", 20]]
3380
+ Completed 200 OK in 10ms (Views: 0.3ms | ActiveRecord: 1.5ms)
3381
+
3382
+
3383
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8Bn" for ::1 at 2017-01-27 08:15:11 +0900
3384
+ Processing by ProductsController#autocomplete_endpoint as JSON
3385
+ Parameters: {"term"=>"みかn"}
3386
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みかn%') LIMIT ? [["LIMIT", 20]]
3387
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3388
+
3389
+
3390
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8B%E3%82%93" for ::1 at 2017-01-27 08:15:11 +0900
3391
+ Processing by ProductsController#autocomplete_endpoint as JSON
3392
+ Parameters: {"term"=>"みかん"}
3393
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みかん%') LIMIT ? [["LIMIT", 20]]
3394
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3395
+
3396
+
3397
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8B" for ::1 at 2017-01-27 08:15:12 +0900
3398
+ Processing by ProductsController#autocomplete_endpoint as JSON
3399
+ Parameters: {"term"=>"みか"}
3400
+ Product Load (0.4ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みか%') LIMIT ? [["LIMIT", 20]]
3401
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
3402
+
3403
+
3404
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%81" for ::1 at 2017-01-27 08:15:14 +0900
3405
+ Processing by ProductsController#autocomplete_endpoint as JSON
3406
+ Parameters: {"term"=>"め"}
3407
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%め%') LIMIT ? [["LIMIT", 20]]
3408
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3409
+
3410
+
3411
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8B" for ::1 at 2017-01-27 08:15:16 +0900
3412
+ Processing by ProductsController#autocomplete_endpoint as JSON
3413
+ Parameters: {"term"=>"みか"}
3414
+ Product Load (0.4ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みか%') LIMIT ? [["LIMIT", 20]]
3415
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms)
3416
+
3417
+
3418
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%81r" for ::1 at 2017-01-27 08:15:16 +0900
3419
+ Processing by ProductsController#autocomplete_endpoint as JSON
3420
+ Parameters: {"term"=>"めr"}
3421
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%めr%') LIMIT ? [["LIMIT", 20]]
3422
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3423
+
3424
+
3425
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%81" for ::1 at 2017-01-27 08:15:27 +0900
3426
+ Processing by ProductsController#autocomplete_endpoint as JSON
3427
+ Parameters: {"term"=>"め"}
3428
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%め%') LIMIT ? [["LIMIT", 20]]
3429
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3430
+
3431
+
3432
+ Started GET "/products/autocomplete_endpoint?term=%E3%83%A1" for ::1 at 2017-01-27 08:15:43 +0900
3433
+ Processing by ProductsController#autocomplete_endpoint as JSON
3434
+ Parameters: {"term"=>"メ"}
3435
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%メ%') LIMIT ? [["LIMIT", 20]]
3436
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3437
+
3438
+
3439
+ Started GET "/products/autocomplete_endpoint?term=%E3%83%A1" for ::1 at 2017-01-27 08:15:51 +0900
3440
+ Processing by ProductsController#autocomplete_endpoint as JSON
3441
+ Parameters: {"term"=>"メ"}
3442
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%メ%') LIMIT ? [["LIMIT", 20]]
3443
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3444
+
3445
+
3446
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%84n" for ::1 at 2017-01-27 08:15:52 +0900
3447
+ Processing by ProductsController#autocomplete_endpoint as JSON
3448
+ Parameters: {"term"=>"いn"}
3449
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%いn%') LIMIT ? [["LIMIT", 20]]
3450
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3451
+
3452
+
3453
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%84" for ::1 at 2017-01-27 08:15:52 +0900
3454
+ Processing by ProductsController#autocomplete_endpoint as JSON
3455
+ Parameters: {"term"=>"い"}
3456
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%い%') LIMIT ? [["LIMIT", 20]]
3457
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3458
+
3459
+
3460
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A%E3%82%93gn" for ::1 at 2017-01-27 08:15:53 +0900
3461
+ Processing by ProductsController#autocomplete_endpoint as JSON
3462
+ Parameters: {"term"=>"りんgn"}
3463
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%りんgn%') LIMIT ? [["LIMIT", 20]]
3464
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3465
+
3466
+
3467
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A%E3%82%93g" for ::1 at 2017-01-27 08:15:53 +0900
3468
+ Processing by ProductsController#autocomplete_endpoint as JSON
3469
+ Parameters: {"term"=>"りんg"}
3470
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%りんg%') LIMIT ? [["LIMIT", 20]]
3471
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3472
+
3473
+
3474
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A%E3%82%93" for ::1 at 2017-01-27 08:15:54 +0900
3475
+ Processing by ProductsController#autocomplete_endpoint as JSON
3476
+ Parameters: {"term"=>"りん"}
3477
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%りん%') LIMIT ? [["LIMIT", 20]]
3478
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3479
+
3480
+
3481
+ Started GET "/products" for ::1 at 2017-01-27 08:15:59 +0900
3482
+ Processing by ProductsController#index as HTML
3483
+ Rendering products/index.html.erb within layouts/application
3484
+ Product Load (0.2ms) SELECT "products".* FROM "products"
3485
+ Rendered products/index.html.erb within layouts/application (10.5ms)
3486
+ Completed 200 OK in 57ms (Views: 54.5ms | ActiveRecord: 0.2ms)
3487
+
3488
+
3489
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A" for ::1 at 2017-01-27 08:16:02 +0900
3490
+ Processing by ProductsController#autocomplete_endpoint as JSON
3491
+ Parameters: {"term"=>"り"}
3492
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%り%') LIMIT ? [["LIMIT", 20]]
3493
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3494
+
3495
+
3496
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8An" for ::1 at 2017-01-27 08:16:03 +0900
3497
+ Processing by ProductsController#autocomplete_endpoint as JSON
3498
+ Parameters: {"term"=>"りn"}
3499
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%りn%') LIMIT ? [["LIMIT", 20]]
3500
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3501
+
3502
+
3503
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A%E3%82%93" for ::1 at 2017-01-27 08:16:03 +0900
3504
+ Processing by ProductsController#autocomplete_endpoint as JSON
3505
+ Parameters: {"term"=>"りん"}
3506
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%りん%') LIMIT ? [["LIMIT", 20]]
3507
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3508
+
3509
+
3510
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%8A" for ::1 at 2017-01-27 08:16:03 +0900
3511
+ Processing by ProductsController#autocomplete_endpoint as JSON
3512
+ Parameters: {"term"=>"り"}
3513
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%り%') LIMIT ? [["LIMIT", 20]]
3514
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
3515
+
3516
+
3517
+ Started GET "/products/autocomplete_endpoint?term=%E3%82%81" for ::1 at 2017-01-27 08:16:04 +0900
3518
+ Processing by ProductsController#autocomplete_endpoint as JSON
3519
+ Parameters: {"term"=>"め"}
3520
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%め%') LIMIT ? [["LIMIT", 20]]
3521
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3522
+
3523
+
3524
+ Started GET "/products/autocomplete_endpoint?term=%E3%83%A1%E3%83%AD" for ::1 at 2017-01-27 08:16:04 +0900
3525
+ Processing by ProductsController#autocomplete_endpoint as JSON
3526
+ Parameters: {"term"=>"メロ"}
3527
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%メロ%') LIMIT ? [["LIMIT", 20]]
3528
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
3529
+
3530
+
3531
+ Started GET "/products/autocomplete_endpoint?term=%E3%83%A1" for ::1 at 2017-01-27 08:16:05 +0900
3532
+ Processing by ProductsController#autocomplete_endpoint as JSON
3533
+ Parameters: {"term"=>"メ"}
3534
+ Product Load (0.5ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%メ%') LIMIT ? [["LIMIT", 20]]
3535
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)
3536
+
3537
+
3538
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF" for ::1 at 2017-01-27 08:16:06 +0900
3539
+ Processing by ProductsController#autocomplete_endpoint as JSON
3540
+ Parameters: {"term"=>"み"}
3541
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%み%') LIMIT ? [["LIMIT", 20]]
3542
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3543
+
3544
+
3545
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BFk" for ::1 at 2017-01-27 08:16:06 +0900
3546
+ Processing by ProductsController#autocomplete_endpoint as JSON
3547
+ Parameters: {"term"=>"みk"}
3548
+ Product Load (0.2ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みk%') LIMIT ? [["LIMIT", 20]]
3549
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)
3550
+
3551
+
3552
+ Started GET "/products/autocomplete_endpoint?term=%E3%81%BF%E3%81%8B" for ::1 at 2017-01-27 08:16:07 +0900
3553
+ Processing by ProductsController#autocomplete_endpoint as JSON
3554
+ Parameters: {"term"=>"みか"}
3555
+ Product Load (0.3ms) SELECT DISTINCT "products"."name" FROM "products" WHERE (name LIKE '%みか%') LIMIT ? [["LIMIT", 20]]
3556
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)
3557
+
3558
+