Started GET "/" for 127.0.0.1 at 2016-10-05 10:54:43 +0300 ActiveRecord::PendingMigrationError ( Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development ): activerecord (4.2.1) lib/active_record/migration.rb:393:in `check_pending!' activerecord (4.2.1) lib/active_record/migration.rb:374:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (9.4ms)  (19.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (18.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateClients (20141224031843)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/test/dummy/db/migrate/20141224031843_create_clients.rb:7)  (0.2ms) CREATE TABLE "clients" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141224031843"]]  (17.9ms) commit transaction Migrating to CreateOrders (20141224031854)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/test/dummy/db/migrate/20141224031854_create_orders.rb:9)  (0.2ms) CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "notes" varchar, "product_name" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141224031854"]]  (17.3ms) commit transaction Migrating to AddClientToOrder (20141224032000)  (0.1ms) begin transaction  (0.2ms) ALTER TABLE "orders" ADD "client_id" integer SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141224032000"]]  (13.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-10-05 10:55:46 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/railties-4.2.1/lib/rails/templates/rails/welcome/index.html.erb (0.4ms) Completed 200 OK in 6ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started GET "/orders" for 127.0.0.1 at 2016-10-05 10:55:50 +0300 Processing by OrdersController#index as HTML Order Load (0.1ms) SELECT "orders".* FROM "orders" Rendered orders/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 2089ms (Views: 2086.9ms | ActiveRecord: 0.2ms) Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:52 +0300 Started GET "/clients" for 127.0.0.1 at 2016-10-05 10:55:58 +0300 Processing by ClientsController#index as HTML Client Load (0.5ms) SELECT "clients".* FROM "clients" Rendered clients/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 34ms (Views: 29.8ms | ActiveRecord: 0.6ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:55:59 +0300 Started GET "/clients/new" for 127.0.0.1 at 2016-10-05 10:56:00 +0300 Processing by ClientsController#new as HTML Rendered clients/_form.html.erb (6.9ms) Rendered clients/new.html.erb within layouts/application (8.9ms) Completed 200 OK in 37ms (Views: 34.0ms | ActiveRecord: 0.2ms) Started POST "/clients" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Processing by ClientsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"epUcfqBFrViVD4L8nr4g5nM5ObvYtQILV+TaQQcXXq5/HVVY+r853MPzzs31tEoZIgjMGelB3kjwJGN/RTp1Pg==", "client"=>{"name"=>"b1"}, "commit"=>"Create Client"}  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "clients" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "b1"], ["created_at", "2016-10-05 07:56:08.234727"], ["updated_at", "2016-10-05 07:56:08.234727"]]  (20.1ms) commit transaction Redirected to http://localhost:3013/clients/1 Completed 302 Found in 24ms (ActiveRecord: 20.4ms) Started GET "/clients/1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Processing by ClientsController#show as HTML Parameters: {"id"=>"1"} Client Load (0.1ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", 1]] Rendered clients/show.html.erb within layouts/application (0.4ms) Completed 200 OK in 32ms (Views: 28.9ms | ActiveRecord: 0.1ms) Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:56:08 +0300 Started GET "/clients/1/edit" for 127.0.0.1 at 2016-10-05 10:56:09 +0300 Processing by ClientsController#edit as HTML Parameters: {"id"=>"1"} Client Load (0.1ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", 1]] Rendered clients/_form.html.erb (0.7ms) Rendered clients/edit.html.erb within layouts/application (1.4ms) Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.1ms) Started GET "/clients" for 127.0.0.1 at 2016-10-05 10:56:10 +0300 Processing by ClientsController#index as HTML Client Load (0.1ms) SELECT "clients".* FROM "clients" Rendered clients/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 41ms (Views: 40.9ms | ActiveRecord: 0.1ms) Started GET "/clients/new" for 127.0.0.1 at 2016-10-05 10:56:11 +0300 Processing by ClientsController#new as HTML Rendered clients/_form.html.erb (1.7ms) Rendered clients/new.html.erb within layouts/application (3.0ms) Completed 200 OK in 51ms (Views: 49.7ms | ActiveRecord: 0.0ms) Started POST "/clients" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Processing by ClientsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"FcIK1CvnM+4aw0KhcI6QKyDV8qYpbRaRFaoLVb5BSuwQSkPycR2nakw/DpAbhPrUceQHBBiZytKyarJr/GxhfA==", "client"=>{"name"=>"b2"}, "commit"=>"Create Client"}  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "clients" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "b2"], ["created_at", "2016-10-05 07:56:14.285837"], ["updated_at", "2016-10-05 07:56:14.285837"]]  (21.1ms) commit transaction Redirected to http://localhost:3013/clients/2 Completed 302 Found in 23ms (ActiveRecord: 21.3ms) Started GET "/clients/2" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Processing by ClientsController#show as HTML Parameters: {"id"=>"2"} Client Load (0.1ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", 2]] Rendered clients/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 29ms (Views: 28.1ms | ActiveRecord: 0.1ms) Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:14 +0300 Started GET "/clients" for 127.0.0.1 at 2016-10-05 10:56:15 +0300 Processing by ClientsController#index as HTML Client Load (0.2ms) SELECT "clients".* FROM "clients" Rendered clients/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 45ms (Views: 43.9ms | ActiveRecord: 0.2ms) Started GET "/clients/new" for 127.0.0.1 at 2016-10-05 10:56:16 +0300 Processing by ClientsController#new as HTML Rendered clients/_form.html.erb (0.6ms) Rendered clients/new.html.erb within layouts/application (1.0ms) Completed 200 OK in 41ms (Views: 40.5ms | ActiveRecord: 0.0ms) Started POST "/clients" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Processing by ClientsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"O7VRjmMI4Hfhsu05pQ9h+VDAdA18OFWvAQTamsQ2sHE+PRioOfJ087dOoQjOBQsGAfGBr03MieymxGOkhhub4Q==", "client"=>{"name"=>"b3"}, "commit"=>"Create Client"}  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "clients" ("name", "created_at", "updated_at") VALUES (?, ?, ?) [["name", "b3"], ["created_at", "2016-10-05 07:56:19.279842"], ["updated_at", "2016-10-05 07:56:19.279842"]]  (16.1ms) commit transaction Redirected to http://localhost:3013/clients/3 Completed 302 Found in 19ms (ActiveRecord: 16.3ms) Started GET "/clients/3" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Processing by ClientsController#show as HTML Parameters: {"id"=>"3"} Client Load (0.1ms) SELECT "clients".* FROM "clients" WHERE "clients"."id" = ? LIMIT 1 [["id", 3]] Rendered clients/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 37ms (Views: 34.9ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:19 +0300 Started GET "/clients" for 127.0.0.1 at 2016-10-05 10:56:20 +0300 Processing by ClientsController#index as HTML Client Load (0.1ms) SELECT "clients".* FROM "clients" Rendered clients/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 38ms (Views: 37.1ms | ActiveRecord: 0.1ms) Started GET "/orders" for 127.0.0.1 at 2016-10-05 10:56:51 +0300 Processing by OrdersController#index as HTML Order Load (0.1ms) SELECT "orders".* FROM "orders" Rendered orders/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 26ms (Views: 25.5ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:56:52 +0300 Started GET "/orders/new" for 127.0.0.1 at 2016-10-05 10:56:54 +0300 Processing by OrdersController#new as HTML Rendered orders/_form.html.erb (24.8ms) Rendered orders/new.html.erb within layouts/application (25.6ms) Completed 200 OK in 58ms (Views: 55.2ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:57:00 +0300 Started GET "/orders/new" for 127.0.0.1 at 2016-10-05 10:57:16 +0300 Processing by OrdersController#new as HTML Rendered orders/_form.html.erb (4.5ms) Rendered orders/new.html.erb within layouts/application (5.2ms) Completed 200 OK in 37ms (Views: 37.1ms | ActiveRecord: 0.0ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:17 +0300 Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:57:19 +0300 Processing by ClientsController#autocomplete_client_name as JSON Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (8.8ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:57:19 +0300 Processing by ClientsController#autocomplete_client_name as JSON Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.9ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (9.7ms) Started GET "/orders/new" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Processing by OrdersController#new as HTML Rendered orders/_form.html.erb (4.2ms) Rendered orders/new.html.erb within layouts/application (4.7ms) Completed 200 OK in 31ms (Views: 30.9ms | ActiveRecord: 0.0ms) Started GET "/assets/application.self.css?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/jquery2.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/bootstrap.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/jquery_ujs.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/bootstrap3-typeahead.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/bootstrap3-autocomplete-input.min.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/turbolinks.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/assets/application.self.js?body=1" for 127.0.0.1 at 2016-10-05 10:57:29 +0300 Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:57:31 +0300 Processing by ClientsController#autocomplete_client_name as JSON Parameters: {"q"=>"b1"} Client Load (0.3ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.8ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (9.6ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:57:31 +0300 Processing by ClientsController#autocomplete_client_name as JSON Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (1.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.text.erb (0.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.text.erb (0.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.text.erb (8.4ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:57:35 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.2ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:58:38 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.3ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.3ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.2ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.3ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 10:59:41 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.7ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:00:19 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.5ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:02:38 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.0ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:03:33 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (10.9ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:04:00 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.8ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:04:20 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.0ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:04:59 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.3ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:05:00 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.2ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.2ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:05:20 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.0ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (10.7ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:05:34 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.9ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (10.3ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:08:58 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.1ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: near ",": syntax error: SELECT clients.id, clients., clients.name FROM "clients" WHERE (LOWER(clients.) LIKE 'b1%') ORDER BY clients. ASC LIMIT 10): sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.10) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:473:in `block in log' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.1) lib/active_record/connection_adapters/abstract_adapter.rb:467:in `log' activerecord (4.2.1) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:347:in `select' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.1) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.1) lib/active_record/relation.rb:638:in `exec_queries' activerecord (4.2.1) lib/active_record/relation.rb:514:in `load' activerecord (4.2.1) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.9ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:09:08 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT "clients"."id" FROM "clients" WHERE (LOWER(clients.name) LIKE 'b1%') ORDER BY clients.name ASC LIMIT 10 Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms) ActiveModel::MissingAttributeError (missing attribute: name): activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `block in _read_attribute' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `block in fetch_value' activerecord (4.2.1) lib/active_record/attribute.rb:150:in `value' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `fetch_value' activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `_read_attribute' activerecord (4.2.1) lib/active_record/attribute_methods.rb:50:in `__temp__e616d656' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:64:in `block in items_to_json' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.1ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:09:15 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT "clients"."id" FROM "clients" WHERE (LOWER(clients.name) LIKE 'b1%') ORDER BY clients.name ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveModel::MissingAttributeError (missing attribute: name): activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `block in _read_attribute' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `block in fetch_value' activerecord (4.2.1) lib/active_record/attribute.rb:150:in `value' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `fetch_value' activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `_read_attribute' activerecord (4.2.1) lib/active_record/attribute_methods.rb:50:in `__temp__e616d656' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:64:in `block in items_to_json' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.2ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (11.4ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:09:38 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.2ms) SELECT "clients"."id" FROM "clients" WHERE (LOWER(clients.name) LIKE 'b1%') ORDER BY clients.name ASC LIMIT 10 Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveModel::MissingAttributeError (missing attribute: name): activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `block in _read_attribute' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `block in fetch_value' activerecord (4.2.1) lib/active_record/attribute.rb:150:in `value' activerecord (4.2.1) lib/active_record/attribute_set.rb:31:in `fetch_value' activerecord (4.2.1) lib/active_record/attribute_methods/read.rb:93:in `_read_attribute' activerecord (4.2.1) lib/active_record/attribute_methods.rb:50:in `__temp__e616d656' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:64:in `block in items_to_json' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' activerecord (4.2.1) lib/active_record/relation/delegation.rb:46:in `collect' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:63:in `items_to_json' /mnt/data/projects/mmx/temp/bootstrap3_autocomplete_input/lib/bootstrap3_autocomplete_input/controllers/autocomplete.rb:42:in `block in autocomplete' actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:25:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.4) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call' activerecord (4.2.1) lib/active_record/migration.rb:378:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call' activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks' activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.4) lib/rack/methodoverride.rb:22:in `call' rack (1.6.4) lib/rack/runtime.rb:18:in `call' activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.1) lib/rails/engine.rb:518:in `call' railties (4.2.1) lib/rails/application.rb:164:in `call' rack (1.6.4) lib/rack/lock.rb:17:in `call' rack (1.6.4) lib/rack/content_length.rb:15:in `call' rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/mmx/.rvm/rubies/ruby-2.2.4/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.9ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.5ms) Rendered /home/mmx/.rvm/gems/ruby-2.2.4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (10.9ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:09:43 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b1%') ORDER BY clients.name ASC LIMIT 10 Completed 200 OK in 11ms (Views: 0.1ms | ActiveRecord: 0.3ms) Started GET "/clients/autocomplete_client_name?q=b1" for 127.0.0.1 at 2016-10-05 11:09:55 +0300 Processing by ClientsController#autocomplete_client_name as HTML Parameters: {"q"=>"b1"} Client Load (0.1ms) SELECT clients.id, clients.name FROM "clients" WHERE (LOWER(clients.name) LIKE 'b1%') ORDER BY clients.name ASC LIMIT 10 Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.5ms)