Started GET "/" for 127.0.0.1 at 2016-05-10 19:12:19 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActionController::Base::Url): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:94:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:105:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (39.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (88.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:18:11 +0300 Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.5ms) SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL Completed 500 Internal Server Error in 170ms (ActiveRecord: 0.5ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such table: urls: SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:102:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:111:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.3ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:23:35 +0300 ActiveRecord::PendingMigrationError ( Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development ): activerecord (4.2.6) lib/active_record/migration.rb:392:in `check_pending!' activerecord (4.2.6) lib/active_record/migration.rb:373:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.2ms)  (454.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (107.2ms) commit transaction Migrating to CreateUsers (20160510162308)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162308"]]  (129.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 19:24:00 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: urls.user_id: SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:102:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:111:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (27.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUserGroups (20160510163400)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510163400"]]  (114.2ms) commit transaction Migrating to CreateUsersGroups (20160510163538)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510163538"]]  (119.0ms) commit transaction Migrating to CreateUsersUrls (20160510164058)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510164058"]]  (100.4ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:28 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:114:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.0ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:31 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:114:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.8ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:44 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:114:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.0ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:45 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:114:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.0ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:46 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:114:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:53:52 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: urls.user_id: SELECT "urls".* FROM "urls" WHERE "urls"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:116:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:125:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.0ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:55:32 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `join' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:117:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.1ms) Started GET "/" for 127.0.0.1 at 2016-05-10 19:59:20 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::Url::UsersUrls): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.8ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:02 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_urls' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:04 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_urls' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:05 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_urls' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:23 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::Url::UsersUrls): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:26 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::Url::UsersUrls): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (9.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.3ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:04:48 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_groups' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.6ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:05:13 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_group' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:05:14 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users_group' was not found on OauthService::Access::Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.7ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:06:31 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms) ActiveRecord::UnknownPrimaryKey (Unknown primary key for table users_urls in model OauthService::Access::UsersUrl.): activerecord (4.2.6) lib/active_record/reflection.rb:581:in `primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:339:in `association_primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:615:in `join_keys' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:40:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `reverse_each' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:169:in `make_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:183:in `make_inner_joins' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:109:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `flat_map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `join_constraints' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1045:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (118.6ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (173.5ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (106.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (126.4ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (107.5ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (113.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.3ms) select sqlite_version(*)  (106.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (114.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (116.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (115.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (116.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (108.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (114.0ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (106.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.8ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (106.6ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (119.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (202.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (133.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (124.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (91.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (108.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (108.7ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (159.8ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (103.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.8ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (98.6ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (106.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (107.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (106.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (108.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (99.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (99.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (104.5ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (107.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.9ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (107.5ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (124.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (106.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (106.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (116.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 20:12:08 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms) ActiveRecord::UnknownPrimaryKey (Unknown primary key for table users_urls in model OauthService::Access::UsersUrl.): activerecord (4.2.6) lib/active_record/reflection.rb:581:in `primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:339:in `association_primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:615:in `join_keys' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:40:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `reverse_each' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:169:in `make_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:183:in `make_inner_joins' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:109:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `flat_map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `join_constraints' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1045:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.6ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:12:10 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) ActiveRecord::UnknownPrimaryKey (Unknown primary key for table users_urls in model OauthService::Access::UsersUrl.): activerecord (4.2.6) lib/active_record/reflection.rb:581:in `primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:339:in `association_primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:615:in `join_keys' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:40:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `reverse_each' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:169:in `make_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:183:in `make_inner_joins' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:109:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `flat_map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `join_constraints' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1045:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:12:11 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) ActiveRecord::UnknownPrimaryKey (Unknown primary key for table users_urls in model OauthService::Access::UsersUrl.): activerecord (4.2.6) lib/active_record/reflection.rb:581:in `primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:339:in `association_primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:615:in `join_keys' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:40:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `reverse_each' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:169:in `make_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:183:in `make_inner_joins' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:109:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `flat_map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `join_constraints' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1045:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.7ms)  (102.6ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (115.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (108.1ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (106.9ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (112.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (131.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (279.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (107.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (117.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (113.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (255.9ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (123.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (107.2ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (132.2ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (149.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (113.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (124.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (132.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (124.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (105.1ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (106.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.7ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (106.9ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (294.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.3ms) select sqlite_version(*)  (122.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (116.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (107.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (186.6ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (114.8ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (106.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.8ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (108.3ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (115.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (106.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (115.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (116.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (132.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (132.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (115.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 20:14:10 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms) ActiveRecord::UnknownPrimaryKey (Unknown primary key for table users_urls in model OauthService::Access::UsersUrl.): activerecord (4.2.6) lib/active_record/reflection.rb:581:in `primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:339:in `association_primary_key' activerecord (4.2.6) lib/active_record/reflection.rb:615:in `join_keys' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:40:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `reverse_each' activerecord (4.2.6) lib/active_record/associations/join_dependency/join_association.rb:36:in `join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:169:in `make_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:183:in `make_inner_joins' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:109:in `block in join_constraints' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `flat_map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:108:in `join_constraints' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1045:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.5ms)  (115.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (188.8ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (133.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (132.4ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (131.8ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (147.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (131.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (115.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (116.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (116.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (116.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (115.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (114.5ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (109.0ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (107.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (116.0ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (98.6ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (115.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (106.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (123.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (109.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (99.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (105.9ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (106.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (107.0ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (107.1ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (112.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (98.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (98.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (115.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (109.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (104.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.0ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (98.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.9ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (123.4ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (107.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.3ms) select sqlite_version(*)  (132.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (115.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (215.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163538')  (116.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (103.2ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.6ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (99.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.5ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)  (133.3ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)   (114.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.3ms) select sqlite_version(*)  (130.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (116.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (183.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (99.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (99.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (105.5ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (98.0ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (106.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (98.7ms) CREATE TABLE "users_groups" ("user_group_id" integer NOT NULL, "user_id" integer NOT NULL)   (98.5ms) CREATE TABLE "users_urls" ("user_group_id" integer NOT NULL, "url_id" integer NOT NULL)  (106.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (106.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (106.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510164058')  (91.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (133.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (124.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUsersGroups (20160510171728)  (0.0ms) begin transaction  (0.1ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.0ms) rollback transaction  (102.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (103.5ms) commit transaction Migrating to CreateUsers (20160510162308)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162308"]]  (94.8ms) commit transaction Migrating to CreateUserGroups (20160510163400)  (0.2ms) begin transaction  (0.6ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510163400"]]  (103.4ms) commit transaction Migrating to CreateUsersGroups (20160510171728)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510171728"]]  (110.6ms) commit transaction Migrating to CreateUsersUrls (20160510171837)  (0.2ms) begin transaction  (0.5ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510171837"]]  (121.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 20:19:37 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "urls"."user_id" IS NULL Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.5ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: urls.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "urls"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.1ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:21:36 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:24:00 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::Url::UsersUrls): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.4ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:24:55 +0300 Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::Url::UsersUrls): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:25:01 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.5ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.6ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:25:02 +0300 Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.6ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.7ms)  (108.7ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (98.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (98.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (123.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (156.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (121.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (124.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (99.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171728')  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (108.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (104.2ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (115.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (98.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (97.8ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (117.0ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (97.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (98.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (99.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171728')  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (116.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (99.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 20:26:00 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.5ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:26:02 +0300 Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.5ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.1ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:26:03 +0300 Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.2ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_group.user_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_group"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.4ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:27:37 +0300 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.4ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.8ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: urls.users_url_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:27:39 +0300 Processing by Rails::WelcomeController#index as HTML OauthService::Access::Url Load (0.6ms) SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: urls.users_url_id: SELECT "urls".* FROM "urls" INNER JOIN "users_urls" ON "users_urls"."id" = "urls"."users_url_id" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:119:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.6ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:30:53 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.2ms) SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.6ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_groups.users_url_id: SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."users_url_id" = "users_urls"."id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:34:10 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.2ms) SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.6ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users_urls.users_group_id: SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.9ms)  (102.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (173.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (120.1ms) commit transaction Migrating to CreateUsers (20160510162308)  (0.1ms) begin transaction  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162308"]]  (136.2ms) commit transaction Migrating to CreateUserGroups (20160510163400)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510163400"]]  (119.8ms) commit transaction Migrating to CreateUsersGroups (20160510171728)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510171728"]]  (126.8ms) commit transaction Migrating to CreateUsersUrls (20160510171837)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510171837"]]  (127.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for 127.0.0.1 at 2016-05-10 20:35:00 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.3ms) SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.8ms) ActiveRecord::StatementInvalid (SQLite3::SQLException: no such column: users.users_group_id: SELECT "urls" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."users_group_id" = "users_groups"."id" INNER JOIN "urls" ON "urls"."users_url_id" = "users_urls"."id" WHERE "users_groups"."user_id" IS NULL): sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `initialize' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `new' sqlite3 (1.3.11) lib/sqlite3/database.rb:91:in `prepare' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:296:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `block in select_all' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `cache_sql' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `select_all' activerecord (4.2.6) lib/active_record/querying.rb:39:in `find_by_sql' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.8ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:36:18 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) NameError (uninitialized constant OauthService::Access::UsersGroup::Users): activerecord (4.2.6) lib/active_record/inheritance.rb:158:in `compute_type' activerecord (4.2.6) lib/active_record/reflection.rb:295:in `compute_class' activerecord (4.2.6) lib/active_record/reflection.rb:291:in `klass' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:36:37 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'users' was not found on OauthService::Access::UsersGroup; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:232:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.9ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:36:56 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) ActiveRecord::ConfigurationError (Association named 'url' was not found on OauthService::Access::UsersUrl; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `new' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:1039:in `build_joins' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:866:in `build_arel' activerecord (4.2.6) lib/active_record/relation/query_methods.rb:858:in `arel' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:118:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.1ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:37:14 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.2ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.9ms) ActionView::MissingTemplate (Missing template errors/403.html.erb with {:locale=>[:en], :formats=>[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in: * "/home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates" ): actionview (4.2.6) lib/action_view/path_set.rb:46:in `find' actionview (4.2.6) lib/action_view/lookup_context.rb:121:in `find' actionview (4.2.6) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template' actionview (4.2.6) lib/action_view/renderer/template_renderer.rb:40:in `determine_template' actionview (4.2.6) lib/action_view/renderer/template_renderer.rb:8:in `render' actionview (4.2.6) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.6) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.6) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.6) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.6) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.6) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.6) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:141:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (21.1ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:38:38 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.8ms) Completed 200 OK in 26ms (Views: 17.3ms | ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:41:26 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.9ms) Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 0.5ms) Started GET "/" for 127.0.0.1 at 2016-05-10 20:41:54 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 17ms (Views: 0.3ms | ActiveRecord: 0.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 00:53:15 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 12ms (Views: 0.2ms | ActiveRecord: 0.7ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (117.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) rollback transaction  (107.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar)   (0.1ms) rollback transaction  (106.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (97.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar)  (0.3ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar)   (0.1ms) rollback transaction  (235.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar)  (0.3ms) rollback transaction  (110.6ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (123.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (106.7ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (131.6ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.2ms) SELECT version FROM "schema_migrations"  (112.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (116.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171728')  (99.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (99.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (141.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400')  (104.1ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (98.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (107.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (124.9ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (123.2ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (106.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (106.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (106.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171728')  (116.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127')  (107.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162308')  (107.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510163400') Started GET "/login" for 127.0.0.1 at 2016-05-11 01:08:21 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" IS NULL Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 16ms (Views: 0.3ms | ActiveRecord: 0.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:10:09 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::UsersUrl Load (0.1ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 0]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 12ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:11:33 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:110:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:127:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:12:10 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", ",guest"]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `id' for #): activerecord (4.2.6) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.6) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:111:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:12:29 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:111:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:12:31 +0300 Processing by LoginController#index as HTML OauthService::Access::User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:111:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:128:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:12:47 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::Access::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.5ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:112:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:129:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.5ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "hhtp_method", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["hhtp_method", "GET"], ["id", 1], ["created_at", "2016-05-10 22:15:55.802125"], ["updated_at", "2016-05-10 22:15:55.802125"]]  (109.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "guest"], ["id", 1], ["created_at", "2016-05-10 22:16:06.043428"], ["updated_at", "2016-05-10 22:16:06.043428"]]  (129.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]]  (118.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1], ["created_at", "2016-05-10 22:18:15.288146"], ["updated_at", "2016-05-10 22:18:15.288146"]]  (118.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1], ["created_at", "2016-05-10 22:18:21.170819"], ["updated_at", "2016-05-10 22:18:21.170819"]]  (119.3ms) commit transaction UsersUrl Load (0.4ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.6ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" UsersUrl Load (0.6ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" UsersUrl Load (0.6ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.3ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 2]] UsersUrl Load (0.3ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.6ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.6ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.3ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.3ms) SELECT "url" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] UsersUrl Load (0.3ms) SELECT "users_urls"."id" FROM "users_urls" INNER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" INNER JOIN "users" ON "users"."id" = "users_groups"."user_id" INNER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] SQL (0.6ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] SQL (0.7ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.3ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] UserGroup Load (0.4ms) SELECT "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] UserGroup Load (0.2ms) SELECT "user_groups".* FROM "user_groups" WHERE "user_groups"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "users_groups"."id" AS t1_r0, "users_groups"."user_group_id" AS t1_r1, "users_groups"."user_id" AS t1_r2, "users_groups"."created_at" AS t1_r3, "users_groups"."updated_at" AS t1_r4, "users"."id" AS t2_r0, "users"."name" AS t2_r1, "users"."api_code" AS t2_r2, "users"."created_at" AS t2_r3, "users"."updated_at" AS t2_r4 FROM "users_urls" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] UsersUrl Load (0.5ms) SELECT "users_urls".* FROM "users_urls" Url Load (0.4ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" IN (1) UsersGroup Load (0.4ms) SELECT "users_groups".* FROM "users_groups" WHERE "users_groups"."id" IN (1) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (1) SQL (0.9ms) SELECT "url", "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.9ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? ORDER BY "users_urls"."id" ASC LIMIT 1 [["user_id", 1]] SQL (0.9ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] SQL (0.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Started GET "/login" for 127.0.0.1 at 2016-05-11 01:31:12 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:89:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:107:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.4ms) User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "guest"]] Started GET "/login" for 127.0.0.1 at 2016-05-11 01:32:42 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.0ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "guest"]] Started GET "/login" for 127.0.0.1 at 2016-05-11 01:33:55 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:34:56 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:34:56 +0300 Processing by LoginController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:34:57 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:34:57 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:36:27 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.6ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Started GET "/login" for 127.0.0.1 at 2016-05-11 01:37:58 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:38:24 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "guest"], ["id", 1], ["created_at", "2016-05-10 22:38:24.439266"], ["updated_at", "2016-05-10 22:38:24.439266"]]  (0.1ms) rollback transaction Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms) ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: users.id: INSERT INTO "users" ("name", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?)): sqlite3 (1.3.11) lib/sqlite3/statement.rb:108:in `step' sqlite3 (1.3.11) lib/sqlite3/statement.rb:108:in `block in each' sqlite3 (1.3.11) lib/sqlite3/statement.rb:107:in `loop' sqlite3 (1.3.11) lib/sqlite3/statement.rb:107:in `each' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:314:in `to_a' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:314:in `block in exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activerecord (4.2.6) lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log' activerecord (4.2.6) lib/active_record/connection_adapters/sqlite3_adapter.rb:293:in `exec_query' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:76:in `exec_insert' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:108:in `insert' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert' activerecord (4.2.6) lib/active_record/relation.rb:64:in `insert' activerecord (4.2.6) lib/active_record/persistence.rb:524:in `_create_record' activerecord (4.2.6) lib/active_record/counter_cache.rb:139:in `_create_record' activerecord (4.2.6) lib/active_record/locking/optimistic.rb:75:in `_create_record' activerecord (4.2.6) lib/active_record/attribute_methods/dirty.rb:133:in `_create_record' activerecord (4.2.6) lib/active_record/callbacks.rb:306:in `block in _create_record' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_create_callbacks' activerecord (4.2.6) lib/active_record/callbacks.rb:306:in `_create_record' activerecord (4.2.6) lib/active_record/timestamp.rb:57:in `_create_record' activerecord (4.2.6) lib/active_record/persistence.rb:504:in `create_or_update' activerecord (4.2.6) lib/active_record/callbacks.rb:302:in `block in create_or_update' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_save_callbacks' activerecord (4.2.6) lib/active_record/callbacks.rb:302:in `create_or_update' activerecord (4.2.6) lib/active_record/persistence.rb:120:in `save' activerecord (4.2.6) lib/active_record/validations.rb:37:in `save' activerecord (4.2.6) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.6) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.6) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.6) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.6) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.6) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.6) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.6) lib/active_record/transactions.rb:285:in `save' activerecord (4.2.6) lib/active_record/persistence.rb:34:in `create' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:83:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:113:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:38:55 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:38:56 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:38:57 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", ",guest"]] Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:39:13 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", ",guest"]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) NoMethodError (undefined method `id' for #): activerecord (4.2.6) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.6) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:90:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:108:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:39:52 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 38ms (ActiveRecord: 1.1ms) NoMethodError (undefined method `http_method' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:100:in `block in check_permission' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:98:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:107:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.1ms)  (101.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (115.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.2ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)   (0.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (0.2ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.2ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["http_method", "GET"], ["id", 1]] SQL (0.2ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (123.6ms) commit transaction Migrating to CreateUsersUrls (20160510171837)  (0.2ms) begin transaction  (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (0.1ms) rollback transaction  (139.3ms) DROP TABLE "urls"  (115.8ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (114.9ms) DROP TABLE "user_groups"  (107.7ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (108.0ms) DROP TABLE "users"  (115.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (123.0ms) DROP TABLE "users_groups"  (107.6ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (106.1ms) DROP TABLE "users_urls"  (116.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (0.2ms) SELECT version FROM "schema_migrations"  (100.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (98.6ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "hhtp_method" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (99.1ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (123.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (116.2ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  (106.7ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)   (123.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.2ms) select sqlite_version(*)  (106.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (107.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510171837')  (107.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160510162127') Started GET "/login" for 127.0.0.1 at 2016-05-11 01:41:12 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:89:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:107:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.3ms) User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("name", "id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "guest"], ["id", 1], ["created_at", "2016-05-10 22:41:42.494624"], ["updated_at", "2016-05-10 22:41:42.494624"]]  (118.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]]  (106.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1], ["created_at", "2016-05-10 22:41:42.774227"], ["updated_at", "2016-05-10 22:41:42.774227"]]  (106.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1], ["created_at", "2016-05-10 22:41:44.307235"], ["updated_at", "2016-05-10 22:41:44.307235"]]  (158.5ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 01:41:50 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "users_urls"."created_at" AS t0_r3, "users_urls"."updated_at" AS t0_r4, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."hhtp_method" AS t1_r3, "urls"."created_at" AS t1_r4, "urls"."updated_at" AS t1_r5, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users_groups"."created_at" AS t2_r3, "users_groups"."updated_at" AS t2_r4, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2, "users"."created_at" AS t3_r3, "users"."updated_at" AS t3_r4 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 35ms (ActiveRecord: 1.1ms) NoMethodError (undefined method `url_pattern' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:99:in `block in check_permission' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:98:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:107:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.0ms) Url Load (0.4ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 1]]  (102.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (98.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUrls (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)   (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (99.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]]  (118.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["http_method", "GET"], ["id", 1]]  (100.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]]  (99.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]]  (103.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]]  (103.7ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 01:43:53 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 31ms (ActiveRecord: 0.9ms) ActionView::MissingTemplate (Missing template login/index, application/index with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby]}. Searched in: * "/home/dcrow/Desktop/Work/oauth_service/test/dummy/app/views" ): actionview (4.2.6) lib/action_view/path_set.rb:46:in `find' actionview (4.2.6) lib/action_view/lookup_context.rb:121:in `find' actionview (4.2.6) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template' actionview (4.2.6) lib/action_view/renderer/template_renderer.rb:40:in `determine_template' actionview (4.2.6) lib/action_view/renderer/template_renderer.rb:8:in `render' actionview (4.2.6) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.6) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.6) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.6) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.6) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.6) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.6) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (21.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:45:28 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (109.8ms) Completed 500 Internal Server Error in 146ms (ActiveRecord: 1.0ms) ActionView::Template::Error (uninitialized constant ActionView::CompiledTemplates::OAuthService): 17: 18: <% content_for :content do %> 19: Войти через 20: <% OAuthService::Providers.providers_data.each do |provider| %> 21: t ^): app/controllers/login_controller.rb:8: syntax error, unexpected keyword_rescue, expecting ')' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:56:30 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" SyntaxError (/home/dcrow/Desktop/Work/oauth_service/test/dummy/app/controllers/login_controller.rb:6: syntax error, unexpected tIDENTIFIER, expecting ')' flash[:notice] = "Ошибка а... ^): app/controllers/login_controller.rb:6: syntax error, unexpected tIDENTIFIER, expecting ')' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 01:56:51 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 166ms (Views: 122.3ms | ActiveRecord: 1.4ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 01:56:51 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 01:56:51 +0300 Started GET "/oauth/google?code=4/aXgD2z-AGQgk-BvusC1DOzjlHtVxPKxwgn3sJKOwwEo" for 127.0.0.1 at 2016-05-11 01:56:53 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/aXgD2z-AGQgk-BvusC1DOzjlHtVxPKxwgn3sJKOwwEo", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.5ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:00:24 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:00:24 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:00:24 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:02:40 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:02:40 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:02:40 +0300 Started GET "/oauth/google?code=4/C9bmoKdVvR2VsbboVj4-T4IiqrF65NVnxQ7B-uzpBsM" for 127.0.0.1 at 2016-05-11 02:02:43 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/C9bmoKdVvR2VsbboVj4-T4IiqrF65NVnxQ7B-uzpBsM", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:02:45 +0300 Processing by LoginController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 21ms (Views: 11.9ms | ActiveRecord: 0.5ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:02:45 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:02:45 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:03:35 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 0.4ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:03:35 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:03:35 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:03:40 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 162ms (Views: 132.4ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:03:40 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:03:40 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:04:06 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:04:06 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:04:06 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:04:09 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 0.4ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:04:09 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:04:09 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:04:10 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 17ms (Views: 10.3ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:04:10 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:04:10 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:04:59 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 158ms (Views: 126.1ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:00 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:00 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:02 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:02 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:02 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:03 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:03 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:03 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 11ms (Views: 6.6ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:04 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:05 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.1ms) Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:05 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:05 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:05:14 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 12ms (Views: 7.4ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:05:14 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:05:14 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-11 02:06:31 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:06:31 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:06:31 +0300 Started GET "/login/google?code=4/ZoYet18P_koXkc2BnRGtSLBeVVVGxetfqJWi0e46OPk" for 127.0.0.1 at 2016-05-11 02:06:32 +0300 ActionController::RoutingError (No route matches [GET] "/login/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (18.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:06:35 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:06:35 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:06:35 +0300 Started GET "/login/google?code=4/veI_BPLCmWTJO8xKtdN1VWNYsfz-RBWP6bNLdO-5pxc" for 127.0.0.1 at 2016-05-11 02:06:48 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/veI_BPLCmWTJO8xKtdN1VWNYsfz-RBWP6bNLdO-5pxc", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 28ms (Views: 0.2ms | ActiveRecord: 2.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:06:52 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 33ms (Views: 27.5ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:06:52 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:06:52 +0300  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/^"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]]  (100.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]]  (104.4ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 02:08:25 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 160ms (Views: 128.2ms | ActiveRecord: 0.9ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:08:25 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:08:25 +0300 Started GET "/login/google?code=4/lHPwzOEt0XmZfJ8VVZXEg8h9efvMyZBtRUX4Y19BTjY" for 127.0.0.1 at 2016-05-11 02:08:26 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/lHPwzOEt0XmZfJ8VVZXEg8h9efvMyZBtRUX4Y19BTjY", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:09:30 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 163ms (Views: 129.1ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:09:30 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:09:30 +0300 Started GET "/login/google?code=4/u60MBYHGOlwOKulSidHMgN5JM1s5srl7Th-w9fFvoU4" for 127.0.0.1 at 2016-05-11 02:09:31 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/u60MBYHGOlwOKulSidHMgN5JM1s5srl7Th-w9fFvoU4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 4ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/(($)|([/]([^/])*))"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 3]]  (107.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 3], ["users_group_id", 1]]  (0.1ms) rollback transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 3], ["url_id", 3], ["users_group_id", 1]]  (123.7ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 02:11:03 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.3ms) Completed 200 OK in 166ms (Views: 131.9ms | ActiveRecord: 0.9ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:11:03 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:11:03 +0300 Started GET "/login/google?code=4/AinFgFR8fJPnu1d_5imAlybDJL7FdSO1VIQ_-bccCrg" for 127.0.0.1 at 2016-05-11 02:11:05 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/AinFgFR8fJPnu1d_5imAlybDJL7FdSO1VIQ_-bccCrg", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/($)|([/]([^/])*))"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 4]]  (120.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 4], ["url_id", 4], ["users_group_id", 1]]  (113.2ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 02:15:04 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 158ms (Views: 125.2ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:15:04 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:15:04 +0300 Started GET "/login/google?code=4/ob5bc7lseMb4SkmqMQVctI5C5uZseZZnsrEHbkSbcr4" for 127.0.0.1 at 2016-05-11 02:15:05 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ob5bc7lseMb4SkmqMQVctI5C5uZseZZnsrEHbkSbcr4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.4ms) RegexpError (unmatched close parenthesis: /^\/login\/($)|([\/]([^\/])*))/): /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:99:in `initialize' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:99:in `new' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:99:in `block in check_permission' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:98:in `check_permission' /home/dcrow/Desktop/Work/oauth_service/lib/oauth_service/access.rb:107:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.7ms)  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/($)|([/]([^/])*)"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 4]]  (0.1ms) rollback transaction Url Load (0.5ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 4]] SQL (97.8ms) DELETE FROM "urls" WHERE "urls"."id" = ? [["id", 4]]  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/($)|([/]([^/])*)"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 4]]  (169.0ms) commit transaction Started GET "/oauth/google?code=4/8AT_5D-Hdim5lRzcNXDfGIsJZN2O-NefZWhrVMFsNhE" for 127.0.0.1 at 2016-05-11 02:18:30 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActionController::RoutingError (No route matches [GET] "/oauth/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 02:18:33 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.7ms) Completed 200 OK in 147ms (Views: 118.8ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:18:34 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:18:34 +0300 Started GET "/login/google?code=4/b6tnHwlybJRzmYSoC7yVcn7KYcPn-yFo3hNz49Cy4ag" for 127.0.0.1 at 2016-05-11 02:18:35 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/b6tnHwlybJRzmYSoC7yVcn7KYcPn-yFo3hNz49Cy4ag", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/login/google?code=4/iijQT_c_MQQ83aqHu5_cRYmZzRMaw4paGetcIHyyCbA" for 127.0.0.1 at 2016-05-11 02:21:15 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/iijQT_c_MQQ83aqHu5_cRYmZzRMaw4paGetcIHyyCbA", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 34ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/login/google?code=4/iijQT_c_MQQ83aqHu5_cRYmZzRMaw4paGetcIHyyCbA" for 127.0.0.1 at 2016-05-11 02:21:41 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/iijQT_c_MQQ83aqHu5_cRYmZzRMaw4paGetcIHyyCbA", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 7ms (Views: 0.4ms | ActiveRecord: 0.3ms) Started GET "/login/google?code=4/f-3kfzhRABGoX96ZXPntoovGAucDyctgyfh61lEC3Mw" for 127.0.0.1 at 2016-05-11 02:21:52 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/f-3kfzhRABGoX96ZXPntoovGAucDyctgyfh61lEC3Mw", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 33ms (Views: 0.2ms | ActiveRecord: 1.0ms) Url Load (0.2ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 3]] Url Load (0.3ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 3]] SQL (101.7ms) DELETE FROM "urls" WHERE "urls"."id" = ? [["id", 3]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/google"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 3]]  (117.7ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-11 02:24:29 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 160ms (Views: 127.2ms | ActiveRecord: 1.1ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 02:24:29 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 02:24:29 +0300 Started GET "/login/google?code=4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg" for 127.0.0.1 at 2016-05-11 02:24:30 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `Access' for OauthService:Module): app/controllers/login_controller.rb:5:in `oauth_callback' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login/google?code=4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg" for 127.0.0.1 at 2016-05-11 02:25:06 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 33ms (ActiveRecord: 0.9ms) ArgumentError (wrong number of arguments (1 for 3)): app/controllers/login_controller.rb:5:in `oauth_callback' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.9ms) Started GET "/login/google?code=4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg" for 127.0.0.1 at 2016-05-11 02:26:33 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ZVcKP_FXL3QDyEwzxJGLIwBeIlhEGkRHWzK32yvcqkg", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 605ms (Views: 0.2ms | ActiveRecord: 1.1ms) Url Load (0.2ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 3]] SQL (102.6ms) DELETE FROM "urls" WHERE "urls"."id" = ? [["id", 3]]  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 3]]  (103.0ms) commit transaction Started GET "/login/google?code=4/f7guGURnvxcrpmx34jCyRjd5IllraKvxA_dZ7gwa6C4" for 127.0.0.1 at 2016-05-11 02:30:08 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/f7guGURnvxcrpmx34jCyRjd5IllraKvxA_dZ7gwa6C4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 604ms (Views: 0.1ms | ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-05-11 19:20:37 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.7ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (19.6ms) Completed 200 OK in 317ms (Views: 144.7ms | ActiveRecord: 2.7ms) Started GET "/index" for 127.0.0.1 at 2016-05-11 19:21:30 +0300 ActionController::RoutingError (No route matches [GET] "/index"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (182.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (32.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (302.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 19:21:46 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.5ms) Completed 200 OK in 239ms (Views: 232.7ms | ActiveRecord: 0.3ms) Started GET "/login/google?code=4/ONqfZDXZxzavrE_Nj2v9HEsyfhNLgJk6Wo-pG19eSNw" for 127.0.0.1 at 2016-05-11 19:21:48 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ONqfZDXZxzavrE_Nj2v9HEsyfhNLgJk6Wo-pG19eSNw", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 752ms (Views: 0.1ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 19:38:28 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 158ms (Views: 125.6ms | ActiveRecord: 1.0ms) Started GET "/login/google?code=4/VWBYd1lF0vBT-n2Vg1PWibx0ZGs17z-Ah3ZnqlgDTcU" for 127.0.0.1 at 2016-05-11 19:38:29 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/VWBYd1lF0vBT-n2Vg1PWibx0ZGs17z-Ah3ZnqlgDTcU", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 602ms (Views: 0.1ms | ActiveRecord: 0.2ms) Started GET "/login/google?code=4/YSGqkKN7Jpo-HqO-pB6PooQ9oMwg2iAH3zrElh_SXHQ" for 127.0.0.1 at 2016-05-11 19:40:44 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/YSGqkKN7Jpo-HqO-pB6PooQ9oMwg2iAH3zrElh_SXHQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 35ms (Views: 0.1ms | ActiveRecord: 1.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 19:42:34 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 166ms (Views: 133.1ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-11 19:42:35 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-11 19:42:35 +0300 Started GET "/login/google?code=4/QionD5awP8SRY12TsrGjY2aqqOxzd4u8f5PArOcVMns" for 127.0.0.1 at 2016-05-11 19:42:36 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/QionD5awP8SRY12TsrGjY2aqqOxzd4u8f5PArOcVMns", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.2ms) Started GET "/" for 127.0.0.1 at 2016-05-11 19:44:20 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.1ms) Completed 200 OK in 46ms (Views: 5.7ms | ActiveRecord: 1.2ms) Started GET "/" for 127.0.0.1 at 2016-05-11 19:44:24 +0300 Processing by Rails::WelcomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.1ms) Completed 200 OK in 9ms (Views: 1.5ms | ActiveRecord: 0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-11 19:44:27 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 155ms (Views: 148.4ms | ActiveRecord: 0.4ms) Started GET "/login/google?code=4/bqaYMgiX3QnDkryXeroxGazCmo-PHrCkXZV2s6Ud3u4" for 127.0.0.1 at 2016-05-11 19:44:29 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/bqaYMgiX3QnDkryXeroxGazCmo-PHrCkXZV2s6Ud3u4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/login/google?code=4/nnqtlXS_kGtLcd0pmQZYF5K_NNzC_GbZH5of-QjWlt0" for 127.0.0.1 at 2016-05-12 14:19:41 +0300 ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/nnqtlXS_kGtLcd0pmQZYF5K_NNzC_GbZH5of-QjWlt0", "provider_name"=>"google"} User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (1.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 225ms (Views: 0.9ms | ActiveRecord: 6.4ms) Started GET "/" for 127.0.0.1 at 2016-05-12 14:44:47 +0300 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (1.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (5.5ms) Completed 200 OK in 242ms (Views: 26.9ms | ActiveRecord: 7.2ms) Started GET "/app/schedule_request" for 127.0.0.1 at 2016-05-12 15:06:02 +0300 ActionController::RoutingError (No route matches [GET] "/app/schedule_request"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (27.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (48.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (163.9ms) Started GET "/app/schedule_request" for 127.0.0.1 at 2016-05-12 15:06:09 +0300 ActionController::RoutingError (No route matches [GET] "/app/schedule_request"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (5.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (89.3ms) Started GET "/" for 127.0.0.1 at 2016-05-13 22:03:28 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (19.6ms) Completed 200 OK in 268ms (Views: 138.6ms | ActiveRecord: 1.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:03:33 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (1.0ms) Completed 200 OK in 225ms (Views: 221.1ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:03:37 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 15ms (Views: 8.9ms | ActiveRecord: 0.4ms) Started GET "/login/google?code=4/hJSVLcicsCSHzW_B6GOXgIRwAL31utjV5MYp8TMSGlE" for 127.0.0.1 at 2016-05-13 22:03:40 +0300 ActionController::RoutingError (No route matches [GET] "/login/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (36.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (74.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:18:55 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Rendered login/index.html.erb within layouts/application (1.1ms) Completed 200 OK in 126ms (Views: 125.4ms | ActiveRecord: 0.0ms) Started GET "/login/google?code=4/dITZLekL8fGcHNgybtjQnjT3ihutzY919NtnjlPMemk" for 127.0.0.1 at 2016-05-13 22:18:58 +0300 AbstractController::ActionNotFound (The action 'oauth_callback' could not be found for LoginController): actionpack (4.2.6) lib/abstract_controller/base.rb:132:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:20:06 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" LoadError (Unable to autoload constant AccessController, expected /home/dcrow/Desktop/Work/oauth_service/app/controllers/access_controller.rb to define it): activesupport (4.2.6) lib/active_support/dependencies.rb:495:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:5:in `' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:4:in `' activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.6) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.6) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.6) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.6) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `const_get' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `block in constantize' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `constantize' activesupport (4.2.6) lib/active_support/dependencies.rb:566:in `get' activesupport (4.2.6) lib/active_support/dependencies.rb:597:in `constantize' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:60:in `controller' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:39:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:22:00 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" LoadError (Unable to autoload constant AccessController, expected /home/dcrow/Desktop/Work/oauth_service/app/controllers/access_controller.rb to define it): activesupport (4.2.6) lib/active_support/dependencies.rb:495:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:5:in `' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:4:in `' activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.6) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.6) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.6) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.6) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.6) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `const_get' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `block in constantize' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `constantize' activesupport (4.2.6) lib/active_support/dependencies.rb:566:in `get' activesupport (4.2.6) lib/active_support/dependencies.rb:597:in `constantize' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:60:in `controller' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:39:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:29:55 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.3ms) Completed 200 OK in 32ms (Views: 5.6ms | ActiveRecord: 1.0ms) Started GET "/login/google?code=4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY" for 127.0.0.1 at 2016-05-13 22:29:57 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) NameError (uninitialized constant OauthService::Access): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:50:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.4ms) Started GET "/login/google?code=4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY" for 127.0.0.1 at 2016-05-13 22:30:16 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 34ms (ActiveRecord: 1.9ms) NameError (uninitialized constant LoginController::Providers): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:8:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:50:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.7ms) Started GET "/login/google?code=4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY" for 127.0.0.1 at 2016-05-13 22:30:48 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 647ms (ActiveRecord: 1.0ms) NoMethodError (undefined method `[]' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:51:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/login/google?code=4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY" for 127.0.0.1 at 2016-05-13 22:31:27 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/S8u7jeg55lzxJo3-YyiMIpC6G-EggN3emYVRY-Uz3MY", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 150ms (ActiveRecord: 1.0ms) StandardError (Ошибка при получении токена { "error": "invalid_grant", "error_description": "Code was already redeemed." } . Код ответа 400): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:22:in `block in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:13:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:50:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:31:33 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.0ms) Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 0.3ms) Started GET "/login/google?code=4/FvJA2pZ1nPcp62XSEbgAlTq2G9eItv1AR-2jamuIv1Q" for 127.0.0.1 at 2016-05-13 22:31:34 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/FvJA2pZ1nPcp62XSEbgAlTq2G9eItv1AR-2jamuIv1Q", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 452ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `[]' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:51:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.7ms) Started GET "/login/google?code=4/FvJA2pZ1nPcp62XSEbgAlTq2G9eItv1AR-2jamuIv1Q" for 127.0.0.1 at 2016-05-13 22:31:55 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/FvJA2pZ1nPcp62XSEbgAlTq2G9eItv1AR-2jamuIv1Q", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 145ms (ActiveRecord: 1.2ms) StandardError (Ошибка при получении токена { "error": "invalid_grant", "error_description": "Code was already redeemed." } . Код ответа 400): /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:22:in `block in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:13:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:50:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:31:58 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.2ms) Started GET "/login/google?code=4/dzwygtT_6ceTeXOFMdz_Sb7Tl5fuj1QisxnKXe1ktKo" for 127.0.0.1 at 2016-05-13 22:31:59 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/dzwygtT_6ceTeXOFMdz_Sb7Tl5fuj1QisxnKXe1ktKo", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 421ms (ActiveRecord: 0.2ms) ArgumentError (wrong number of arguments (1 for 2)): activerecord (4.2.6) lib/active_record/relation.rb:364:in `update' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:53:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:32:17 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 29ms (Views: 3.3ms | ActiveRecord: 1.7ms) Started GET "/login/google?code=4/JCzvwGmCz3dri04CfrAffHGcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:32:19 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/JCzvwGmCz3dri04CfrAffHGcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 434ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `update_attributes' for #): activerecord (4.2.6) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.6) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:53:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.9ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:32:36 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 1465ms (ActiveRecord: 1.4ms) NoMethodError (undefined method `update_attributes' for #): activerecord (4.2.6) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.6) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/login_controller.rb:54:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.6ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 22:46:43 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Rendered login/index.html.erb within layouts/application (1.2ms) Completed 200 OK in 127ms (Views: 126.4ms | ActiveRecord: 0.0ms) Started GET "/login/google?code=4/gHhGcjJunaq-SiZ7VwC36OfKthVz_g249ilHAOYML6c" for 127.0.0.1 at 2016-05-13 22:46:46 +0300 AbstractController::ActionNotFound (The action 'oauth_callback' could not be found for LoginController): actionpack (4.2.6) lib/abstract_controller/base.rb:132:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.4ms) Started GET "/login/google?code=4/gHhGcjJunaq-SiZ7VwC36OfKthVz_g249ilHAOYML6c" for 127.0.0.1 at 2016-05-13 22:47:06 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" AbstractController::ActionNotFound (The action 'oauth_callback' could not be found for LoginController): actionpack (4.2.6) lib/abstract_controller/base.rb:132:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (1.1ms) Started GET "/login/google?code=4/gHhGcjJunaq-SiZ7VwC36OfKthVz_g249ilHAOYML6c" for 127.0.0.1 at 2016-05-13 22:47:31 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" RuntimeError (Circular dependency detected while autoloading constant LoginController): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms) Started GET "/login/google?code=4/gHhGcjJunaq-SiZ7VwC36OfKthVz_g249ilHAOYML6c" for 127.0.0.1 at 2016-05-13 22:48:00 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" RuntimeError (Circular dependency detected while autoloading constant LoginController): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.5ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:50:03 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" AbstractController::ActionNotFound (The action 'oauth_callback' could not be found for LoginController): actionpack (4.2.6) lib/abstract_controller/base.rb:132:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/unknown_action.html.erb within rescues/layout (0.9ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:53:23 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActionController::RoutingError (uninitialized constant LoginController): activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `const_get' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `block in constantize' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `constantize' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:60:in `controller' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:39:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.6ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:55:27 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 328ms (Views: 0.2ms | ActiveRecord: 1.4ms) NoMethodError (undefined method `symbolize_keys' for false:FalseClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:53:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:55:53 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 377ms (Views: 0.2ms | ActiveRecord: 1.1ms) AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".): actionpack (4.2.6) lib/action_controller/metal/rendering.rb:15:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:43:in `block (2 levels) in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:34:in `block in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:14:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:53:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.2ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:56:39 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 137ms (Views: 0.3ms | ActiveRecord: 1.2ms) NoMethodError (undefined method `symbolize_keys' for false:FalseClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:53:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:56:53 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 132ms (Views: 0.6ms | ActiveRecord: 1.1ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:57:44 +0300 SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:23: syntax error, unexpected '}', expecting => /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:34: syntax error, unexpected keyword_do_block, expecting keyword_end http_info.start do |http_info_request| ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:69: syntax error, unexpected keyword_end, expecting end-of-input): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:58:03 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 141ms (Views: 0.6ms | ActiveRecord: 1.0ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:58:31 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 696ms (Views: 0.4ms | ActiveRecord: 1.5ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:59:21 +0300 SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:44: syntax error, unexpected ',', expecting => ...> {:success => false, res.body, :status => res.code} ... ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:44: syntax error, unexpected '}', expecting keyword_end): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.1ms) Started GET "/login/google?code=4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ" for 127.0.0.1 at 2016-05-13 22:59:58 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/WoxfBkx9TKr425GP4uwsm3GcUxAYvNCXGuw_tT3AdPQ", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 159ms (Views: 0.4ms | ActiveRecord: 2.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:01:50 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.7ms) Completed 200 OK in 24ms (Views: 3.7ms | ActiveRecord: 1.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:01:52 +0300 Processing by LoginController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.4ms) Completed 200 OK in 16ms (Views: 4.1ms | ActiveRecord: 0.6ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:01:57 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 20ms (Views: 2.6ms | ActiveRecord: 1.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:01:58 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.4ms) Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:02:02 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.2ms) Completed 200 OK in 33ms (Views: 5.4ms | ActiveRecord: 1.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:02:22 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 1.5ms | ActiveRecord: 0.3ms) Started GET "/" for 127.0.0.1 at 2016-05-13 23:02:25 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.5ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:02:29 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:04:20 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 25ms (Views: 3.0ms | ActiveRecord: 1.5ms) Started GET "/login/google?code=4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno" for 127.0.0.1 at 2016-05-13 23:04:22 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "y.barkovskij@unact.ru"]] Completed 200 OK in 484ms (Views: 0.3ms | ActiveRecord: 0.7ms) Started GET "/login/google?code=4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno" for 127.0.0.1 at 2016-05-13 23:06:01 +0300 SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:64: syntax error, unexpected ':', expecting '}' ...error=> "No such user exists" :status => 200} ... ^): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.2ms) Started GET "/login/google?code=4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno" for 127.0.0.1 at 2016-05-13 23:06:22 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 141ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/login/google?code=4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno" for 127.0.0.1 at 2016-05-13 23:08:31 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 451ms (Views: 0.3ms | ActiveRecord: 1.2ms) Started GET "/login/google?code=4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno" for 127.0.0.1 at 2016-05-13 23:08:44 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/O-IdTCkt_RXlfoM8Bn4OZMRcaJ8uwM55n-TEMiaKTno", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 167ms (Views: 0.3ms | ActiveRecord: 1.5ms) Started GET "/" for 127.0.0.1 at 2016-05-13 23:20:37 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.1ms) Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:22:02 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:22:03 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 10ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:22:08 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.3ms) Completed 200 OK in 39ms (Views: 5.9ms | ActiveRecord: 1.2ms) Started GET "/login/yandex?code=6350137" for 127.0.0.1 at 2016-05-13 23:22:52 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6350137", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 500 Internal Server Error in 10406ms (ActiveRecord: 0.5ms) JSON::ParserError (795: unexpected token at ''): json (1.8.3) lib/json/common.rb:155:in `parse' json (1.8.3) lib/json/common.rb:155:in `parse' activesupport (4.2.6) lib/active_support/json/decoding.rb:26:in `decode' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:44:in `block (2 levels) in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:35:in `block in get_user_info' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:12:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:55:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (28.7ms) Started GET "/login/yandex?code=6350137" for 127.0.0.1 at 2016-05-13 23:24:36 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6350137", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 97ms (Views: 0.4ms | ActiveRecord: 1.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:24:41 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:24:41 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=7249693" for 127.0.0.1 at 2016-05-13 23:24:42 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"7249693", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 166ms (Views: 0.5ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:25:32 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:25:32 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.4ms) Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET "/login/yandex?code=3532518" for 127.0.0.1 at 2016-05-13 23:25:34 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3532518", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 261ms (Views: 0.4ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:25:43 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 1.7ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=7282780" for 127.0.0.1 at 2016-05-13 23:26:00 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"7282780", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 152ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:27:24 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 23ms (Views: 2.9ms | ActiveRecord: 1.3ms) Started GET "/login/yandex?code=9096364" for 127.0.0.1 at 2016-05-13 23:27:26 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9096364", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 556ms (Views: 0.3ms | ActiveRecord: 0.4ms) Started GET "/" for 127.0.0.1 at 2016-05-13 23:30:42 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.5ms) Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:30:47 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=5763378" for 127.0.0.1 at 2016-05-13 23:30:50 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"5763378", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 147ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login/yandex?code=8700786" for 127.0.0.1 at 2016-05-13 23:32:27 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"8700786", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 215ms (Views: 0.3ms | ActiveRecord: 0.5ms) Started GET "/login/yandex?code=8700786" for 127.0.0.1 at 2016-05-13 23:34:29 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"8700786", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 70ms (Views: 0.3ms | ActiveRecord: 0.7ms) Started GET "/login/" for 127.0.0.1 at 2016-05-13 23:34:33 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.4ms) Completed 200 OK in 8ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET "/login/yandex?code=6071794" for 127.0.0.1 at 2016-05-13 23:34:34 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6071794", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 315ms (Views: 0.3ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=3813463" for 127.0.0.1 at 2016-05-13 23:36:55 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3813463", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 172ms (Views: 0.3ms | ActiveRecord: 2.0ms) Started GET "/login/google?code=4/J3-Kupm-z5TAa1cKuu_YEJb7esxM5cfHIOqj4OxjtSQ" for 127.0.0.1 at 2016-05-13 23:37:29 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/J3-Kupm-z5TAa1cKuu_YEJb7esxM5cfHIOqj4OxjtSQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 354ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/login/google?code=4/xaKmSHUi3SKdB3-6OMKBzwsIiJbEjo_VDfmTFGFNYIw" for 127.0.0.1 at 2016-05-13 23:41:12 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/xaKmSHUi3SKdB3-6OMKBzwsIiJbEjo_VDfmTFGFNYIw", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 835ms (Views: 0.2ms | ActiveRecord: 2.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:41:18 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.4ms) Completed 200 OK in 10ms (Views: 4.3ms | ActiveRecord: 0.4ms) Started GET "/login/yandex?code=6045367" for 127.0.0.1 at 2016-05-13 23:41:20 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6045367", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 196ms (Views: 0.3ms | ActiveRecord: 0.5ms) Started GET "/login/yandex?code=9861154" for 127.0.0.1 at 2016-05-13 23:41:50 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9861154", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 170ms (Views: 0.2ms | ActiveRecord: 1.5ms) Started GET "/login/google?code=4/4okA25lRHfIQcy38wFTL3vSbo1L40BsVBrkiHb6KCyU" for 127.0.0.1 at 2016-05-13 23:41:53 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/4okA25lRHfIQcy38wFTL3vSbo1L40BsVBrkiHb6KCyU", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 373ms (Views: 0.4ms | ActiveRecord: 0.9ms) Started GET "/login/yandex?code=4938657" for 127.0.0.1 at 2016-05-13 23:42:01 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4938657", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 177ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/login/google?code=4/zwwgHPmYMkbcqu74JA7fDrwd9A1864MuJibb2dutXWc" for 127.0.0.1 at 2016-05-13 23:42:03 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/zwwgHPmYMkbcqu74JA7fDrwd9A1864MuJibb2dutXWc", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 372ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/login/google?code=4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI" for 127.0.0.1 at 2016-05-13 23:42:07 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 693ms (Views: 0.3ms | ActiveRecord: 0.7ms) User Load (3.1ms) SELECT "users".* FROM "users"  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "users" ("id", "name") VALUES (?, ?) [["id", 2], ["name", "y.barkovskij@unact.ru"]]  (106.4ms) commit transaction Started GET "/login/google?code=4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI" for 127.0.0.1 at 2016-05-13 23:43:35 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 145ms (Views: 0.3ms | ActiveRecord: 1.1ms) Started GET "/login/google?code=4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI" for 127.0.0.1 at 2016-05-13 23:43:52 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/Z2h6jGy3pdIdp9ztvu8B42AUPcwfF83T-My0KLwD0XI", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 160ms (Views: 0.3ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:43:57 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.7ms) Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=4377610" for 127.0.0.1 at 2016-05-13 23:43:59 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4377610", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 189ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login/google?code=4/c-cp472eE0kEE_30A16ytoL1lWdboJ8IaGmV8fuaWMQ" for 127.0.0.1 at 2016-05-13 23:44:02 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/c-cp472eE0kEE_30A16ytoL1lWdboJ8IaGmV8fuaWMQ", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 368ms (Views: 0.1ms | ActiveRecord: 0.6ms) Started GET "/login/google?code=4/CJUMKnKG7Io4MiLpnZJbs0SZXanSH1dPbuVsT1gdtfI" for 127.0.0.1 at 2016-05-13 23:44:46 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/CJUMKnKG7Io4MiLpnZJbs0SZXanSH1dPbuVsT1gdtfI", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL Completed 200 OK in 515ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/login/google?code=4/0YESYXC06b-KZDyUzssUpAk68TzFbu_yyB5rINDpWrY" for 127.0.0.1 at 2016-05-13 23:45:41 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/0YESYXC06b-KZDyUzssUpAk68TzFbu_yyB5rINDpWrY", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 398ms (ActiveRecord: 1.8ms) NoMethodError (undefined method `update_attributes' for #): activerecord (4.2.6) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.6) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:75:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.8ms) Started GET "/login/google?code=4/0YESYXC06b-KZDyUzssUpAk68TzFbu_yyB5rINDpWrY" for 127.0.0.1 at 2016-05-13 23:46:27 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/0YESYXC06b-KZDyUzssUpAk68TzFbu_yyB5rINDpWrY", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 147ms (Views: 0.4ms | ActiveRecord: 1.2ms) Started GET "/login/google?code=4/AJDUhX759BwjrbyC2Pw8-rvDxJ1O080MyoQYcPRlIOA" for 127.0.0.1 at 2016-05-13 23:46:30 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/AJDUhX759BwjrbyC2Pw8-rvDxJ1O080MyoQYcPRlIOA", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 396ms (ActiveRecord: 0.5ms) NameError (undefined local variable or method `api_code' for #): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:75:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.3ms) Started GET "/login/google?code=4/AJW_a5M1Fwa88Wj4frhlmPWaFFe4B-itUprY8CM9aUA" for 127.0.0.1 at 2016-05-13 23:49:03 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/AJW_a5M1Fwa88Wj4frhlmPWaFFe4B-itUprY8CM9aUA", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 359ms (ActiveRecord: 1.3ms) NameError (undefined local variable or method `api_code' for #): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:74:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.9ms) Started GET "/login/google?code=4/XU6l9Gif2tgBnKxPLM2IkVKwvE5bhN_rNRbWWCSTQkY" for 127.0.0.1 at 2016-05-13 23:49:38 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/XU6l9Gif2tgBnKxPLM2IkVKwvE5bhN_rNRbWWCSTQkY", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]] Completed 500 Internal Server Error in 401ms (ActiveRecord: 2.2ms) NoMethodError (undefined method `empty?' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:71:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.0ms) Started GET "/login/google?code=4/bkR4bq1PFQ0cvBCuaHBJ1xKo2jp42wuNm1wn42jAXNM" for 127.0.0.1 at 2016-05-13 23:49:57 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/bkR4bq1PFQ0cvBCuaHBJ1xKo2jp42wuNm1wn42jAXNM", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "b6d8c6bd-ef3d-4d88-85af-b8dae6f22ca5"], ["id", 2]]  (121.3ms) commit transaction Completed 200 OK in 523ms (Views: 0.6ms | ActiveRecord: 124.2ms) Started GET "/login/yandex?code=4258160" for 127.0.0.1 at 2016-05-13 23:50:15 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4258160", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 183ms (Views: 0.1ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-13 23:54:11 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.3ms) Completed 200 OK in 33ms (Views: 3.6ms | ActiveRecord: 1.8ms) Started GET "/login/google?code=4/-zcHqA00hgwNBMHBkmfajxz5-g9zxj9IJXpJVmqDFrY" for 127.0.0.1 at 2016-05-13 23:54:13 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/-zcHqA00hgwNBMHBkmfajxz5-g9zxj9IJXpJVmqDFrY", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 551ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login/google?code=4/o46L3KkCdSt6VA2M7ruyuXpmbgpb-kexa5_ctbPMi24" for 127.0.0.1 at 2016-05-13 23:54:17 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/o46L3KkCdSt6VA2M7ruyuXpmbgpb-kexa5_ctbPMi24", "provider_name"=>"google"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 427ms (Views: 0.3ms | ActiveRecord: 0.7ms) Started GET "/login/google?code=4/JAe_648z3aGKpf5TSpPO3auTyaLDLkoV2TKaHdWKJt0" for 127.0.0.1 at 2016-05-13 23:54:31 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/JAe_648z3aGKpf5TSpPO3auTyaLDLkoV2TKaHdWKJt0", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 382ms (Views: 0.5ms | ActiveRecord: 2.0ms) Started GET "/login/google?code=4/fw7ujwN4q_FoqVrHKnWbVFIXN_6cU4XNxhZwSzaaU9w" for 127.0.0.1 at 2016-05-13 23:54:54 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/fw7ujwN4q_FoqVrHKnWbVFIXN_6cU4XNxhZwSzaaU9w", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 574ms (Views: 0.3ms | ActiveRecord: 2.0ms) Started GET "/login/google?code=4/snHexv4u7_VT-6H_CqZUJ-NwmDr7mnBsu0mLRTa-8ho" for 127.0.0.1 at 2016-05-13 23:55:25 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/snHexv4u7_VT-6H_CqZUJ-NwmDr7mnBsu0mLRTa-8ho", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "a18ac077-1369-4c98-ba10-e4f1ecfa0f59"], ["id", 2]]  (90.4ms) commit transaction Completed 200 OK in 560ms (Views: 0.4ms | ActiveRecord: 92.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:12:12 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 21ms (Views: 2.4ms | ActiveRecord: 1.1ms) Started GET "/login/yandex?code=3742743" for 127.0.0.1 at 2016-05-14 00:12:14 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3742743", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 220ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login/google?code=4/fL-a-tTCSkhtnvSH631tcI5X5Ab1rx5QZ9r2VqVTJ6k" for 127.0.0.1 at 2016-05-14 00:12:17 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/fL-a-tTCSkhtnvSH631tcI5X5Ab1rx5QZ9r2VqVTJ6k", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.3ms) begin transaction SQL (0.4ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "fd98e66b-3af4-4547-9355-297a7b3c8932"], ["id", 2]]  (99.7ms) commit transaction Completed 200 OK in 628ms (Views: 0.2ms | ActiveRecord: 101.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:12:26 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.4ms) Completed 500 Internal Server Error in 39ms (ActiveRecord: 1.0ms) ActionView::Template::Error (uninitialized constant OauthService::Providers): 3: 4: 5: Войти через 6: <% OauthService::Providers.providers_data.each do |provider| %> 7: Войти через 6: <% OauthService::Provider.providers_data.each do |provider| %> 7: Войти через 6: <% OauthService::Provider.providers_data.each do |provider| %> 7: ' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:14:11 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.5ms) Completed 500 Internal Server Error in 35ms (ActiveRecord: 1.0ms) ActionView::Template::Error (uninitialized constant OauthService::Providers): 3: 4: 5: Войти через 6: <% OauthService::Provider.providers_data.each do |provider| %> 7: Войти через 6: <% OauthService::Provider.providers_data.each do |provider| %> 7: Войти через 6: <% p OauthService::Provider %> 7: <% OauthService::Provider.providers_data.each do |provider| %> 8: Войти через 6: <% p OauthService::Provider.providers_data %> 7: <% OauthService::Provider.providers_data.each do |provider| %> 8: "2275416", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 206ms (Views: 0.3ms | ActiveRecord: 0.6ms) Started GET "/login/google?code=4/b9_JhRTGIOFnMdF670Ak8ETe_-rEH6NHqpCUnlN7Km4" for 127.0.0.1 at 2016-05-14 00:18:23 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/b9_JhRTGIOFnMdF670Ak8ETe_-rEH6NHqpCUnlN7Km4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "069eb183-da30-4992-a4ad-f07ef264f7a9"], ["id", 2]]  (105.6ms) commit transaction Completed 200 OK in 485ms (Views: 0.2ms | ActiveRecord: 106.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:22:24 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.8ms) Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:22:40 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.7ms) Completed 200 OK in 7ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:22:53 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.9ms) Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET "/login/yandex?code=1689295" for 127.0.0.1 at 2016-05-14 00:23:01 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"1689295", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 286ms (Views: 0.3ms | ActiveRecord: 0.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:23:40 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActionController::RoutingError (uninitialized constant LoginController): activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `const_get' activesupport (4.2.6) lib/active_support/inflector/methods.rb:261:in `block in constantize' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.6) lib/active_support/inflector/methods.rb:259:in `constantize' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:70:in `controller_reference' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:60:in `controller' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:39:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:24:01 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.1ms) Completed 200 OK in 34ms (Views: 6.5ms | ActiveRecord: 0.9ms) Started GET "/login/yandex?code=1923724" for 127.0.0.1 at 2016-05-14 00:26:11 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"1923724", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 183ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login/google?code=4/jkmGu5l8UkSW5GPE5BqI09tBVKHwuIT0UKqnBGIJPz8" for 127.0.0.1 at 2016-05-14 00:26:15 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/jkmGu5l8UkSW5GPE5BqI09tBVKHwuIT0UKqnBGIJPz8", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "7a71b0d8-ec82-4fb6-b774-25b48ab3fcf8"], ["id", 2]]  (100.7ms) commit transaction Completed 200 OK in 503ms (Views: 0.3ms | ActiveRecord: 102.2ms) Started GET "/login/yandex?code=3532518" for 127.0.0.1 at 2016-05-14 00:31:09 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3532518", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 204ms (Views: 0.4ms | ActiveRecord: 0.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:31:12 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:31:13 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.2ms) Completed 200 OK in 5ms (Views: 1.2ms | ActiveRecord: 0.2ms) Started GET "/login/google?code=4/XGuiqgRHjVuJrAljslvTa9Ow0efwfNpdxBENp2V4AD4" for 127.0.0.1 at 2016-05-14 00:31:15 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/XGuiqgRHjVuJrAljslvTa9Ow0efwfNpdxBENp2V4AD4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "7cab2768-fc4a-4345-8495-fdc5bbfff12c"], ["id", 2]]  (101.3ms) commit transaction Completed 200 OK in 469ms (Views: 0.2ms | ActiveRecord: 102.1ms) Started GET "/" for 127.0.0.1 at 2016-05-14 00:32:40 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.0ms) Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:32:43 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.9ms) Completed 200 OK in 53ms (Views: 4.5ms | ActiveRecord: 1.6ms) Started GET "/login/yandex?code=2929954" for 127.0.0.1 at 2016-05-14 00:32:45 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"2929954", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 191ms (Views: 0.4ms | ActiveRecord: 0.8ms) Started GET "/" for 127.0.0.1 at 2016-05-14 00:37:09 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.1ms) Completed 200 OK in 5ms (Views: 5.3ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:37:13 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.9ms) Completed 200 OK in 37ms (Views: 4.9ms | ActiveRecord: 1.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:38:04 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.3ms) Completed 200 OK in 38ms (Views: 7.0ms | ActiveRecord: 1.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:38:53 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.1ms) Completed 200 OK in 39ms (Views: 6.7ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:39:09 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms) LoadError (Unable to autoload constant User, expected /home/dcrow/Desktop/Work/oauth_service/test/dummy/app/models/user.rb to define it): activesupport (4.2.6) lib/active_support/dependencies.rb:495:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.6) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.6) lib/active_support/dependencies.rb:184:in `const_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (31.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:39:31 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (1.8ms) Completed 200 OK in 32ms (Views: 4.4ms | ActiveRecord: 1.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:39:50 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.8ms) Completed 200 OK in 38ms (Views: 9.1ms | ActiveRecord: 0.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:41:40 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.4ms) Completed 200 OK in 38ms (Views: 7.5ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:42:20 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.1ms) Completed 200 OK in 36ms (Views: 7.1ms | ActiveRecord: 0.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:42:57 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `getf' for OauthService::User(id: integer, name: string, api_code: string):Class): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:43:52 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) RuntimeError (Circular dependency detected while autoloading constant User): app/models/user.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:45:54 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.0ms) Completed 200 OK in 35ms (Views: 6.4ms | ActiveRecord: 1.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:49:10 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:49:27 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:49:40 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:49:49 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `getf' for OauthService::User(id: integer, name: string, api_code: string):Class): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 00:49:56 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.7ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 00:52:50 +0300 SyntaxError (/home/dcrow/Desktop/Work/oauth_service/test/dummy/config/routes.rb:3: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' get 'd', to 'd#index' ^): config/routes.rb:3: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '(' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.8ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 00:53:01 +0300 Processing by DController#index as HTML Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.1ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 00:53:11 +0300 Processing by DController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 28ms (Views: 0.2ms | ActiveRecord: 1.2ms) Url Load (0.5ms) SELECT "urls".* FROM "urls" Url Load (0.5ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? [["id", 4]] Url Load (0.3ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? [["id", 4]] Url Load (0.5ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 4]] SQL (98.1ms) DELETE FROM "urls" WHERE "urls"."id" = ? [["id", 4]]  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "[/]login[/].*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 4]]  (107.5ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-14 01:03:39 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (2.5ms) Completed 200 OK in 35ms (Views: 7.8ms | ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-05-14 01:03:43 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.1ms) Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 01:03:59 +0300 Processing by DController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 5ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 01:04:07 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb (0.5ms) Completed 200 OK in 10ms (Views: 3.4ms | ActiveRecord: 0.4ms) Started GET "/login/yandex?code=9638105" for 127.0.0.1 at 2016-05-14 01:04:09 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9638105", "provider_name"=>"yandex"} OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 360ms (Views: 0.2ms | ActiveRecord: 0.6ms) Started GET "/login/google?code=4/3-F5Pn62qCSe7CII8kHD12pdYP10gyyx9uQd3IJJHeE" for 127.0.0.1 at 2016-05-14 01:04:17 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/3-F5Pn62qCSe7CII8kHD12pdYP10gyyx9uQd3IJJHeE", "provider_name"=>"google"} OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] OauthService::User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "f8869eea-4092-460b-a1ed-6624e5d78fde"], ["id", 2]]  (99.8ms) commit transaction Completed 200 OK in 624ms (Views: 0.2ms | ActiveRecord: 100.8ms) Started GET "/login/google?code=4/3-F5Pn62qCSe7CII8kHD12pdYP10gyyx9uQd3IJJHeE" for 127.0.0.1 at 2016-05-14 01:17:43 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/3-F5Pn62qCSe7CII8kHD12pdYP10gyyx9uQd3IJJHeE", "provider_name"=>"google"} OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Completed 200 OK in 283ms (Views: 0.3ms | ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2016-05-14 01:17:46 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (2.6ms) Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.0ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 01:17:50 +0300 Processing by DController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? ORDER BY "users"."id" ASC LIMIT 1 [["name", "guest"]] SQL (0.1ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 6ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 01:19:02 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by DController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms) NoMethodError (undefined method `first' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.1ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 01:19:13 +0300 Processing by DController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 24ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 01:39:42 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 169ms (Views: 141.5ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 01:39:42 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 01:39:42 +0300 Started GET "/login/c" for 127.0.0.1 at 2016-05-14 01:39:49 +0300 ActionController::RoutingError (No route matches [GET] "/login/c"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (38.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 01:40:30 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 40ms (Views: 9.3ms | ActiveRecord: 2.2ms) Started GET "/" for 127.0.0.1 at 2016-05-14 01:40:32 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.8ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 01:40:36 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (0.4ms) Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.3ms) Started GET "/login/google?code=4/k2bQDGjzSIW2pfT508lVlkNp5av5VHyeVLvfY_tuZbQ" for 127.0.0.1 at 2016-05-14 01:40:43 +0300 ActionController::RoutingError (No route matches [GET] "/login/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (26.2ms) Started GET "/l" for 127.0.0.1 at 2016-05-14 02:10:12 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActionController::RoutingError (No route matches [GET] "/l"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (24.4ms) Started GET "/" for 127.0.0.1 at 2016-05-14 02:10:14 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.1ms) Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:10:18 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 181ms (Views: 130.8ms | ActiveRecord: 1.6ms) Started GET "/login/google?code=4/5vnFy2efh_r29yl26syFAFRY_mw6RCKQj2WTTSFdXfw" for 127.0.0.1 at 2016-05-14 02:10:20 +0300 ActionController::RoutingError (No route matches [GET] "/login/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (21.0ms) Started GET "/login/google?code=4/aGDz6BFrYgzFHTSZNwkqQjnnJNBsDMAig1dWi9MOX1A" for 127.0.0.1 at 2016-05-14 02:11:02 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/aGDz6BFrYgzFHTSZNwkqQjnnJNBsDMAig1dWi9MOX1A", "provider_name"=>"google"} OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "5c0d6902-7224-48d4-aa1d-e93affae7b5b"], ["id", 2]]  (100.9ms) commit transaction Completed 200 OK in 640ms (Views: 0.3ms | ActiveRecord: 102.5ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:41:32 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by DController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 32ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:42:09 +0300 Processing by DController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 19ms (Views: 0.2ms | ActiveRecord: 1.1ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:42:44 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by DController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 31ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:43:04 +0300 Processing by DController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 21ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:43:25 +0300 Processing by DController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 24ms (Views: 0.2ms | ActiveRecord: 1.4ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 02:45:47 +0300 Processing by DController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "users_urls"."id" AS t0_r0, "users_urls"."users_group_id" AS t0_r1, "users_urls"."url_id" AS t0_r2, "urls"."id" AS t1_r0, "urls"."url_pattern" AS t1_r1, "urls"."name" AS t1_r2, "urls"."http_method" AS t1_r3, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "users_urls" LEFT OUTER JOIN "urls" ON "urls"."id" = "users_urls"."url_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = ? [["user_id", 1]] Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 27ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/" for 127.0.0.1 at 2016-05-14 02:50:58 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.8ms) Completed 200 OK in 14ms (Views: 13.5ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:51:01 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.7ms) ActiveRecord::ConfigurationError (Association named 'url' was not found on Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:364:in `new' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:364:in `construct_join_dependency' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:343:in `find_with_associations' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:51:44 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.6ms) ActiveRecord::ConfigurationError (Association named 'users_group' was not found on Url; perhaps you misspelled it?): activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:219:in `find_reflection' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:224:in `block in build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `each' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `map' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:223:in `build' activerecord (4.2.6) lib/active_record/associations/join_dependency.rb:99:in `initialize' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:364:in `new' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:364:in `construct_join_dependency' activerecord (4.2.6) lib/active_record/relation/finder_methods.rb:343:in `find_with_associations' activerecord (4.2.6) lib/active_record/relation.rb:639:in `exec_queries' activerecord (4.2.6) lib/active_record/relation.rb:515:in `load' activerecord (4.2.6) lib/active_record/relation.rb:243:in `to_a' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:52:26 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 54ms (ActiveRecord: 1.9ms) NoMethodError (undefined method `url' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:22:in `block in check_access' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:52:51 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 31ms (ActiveRecord: 1.8ms) NoMethodError (undefined method `url' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:22:in `block in check_access' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:53:26 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 193ms (Views: 168.8ms | ActiveRecord: 1.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 02:53:26 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 02:53:26 +0300 Started GET "/login/google?code=4/IuXK8L7J_tOzoswvt8IgYbcn7M-h1Ofhjjn6Yt11X_s" for 127.0.0.1 at 2016-05-14 02:55:01 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/IuXK8L7J_tOzoswvt8IgYbcn7M-h1Ofhjjn6Yt11X_s", "provider_name"=>"google"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (13.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (26.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:55:54 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.7ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:55:58 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:18:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:56:09 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:56:49 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.2ms) User Load (0.5ms) SELECT "users".* FROM "users" Started GET "/login" for 127.0.0.1 at 2016-05-14 02:59:19 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.4ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:19:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 02:59:32 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:00:21 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:00:38 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms) NoMethodError (undefined method `s' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:00:47 +0300 Processing by LoginController#index as HTML OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:01:36 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" LoadError (cannot load such file -- rails/active_record): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:02:24 +0300 LoadError (cannot load such file -- rails/activerecord): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:03:19 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.6ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:13:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:22:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:04:05 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.6ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.6ms) Started GET "/" for 127.0.0.1 at 2016-05-14 03:04:08 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.3ms) Completed 200 OK in 5ms (Views: 5.1ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:05:00 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) RuntimeError (Circular dependency detected while autoloading constant Url): app/models/url.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:05:24 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:05:35 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms) NoMethodError (undefined method `s' for #): activerecord (4.2.6) lib/active_record/dynamic_matchers.rb:26:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:06:29 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:06:37 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:07:09 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 41ms (ActiveRecord: 1.5ms) NoMethodError (undefined method `url' for #): activemodel (4.2.6) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:24:in `block in check_access' activerecord (4.2.6) lib/active_record/relation.rb:276:in `block in any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' activerecord (4.2.6) lib/active_record/relation.rb:276:in `any?' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:23:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (18.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:07:27 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 198ms (Views: 176.5ms | ActiveRecord: 1.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:07:28 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:07:28 +0300 Started GET "/login/google?code=4/RQ6WNQkZrnyLubSfGCIcx66yJo0pjrRncgh887sTR84" for 127.0.0.1 at 2016-05-14 03:07:29 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/RQ6WNQkZrnyLubSfGCIcx66yJo0pjrRncgh887sTR84", "provider_name"=>"google"} Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:07:36 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (15.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:10:36 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (13.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (27.4ms) Started GET "/" for 127.0.0.1 at 2016-05-14 03:10:40 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.9ms) Completed 200 OK in 6ms (Views: 5.8ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:10:44 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:10:53 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.5ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:11:52 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:11:54 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:11:54 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.8ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:11:54 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.9ms) Started GET "/" for 127.0.0.1 at 2016-05-14 03:12:03 +0300 Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.7ms) Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:12:09 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:9:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.4ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:12:25 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (4.8ms) Completed 200 OK in 211ms (Views: 179.1ms | ActiveRecord: 1.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:12:25 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:12:25 +0300 Started GET "/login/google?code=4/h9FpUWP99f3TBIphQH4uKU8nH9Zipe6DGDs8SUjPpwo" for 127.0.0.1 at 2016-05-14 03:12:36 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/h9FpUWP99f3TBIphQH4uKU8nH9Zipe6DGDs8SUjPpwo", "provider_name"=>"google"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (16.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:13:11 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 25ms (Views: 5.6ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:13:11 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:21:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:13:42 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 49ms (Views: 6.4ms | ActiveRecord: 1.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:14:19 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 34ms (Views: 6.4ms | ActiveRecord: 1.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:14:19 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:14:19 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 03:14:30 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `ActiveRecord' for #): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.6ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:14:41 +0300 Processing by LoginController#index as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) NoMethodError (undefined method `Url' for #): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (17.6ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:16:40 +0300 ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:17:01 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.7ms) Completed 200 OK in 166ms (Views: 133.7ms | ActiveRecord: 1.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:17:02 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:17:02 +0300 Started GET "/login/google?code=4/E2yvw5CN8KOxosFNdGj82VzCY0evG35MQRNpSaJIgWM" for 127.0.0.1 at 2016-05-14 03:17:03 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/E2yvw5CN8KOxosFNdGj82VzCY0evG35MQRNpSaJIgWM", "provider_name"=>"google"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) NameError (uninitialized constant ActiveRecord::Url): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:20:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (19.5ms) Started GET "/login/google?code=4/Pxe1TvB5dPKWcEqGcfcN-1zCY0evG35MQRNpSaJIgWM" for 127.0.0.1 at 2016-05-14 03:17:24 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/Pxe1TvB5dPKWcEqGcfcN-1zCY0evG35MQRNpSaJIgWM", "provider_name"=>"google"} OauthService::User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "e70f6d8d-9a0c-42a8-a28e-333676e22200"], ["id", 2]]  (112.1ms) commit transaction Completed 200 OK in 619ms (Views: 0.2ms | ActiveRecord: 113.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:17:48 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 33ms (Views: 7.3ms | ActiveRecord: 1.5ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:17:48 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:17:48 +0300 Started GET "/login/google?code=4/TpXgax5S7mc8W3FJ8E0i_FzCY0evG35MQRNpSaJIgWM" for 127.0.0.1 at 2016-05-14 03:17:51 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/TpXgax5S7mc8W3FJ8E0i_FzCY0evG35MQRNpSaJIgWM", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 346ms (ActiveRecord: 0.6ms) NameError (uninitialized constant ActiveRecord::User): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:8:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.2ms) Started GET "/login/google?code=4/W2w-S_j54X_TIQfyCAhbt9q5Vz5_eu1BpMeOa3W8uFQ" for 127.0.0.1 at 2016-05-14 03:18:26 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/W2w-S_j54X_TIQfyCAhbt9q5Vz5_eu1BpMeOa3W8uFQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "ce350541-5ed0-4977-a624-e90d96f4595d"], ["id", 2]]  (123.4ms) commit transaction Completed 200 OK in 545ms (Views: 0.4ms | ActiveRecord: 125.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:18:57 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 183ms (Views: 147.0ms | ActiveRecord: 1.1ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:18:57 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:18:57 +0300 Started GET "/login/google?code=4/nT-gn28HEVYW9MffFqyUSJ9g0gejkdszSde_yVnS7xQ" for 127.0.0.1 at 2016-05-14 03:19:01 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/nT-gn28HEVYW9MffFqyUSJ9g0gejkdszSde_yVnS7xQ", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "db50cd1b-7991-4381-b22d-6eeaabc0bcbd"], ["id", 2]]  (101.1ms) commit transaction Completed 200 OK in 452ms (Views: 0.3ms | ActiveRecord: 102.2ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:19:40 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 33ms (Views: 7.4ms | ActiveRecord: 1.4ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:19:40 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:19:40 +0300 Started GET "/login/yandex?code=2162902" for 127.0.0.1 at 2016-05-14 03:19:42 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"2162902", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.5ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 207ms (Views: 0.2ms | ActiveRecord: 0.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:19:54 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 34ms (Views: 7.1ms | ActiveRecord: 1.5ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:19:54 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:19:54 +0300 Started GET "/login/yandex?code=5508906" for 127.0.0.1 at 2016-05-14 03:19:55 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"5508906", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 156ms (Views: 0.2ms | ActiveRecord: 0.6ms) Started GET "/login/yandex?code=6800821" for 127.0.0.1 at 2016-05-14 03:20:43 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6800821", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 302ms (Views: 0.2ms | ActiveRecord: 1.4ms) Started GET "/login/yandex?code=1384487" for 127.0.0.1 at 2016-05-14 03:21:10 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"1384487", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 418ms (Views: 0.3ms | ActiveRecord: 1.5ms) Started GET "/login/yandex?code=6801513" for 127.0.0.1 at 2016-05-14 03:21:56 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6801513", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 267ms (Views: 0.2ms | ActiveRecord: 1.3ms) Started GET "/login/yandex?code=7667297" for 127.0.0.1 at 2016-05-14 03:23:45 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"7667297", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" IS NULL LIMIT 1 Completed 200 OK in 242ms (Views: 0.3ms | ActiveRecord: 2.4ms) Started GET "/login/yandex?code=1567117" for 127.0.0.1 at 2016-05-14 03:24:04 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"1567117", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]] Completed 200 OK in 199ms (Views: 0.7ms | ActiveRecord: 1.1ms) Started GET "/login/google?code=4/cN6BGWL5ztjZknl93lIRJuFHnWbuklo0C0h-r3jThZQ" for 127.0.0.1 at 2016-05-14 03:24:14 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/cN6BGWL5ztjZknl93lIRJuFHnWbuklo0C0h-r3jThZQ", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.5ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "521aa114-99c5-4480-b0ee-55348242dbc0"], ["id", 2]]  (99.1ms) commit transaction Completed 200 OK in 709ms (Views: 0.3ms | ActiveRecord: 100.3ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("id", "name") VALUES (?, ?) [["id", 3], ["name", "bar555@yandex.ru"]]  (105.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 2], ["user_id", 3], ["user_group_id", 1]]  (106.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 2], ["name", "Авторизован"]]  (101.4ms) commit transaction Started GET "/" for 127.0.0.1 at 2016-05-14 03:38:18 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (1.2ms) Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:38:21 +0300 Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 174ms (Views: 138.6ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:38:21 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.5ms) Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.5ms) Started GET "/login/yandex?code=3159708" for 127.0.0.1 at 2016-05-14 03:38:23 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3159708", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.7ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "24545c43-c4d2-46d1-93e7-8f5db7a5051b"], ["id", 3]]  (106.2ms) commit transaction Completed 200 OK in 291ms (Views: 0.4ms | ActiveRecord: 108.0ms) Started GET "/login/google?code=4/5fVnMj9aykTVd3ClDb-tbm6X4zMZ_RNP_tUWAvcw2Zw" for 127.0.0.1 at 2016-05-14 03:38:28 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/5fVnMj9aykTVd3ClDb-tbm6X4zMZ_RNP_tUWAvcw2Zw", "provider_name"=>"google"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.6ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.2ms) begin transaction SQL (0.5ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "62347603-92d0-449a-bf31-9e88acca0c72"], ["id", 2]]  (96.1ms) commit transaction Completed 200 OK in 618ms (Views: 0.5ms | ActiveRecord: 97.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:39:55 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:39:55 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:39:55 +0300 Started GET "/login/yandex?code=5792819" for 127.0.0.1 at 2016-05-14 03:39:56 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"5792819", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "2922381c-7f4b-44fd-b481-028ab57f9925"], ["id", 3]]  (113.4ms) commit transaction Completed 200 OK in 282ms (Views: 0.2ms | ActiveRecord: 114.5ms) Started GET "/login/yandex?code=6950276" for 127.0.0.1 at 2016-05-14 03:41:05 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6950276", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.1ms) begin transaction SQL (0.1ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "9e08fe61-fc1b-4429-a7d4-7bfc3a89a450"], ["id", 3]]  (128.4ms) commit transaction Completed 200 OK in 322ms (Views: 0.4ms | ActiveRecord: 129.0ms) Started GET "/login/yandex?code=8882382" for 127.0.0.1 at 2016-05-14 03:41:23 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"8882382", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.8ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "65ea0491-6485-4eab-9544-7e81da183d2f"], ["id", 3]]  (128.2ms) commit transaction Completed 200 OK in 302ms (Views: 0.2ms | ActiveRecord: 129.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:43:18 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 182ms (Views: 146.3ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:43:19 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:43:19 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:43:19 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 03:43:21 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:43:21 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:43:21 +0300 Started GET "/login/yandex?code=4851165" for 127.0.0.1 at 2016-05-14 03:43:23 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4851165", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.7ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.2ms) begin transaction SQL (0.6ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "85a282fa-4a9b-494c-8674-708bcab5eb5d"], ["id", 3]]  (104.2ms) commit transaction Completed 200 OK in 348ms (Views: 0.5ms | ActiveRecord: 106.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:43:24 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 0.4ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:43:24 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:43:24 +0300 Started GET "/login/google?code=4/29N6Z6vS6UPeEyDqyXl3i0TAoI1plmhwwcrlp3Y0mb4" for 127.0.0.1 at 2016-05-14 03:43:26 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/29N6Z6vS6UPeEyDqyXl3i0TAoI1plmhwwcrlp3Y0mb4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "e6fb17ba-8e81-4917-8311-2aa43922a959"], ["id", 2]]  (124.5ms) commit transaction Completed 200 OK in 624ms (Views: 0.5ms | ActiveRecord: 125.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:43:29 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 12ms (Views: 7.9ms | ActiveRecord: 0.5ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:43:29 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:43:29 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 03:52:17 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 178ms (Views: 142.3ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:52:17 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:52:17 +0300 Started GET "/login/yandex?code=2901638" for 127.0.0.1 at 2016-05-14 03:52:19 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"2901638", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "dbd798a2-0b96-4ac5-b5f1-27fd1e078025"], ["id", 3]]  (108.7ms) commit transaction Completed 200 OK in 300ms (Views: 0.3ms | ActiveRecord: 110.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:52:21 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 8ms (Views: 5.5ms | ActiveRecord: 0.3ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 03:52:21 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 03:52:21 +0300 Started GET "/login/google?code=4/ey5ruCjQlMxeOONPdd2YN7xoRaWXBFQQwl-RCfDXxlA" for 127.0.0.1 at 2016-05-14 03:52:22 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/ey5ruCjQlMxeOONPdd2YN7xoRaWXBFQQwl-RCfDXxlA", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "users" SET "api_code" = ? WHERE "users"."id" = ? [["api_code", "5568e711-d91f-4879-899a-b58a0bbad53a"], ["id", 2]]  (107.5ms) commit transaction Completed 200 OK in 610ms (Views: 0.2ms | ActiveRecord: 108.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:58:28 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (3.1ms) Completed 500 Internal Server Error in 46ms (ActiveRecord: 1.1ms) ActionView::Template::Error (bad component(expected absolute path component): login/yandex): 8: 13: Авторизация через <%= provider.name %> 14: app/views/login/index.html.erb:11:in `block in _app_views_login_index_html_erb___626388225507862719_43524320' app/views/login/index.html.erb:6:in `each' app/views/login/index.html.erb:6:in `_app_views_login_index_html_erb___626388225507862719_43524320' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (21.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 03:58:28 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.7ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.4ms) ActionView::Template::Error (bad component(expected absolute path component): login/yandex): 8: 13: Авторизация через <%= provider.name %> 14: app/views/login/index.html.erb:11:in `block in _app_views_login_index_html_erb___626388225507862719_43524320' app/views/login/index.html.erb:6:in `each' app/views/login/index.html.erb:6:in `_app_views_login_index_html_erb___626388225507862719_43524320' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (17.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 17:35:09 +0300 ActiveRecord::PendingMigrationError ( Migrations are pending. To resolve this issue, run: bin/rake db:migrate RAILS_ENV=development ): activerecord (4.2.6) lib/active_record/migration.rb:392:in `check_pending!' activerecord (4.2.6) lib/active_record/migration.rb:373:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (2.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (12.0ms)  (104.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (105.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160510162127)  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (97.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (116.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (105.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (111.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  Started GET "/login" for 127.0.0.1 at 2016-05-14 17:42:30 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `id' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:11:in `get_user_id' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:18:in `check_access' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.8ms)  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]]  (119.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["http_method", "GET"], ["id", 1]]  (126.2ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]]  (110.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]]  (118.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]]  (120.4ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]]  (129.4ms) commit transaction Started GET "/login" for 127.0.0.1 at 2016-05-14 17:43:27 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 172ms (Views: 137.5ms | ActiveRecord: 1.0ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 17:43:27 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 17:43:27 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 17:48:50 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.0ms) Completed 500 Internal Server Error in 173ms (Views: 139.6ms | ActiveRecord: 1.0ms) AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".): actionpack (4.2.6) lib/action_controller/metal/rendering.rb:15:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:36:in `s' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (13.9ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 17:49:52 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 500 Internal Server Error in 26ms (Views: 5.8ms | ActiveRecord: 1.1ms) AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".): actionpack (4.2.6) lib/action_controller/metal/rendering.rb:15:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:36:in `s' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.7ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 17:49:56 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.2ms) Completed 500 Internal Server Error in 176ms (Views: 141.7ms | ActiveRecord: 1.0ms) AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".): actionpack (4.2.6) lib/action_controller/metal/rendering.rb:15:in `render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.6) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:43:in `render' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/access_controller.rb:36:in `s' activesupport (4.2.6) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:239:in `block in halting' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `each' activesupport (4.2.6) lib/active_support/callbacks.rb:506:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 18:02:15 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:54: syntax error, unexpected =>, expecting keyword_end :json => { ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:58: syntax error, unexpected ',', expecting keyword_end /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:78: syntax error, unexpected =>, expecting keyword_end :json => { ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:82: syntax error, unexpected ',', expecting keyword_end): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 18:05:35 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:77: syntax error, unexpected ':', expecting keyword_end json: { ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:81: syntax error, unexpected ',', expecting keyword_end): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 18:06:05 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.6ms) Completed 200 OK in 165ms (Views: 122.4ms | ActiveRecord: 1.2ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 18:06:05 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 18:06:05 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 18:06:36 +0300 SyntaxError (/home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:78: syntax error, unexpected =>, expecting keyword_end :json => { ^ /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:82: syntax error, unexpected ',', expecting keyword_end): app/controllers/login_controller.rb:1:in `' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (14.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 18:06:44 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 25ms (Views: 5.7ms | ActiveRecord: 1.1ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 18:06:44 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 18:06:44 +0300 Started GET "/login" for 127.0.0.1 at 2016-05-14 18:07:03 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.2ms) Completed 200 OK in 53ms (Views: 7.0ms | ActiveRecord: 1.4ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-14 18:07:03 +0300 Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-14 18:07:03 +0300 Started GET "/oauth/google?code=4/UuSjbhdyPkMQPmNwFXJOlXjsSNBFMVzCS6RNEAyGvQk" for 127.0.0.1 at 2016-05-14 18:07:04 +0300 ActionController::RoutingError (No route matches [GET] "/oauth/google"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (22.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 18:14:26 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.0ms) Completed 200 OK in 177ms (Views: 140.9ms | ActiveRecord: 1.0ms) Started GET "/oauth/yandex?code=6834554" for 127.0.0.1 at 2016-05-14 18:15:17 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"6834554", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.7ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 8ms (Views: 0.3ms | ActiveRecord: 1.0ms)  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]]  (0.1ms) rollback transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]]  (131.2ms) commit transaction Started GET "/oauth/yandex?code=9577700" for 127.0.0.1 at 2016-05-14 18:16:29 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9577700", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 36ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/oauth/yandex?code=9577700" for 127.0.0.1 at 2016-05-14 18:17:37 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9577700", "provider_name"=>"yandex"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 21ms (Views: 0.2ms | ActiveRecord: 1.2ms) Url Load (0.4ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 2]] Url Load (0.3ms) SELECT "urls".* FROM "urls" WHERE "urls"."id" = ? LIMIT 1 [["id", 2]] SQL (124.5ms) DELETE FROM "urls" WHERE "urls"."id" = ? [["id", 2]]  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]]  (114.5ms) commit transaction Started GET "/oauth/yandex?code=9577700" for 127.0.0.1 at 2016-05-14 18:18:15 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"9577700", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]] Completed 404 Not Found in 244ms (Views: 0.6ms | ActiveRecord: 1.4ms)  (104.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (113.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.4ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (100.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160510162127)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.3ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Страница входа"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "Страница после авторизации"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Гость"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160510162127"]]  (116.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' Url Load (0.4ms) SELECT "urls".* FROM "urls"  (105.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (125.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (110.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (99.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163534)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)   (0.1ms) select sqlite_version(*)  (0.1ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.1ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.1ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.1ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.1ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.1ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.1ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.0ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163534"]]  (120.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (105.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.3ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (110.0ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' Started GET "/" for 127.0.0.1 at 2016-05-14 19:39:26 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.9ms) Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started GET "/d" for 127.0.0.1 at 2016-05-14 19:39:29 +0300 Processing by DController#index as HTML User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 83ms (Views: 0.3ms | ActiveRecord: 2.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 19:39:34 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.7ms) Completed 200 OK in 151ms (Views: 148.2ms | ActiveRecord: 0.3ms) Started GET "/login" for 127.0.0.1 at 2016-05-14 19:39:34 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.3ms) Completed 200 OK in 10ms (Views: 5.9ms | ActiveRecord: 0.5ms) Started GET "/oauth/yandex?code=3204386" for 127.0.0.1 at 2016-05-14 19:39:37 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"3204386", "provider_name"=>"yandex"} User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]] Completed 404 Not Found in 191ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/oauth/google?code=4/q01WuQIzdfWobwzkuYYzPzduTslK35drcTLJUM2UCj4" for 127.0.0.1 at 2016-05-14 19:39:40 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4/q01WuQIzdfWobwzkuYYzPzduTslK35drcTLJUM2UCj4", "provider_name"=>"google"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "y.barkovskij@unact.ru"]] Completed 404 Not Found in 554ms (Views: 0.2ms | ActiveRecord: 0.6ms) Started GET "/login" for 127.0.0.1 at 2016-05-15 00:59:08 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.2ms) Completed 200 OK in 176ms (Views: 140.1ms | ActiveRecord: 1.1ms) Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2016-05-15 00:59:08 +0300 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2016-05-15 00:59:08 +0300 Started GET "/" for 127.0.0.1 at 2016-05-15 01:14:05 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Rails::WelcomeController#index as HTML Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/railties-4.2.6/lib/rails/templates/rails/welcome/index.html.erb (0.9ms) Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started GET "/login" for 127.0.0.1 at 2016-05-15 01:14:09 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (1.8ms) Completed 200 OK in 174ms (Views: 131.2ms | ActiveRecord: 1.1ms) Started GET "/login" for 127.0.0.1 at 2016-05-15 01:14:09 +0300 Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (0.6ms) Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 0.3ms) Started GET "/oauth/yandex?code=4015634" for 127.0.0.1 at 2016-05-15 01:14:11 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"code"=>"4015634", "provider_name"=>"yandex"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "bar555@yandex.ru"]] Completed 404 Not Found in 222ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 01:35:42 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (25.7ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 01:35:42 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (13.0ms) User Load (0.4ms) SELECT "users".* FROM "users" User Load (0.1ms) SELECT "users".* FROM "users" User Load (0.2ms) SELECT "users".* FROM "users"  (85.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (126.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (103.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.5ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (105.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' SQL (0.5ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2 SQL (0.9ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Url Load (0.4ms) SELECT "urls".* FROM "urls"  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (120.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (106.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (110.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (106.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("url_id") VALUES (?) [["url_id", 3]]  (280.6ms) commit transaction SQL (0.8ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 3], ["users_group_id", 2]]  (120.8ms) commit transaction SQL (0.9ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2  (94.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (74.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.2ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.3ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (110.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (103.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (98.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.5ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.2ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.0ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (121.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' Started GET "/login" for 127.0.0.1 at 2016-05-15 17:25:14 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.3ms) Completed 200 OK in 178ms (Views: 138.1ms | ActiveRecord: 1.6ms) Started GET "/login/logout" for 127.0.0.1 at 2016-05-15 17:25:17 +0300 ActionController::RoutingError (No route matches [GET] "/login/logout"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (19.0ms) Started GET "/oauth/logout" for 127.0.0.1 at 2016-05-15 17:25:40 +0300 Processing by LoginController#oauth_callback as HTML Parameters: {"provider_name"=>"logout"} User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.6ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.9ms) NoMethodError (undefined method `token_url' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:40:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:6:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (20.2ms) Started GET "/oauth/logout" for 127.0.0.1 at 2016-05-15 17:27:20 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#oauth_callback as HTML Parameters: {"provider_name"=>"logout"} User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Completed 500 Internal Server Error in 41ms (ActiveRecord: 1.0ms) NoMethodError (undefined method `token_url' for nil:NilClass): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:40:in `get_user_info' /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:6:in `oauth_callback' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.8ms) Started GET "/login/logout" for 127.0.0.1 at 2016-05-15 17:29:16 +0300 Processing by LoginController#logout as HTML User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.3ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Filter chain halted as :check_access rendered or redirected Completed 403 Forbidden in 29ms (Views: 0.2ms | ActiveRecord: 1.7ms) Started GET "/login/logout" for 127.0.0.1 at 2016-05-15 17:33:55 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#logout as HTML Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) NameError (undefined local variable or method `api_code' for #): /home/dcrow/Desktop/Work/oauth_service/app/controllers/oauth_service/login_controller.rb:23:in `logout' actionpack (4.2.6) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.6) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.6) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.6) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.6) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.6) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.6) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.6) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.6) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.6) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.6) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.6) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.6) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.6) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.6) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.6) lib/action_dispatch/routing/route_set.rb:817: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.6) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.6) 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.6) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.6) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.6) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.6) lib/active_record/migration.rb:377:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.6) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.6) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.6) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.6) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (7.4ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.8ms) Started GET "/login/logout" for 127.0.0.1 at 2016-05-15 17:34:33 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#logout as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."api_code" IS NULL LIMIT 1  (0.1ms) begin transaction  (0.0ms) commit transaction Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/login" for 127.0.0.1 at 2016-05-15 17:37:17 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 136ms (Views: 136.2ms | ActiveRecord: 0.0ms) Started GET "/login/logout" for 127.0.0.1 at 2016-05-15 17:37:19 +0300 Processing by LoginController#logout as HTML Completed 400 Bad Request in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 17:44:19 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (10.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (44.8ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 17:44:20 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (15.7ms)  (119.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (73.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (115.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (102.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (99.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.2ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.2ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.2ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.2ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.1ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.0ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.0ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (97.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index' Started GET "/login" for 127.0.0.1 at 2016-05-15 17:49:22 +0300 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by LoginController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."name" = ? LIMIT 1 [["name", "guest"]] SQL (0.2ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 Rendered login/index.html.erb within layouts/application (2.1ms) Completed 200 OK in 178ms (Views: 139.5ms | ActiveRecord: 1.0ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 17:49:52 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.9ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.5ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (38.5ms) Started GET "/__identify__" for 127.0.0.1 at 2016-05-15 17:49:52 +0300 ActionController::RoutingError (No route matches [GET] "/__identify__"): actionpack (4.2.6) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.6) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.6) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.6) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.6) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.6) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.6) 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.6) 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.6) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.6) lib/rails/engine.rb:518:in `call' railties (4.2.6) lib/rails/application.rb:165: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/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /home/dcrow/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.3ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/dcrow/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.6/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (15.2ms) ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (102.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.3ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.3ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.3ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.3ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "users" ("name", "id") VALUES (?, ?) [["name", "guest"], ["id", 1]] SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"], ["id", 1]] SQL (0.1ms) INSERT INTO "urls" ("url_pattern", "name", "http_method", "id") VALUES (?, ?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"], ["id", 2]] SQL (0.1ms) INSERT INTO "user_groups" ("id", "name") VALUES (?, ?) [["id", 1], ["name", "Guest"]] SQL (0.1ms) INSERT INTO "users_groups" ("id", "user_id", "user_group_id") VALUES (?, ?, ?) [["id", 1], ["user_id", 1], ["user_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 1], ["url_id", 1], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "users_urls" ("id", "url_id", "users_group_id") VALUES (?, ?, ?) [["id", 2], ["url_id", 2], ["users_group_id", 1]] SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (115.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (100.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (83.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (101.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (112.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 3], ["users_group_id", 2]]  (98.3ms) commit transaction SQL (0.6ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2 UsersGroup Load (0.4ms) SELECT "users_groups".* FROM "users_groups"  (79.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (107.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.5ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (104.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'   (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", "guest"]]  (107.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"]]  (97.3ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"]]  (118.3ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login/logout"], ["name", "Logout page"], ["http_method", "GET"]]  (85.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Guest"]]  (110.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 1], ["user_group_id", 1]]  (117.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 1], ["users_group_id", 1]]  (107.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 2], ["users_group_id", 1]]  (104.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 3], ["users_group_id", 1]]  (97.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (101.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (101.1ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (102.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 1]]  (93.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (106.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 4], ["users_group_id", 2]]  (105.1ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 4], ["users_group_id", 3]]  (107.3ms) commit transaction SQL (0.7ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."users_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "users_groups"."id" AS t2_r0, "users_groups"."user_group_id" AS t2_r1, "users_groups"."user_id" AS t2_r2, "users"."id" AS t3_r0, "users"."name" AS t3_r1, "users"."api_code" AS t3_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "users_groups" ON "users_groups"."id" = "users_urls"."users_group_id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2 UserGroup Load (0.5ms) SELECT "user_groups".* FROM "user_groups" UsersGroup Load (0.4ms) SELECT "users_groups".* FROM "users_groups"  (88.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (114.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "users_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (98.3ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'   (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", "guest"]]  (105.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"]]  (102.0ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"]]  (102.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login/logout"], ["name", "Logout page"], ["http_method", "GET"]]  (86.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Guest"]]  (83.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 1], ["user_group_id", 1]]  (98.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 1], ["users_group_id", 1]]  (96.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 2], ["users_group_id", 1]]  (100.3ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 3], ["users_group_id", 1]]  (98.3ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (98.0ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (100.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (89.6ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 1]]  (102.2ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (85.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "users_group_id") VALUES (?, ?) [["url_id", 4], ["users_group_id", 2]]  (102.8ms) commit transaction  (87.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.2ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer) SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (122.2ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.3ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'   (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name") VALUES (?) [["name", "guest"]]  (106.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"]]  (112.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"]]  (96.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login/logout"], ["name", "Logout page"], ["http_method", "GET"]]  (105.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Guest"]]  (119.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 1], ["user_group_id", 1]]  (92.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 1], ["user_group_id", 1]]  (88.2ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 2], ["user_group_id", 1]]  (84.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 3], ["user_group_id", 1]]  (98.7ms) commit transaction SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."user_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "user_groups"."id" AS t2_r0, "user_groups"."name" AS t2_r1, "users_groups"."id" AS t3_r0, "users_groups"."user_group_id" AS t3_r1, "users_groups"."user_id" AS t3_r2, "users"."id" AS t4_r0, "users"."name" AS t4_r1, "users"."api_code" AS t4_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "user_groups" ON "user_groups"."id" = "users_urls"."user_group_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."user_group_id" = "user_groups"."id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (101.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (94.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (104.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (90.1ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 4], ["user_group_id", 2]]  (88.5ms) commit transaction SQL (1.0ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."user_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "user_groups"."id" AS t2_r0, "user_groups"."name" AS t2_r1, "users_groups"."id" AS t3_r0, "users_groups"."user_group_id" AS t3_r1, "users_groups"."user_id" AS t3_r2, "users"."id" AS t4_r0, "users"."name" AS t4_r1, "users"."api_code" AS t4_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "user_groups" ON "user_groups"."id" = "users_urls"."user_group_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."user_group_id" = "user_groups"."id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 1 SQL (0.9ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."user_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "user_groups"."id" AS t2_r0, "user_groups"."name" AS t2_r1, "users_groups"."id" AS t3_r0, "users_groups"."user_group_id" AS t3_r1, "users_groups"."user_id" AS t3_r2, "users"."id" AS t4_r0, "users"."name" AS t4_r1, "users"."api_code" AS t4_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "user_groups" ON "user_groups"."id" = "users_urls"."user_group_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."user_group_id" = "user_groups"."id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2 User Load (0.1ms) SELECT "users".* FROM "users" User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users_groups" ON "users_groups"."user_id" = "users"."id" User Load (0.5ms) SELECT "users".* FROM "users" INNER JOIN "users_groups" ON "users_groups"."user_id" = "users"."id"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 1]]  (96.3ms) commit transaction SQL (0.4ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."user_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "user_groups"."id" AS t2_r0, "user_groups"."name" AS t2_r1, "users_groups"."id" AS t3_r0, "users_groups"."user_group_id" AS t3_r1, "users_groups"."user_id" AS t3_r2, "users"."id" AS t4_r0, "users"."name" AS t4_r1, "users"."api_code" AS t4_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "user_groups" ON "user_groups"."id" = "users_urls"."user_group_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."user_group_id" = "user_groups"."id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2  (116.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (98.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.3ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.3ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (98.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.3ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'   (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name") VALUES (?) [["name", "guest"]]  (99.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login"], ["name", "Login page"], ["http_method", "GET"]]  (107.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/oauth/.*"], ["name", "AuthCallback page"], ["http_method", "GET"]]  (97.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/login/logout"], ["name", "Logout page"], ["http_method", "GET"]]  (96.5ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Guest"]]  (100.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 1], ["user_group_id", 1]]  (98.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 1], ["user_group_id", 1]]  (96.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 2], ["user_group_id", 1]]  (82.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 3], ["user_group_id", 1]]  (117.5ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name") VALUES (?) [["name", "bar555@yandex.ru"]]  (114.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "user_groups" ("name") VALUES (?) [["name", "Test"]]  (119.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 2]]  (194.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users_groups" ("user_id", "user_group_id") VALUES (?, ?) [["user_id", 2], ["user_group_id", 1]]  (115.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "urls" ("url_pattern", "name", "http_method") VALUES (?, ?, ?) [["url_pattern", "^/test"], ["name", "Test page"], ["http_method", "GET"]]  (119.1ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "users_urls" ("url_id", "user_group_id") VALUES (?, ?) [["url_id", 4], ["user_group_id", 2]]  (93.1ms) commit transaction SQL (0.8ms) SELECT "urls"."id" AS t0_r0, "urls"."url_pattern" AS t0_r1, "urls"."name" AS t0_r2, "urls"."http_method" AS t0_r3, "users_urls"."id" AS t1_r0, "users_urls"."user_group_id" AS t1_r1, "users_urls"."url_id" AS t1_r2, "user_groups"."id" AS t2_r0, "user_groups"."name" AS t2_r1, "users_groups"."id" AS t3_r0, "users_groups"."user_group_id" AS t3_r1, "users_groups"."user_id" AS t3_r2, "users"."id" AS t4_r0, "users"."name" AS t4_r1, "users"."api_code" AS t4_r2 FROM "urls" LEFT OUTER JOIN "users_urls" ON "users_urls"."url_id" = "urls"."id" LEFT OUTER JOIN "user_groups" ON "user_groups"."id" = "users_urls"."user_group_id" LEFT OUTER JOIN "users_groups" ON "users_groups"."user_group_id" = "user_groups"."id" LEFT OUTER JOIN "users" ON "users"."id" = "users_groups"."user_id" WHERE "users_groups"."user_id" = 2 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'  (104.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.3ms) select sqlite_version(*)  (97.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.2ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.2ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.2ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.2ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.2ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.2ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (98.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'   (99.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (99.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateTables (20160514163909)  (0.1ms) begin transaction  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "api_code" varchar)  (0.4ms) CREATE INDEX "index_users_on_name" ON "users" ("name")  (0.4ms) CREATE TABLE "urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "url_pattern" varchar, "name" varchar, "http_method" varchar)  (0.4ms) CREATE TABLE "user_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)   (0.4ms) CREATE INDEX "index_user_groups_on_name" ON "user_groups" ("name")  (0.4ms) CREATE TABLE "users_groups" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "user_id" integer)   (0.4ms) CREATE TABLE "users_urls" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_group_id" integer, "url_id" integer) SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160514163909"]]  (97.1ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_user_groups_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_user_groups_on_name' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_users_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_users_on_name' AND type='index'