Started GET "/" for 127.0.0.1 at 2016-08-06 14:04:45 +0200 Processing by Rails::WelcomeController#index as HTML Rendered /home/strzibny/.gem/ruby/gems/railties-4.2.4/lib/rails/templates/rails/welcome/index.html.erb (11.3ms) Completed 200 OK in 64ms (Views: 64.0ms | ActiveRecord: 0.0ms) Started GET "/invoice_bar/invoice_templates/new" for 127.0.0.1 at 2016-08-06 14:05:37 +0200 Processing by InvoiceBar::InvoiceTemplatesController#new as HTML Completed 500 Internal Server Error in 53ms (ActiveRecord: 4.4ms) ActiveRecord::StatementInvalid (Could not find table 'invoice_bar_users'): activerecord (4.2.4) lib/active_record/connection_adapters/sqlite3_adapter.rb:511:in `table_structure' activerecord (4.2.4) lib/active_record/connection_adapters/sqlite3_adapter.rb:385:in `columns' activerecord (4.2.4) lib/active_record/connection_adapters/schema_cache.rb:43:in `columns' activerecord (4.2.4) lib/active_record/attributes.rb:93:in `columns' activerecord (4.2.4) lib/active_record/attributes.rb:98:in `columns_hash' activerecord (4.2.4) lib/active_record/dynamic_matchers.rb:64:in `block in valid?' activerecord (4.2.4) lib/active_record/dynamic_matchers.rb:64:in `each' activerecord (4.2.4) lib/active_record/dynamic_matchers.rb:64:in `all?' activerecord (4.2.4) lib/active_record/dynamic_matchers.rb:64:in `valid?' activerecord (4.2.4) lib/active_record/dynamic_matchers.rb:22:in `method_missing' sorcery (0.9.1) lib/sorcery/adapters/active_record_adapter.rb:85:in `find_by_id' sorcery (0.9.1) lib/sorcery/controller.rb:130:in `login_from_session' sorcery (0.9.1) lib/sorcery/controller.rb:78:in `current_user' sorcery (0.9.1) lib/sorcery/controller.rb:71:in `logged_in?' sorcery (0.9.1) lib/sorcery/controller.rb:23:in `require_login' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:164:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:164:in `block in halting' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.6ms)  (81.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (74.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (92.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (82.9ms) 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" InvoiceBar::User Load (0.7ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" SQLite3::SQLException: no such table: invoice_bar_users: SELECT "invoice_bar_users".* FROM "invoice_bar_users"  (412.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.2ms) select sqlite_version(*)  (82.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateInvoiceBarAddresses (20160806120900)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120900_create_invoice_bar_addresses.invoice_bar.rb:14)  (0.5ms) CREATE TABLE "invoice_bar_addresses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "street" varchar NOT NULL, "street_number" varchar NOT NULL, "city" varchar NOT NULL, "city_part" varchar, "postcode" varchar NOT NULL, "extra_address_line" varchar, "addressable_id" integer NOT NULL, "addressable_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120900"]]  (92.4ms) commit transaction Migrating to CreateInvoiceBarInvoiceTemplates (20160806120901)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120901_create_invoice_bar_invoice_templates.invoice_bar.rb:16)  (0.4ms) CREATE TABLE "invoice_bar_invoice_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "issue_date" date, "due_date" date, "contact_name" varchar, "contact_tax_id" integer, "contact_tax_id2" varchar, "user_id" integer, "payment_identification_number" integer, "account_id" integer, "amount" integer, "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_invoice_bar_invoice_templates_on_name" ON "invoice_bar_invoice_templates" ("name") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120901"]]  (96.9ms) commit transaction Migrating to CreateInvoiceBarInvoices (20160806120902)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120902_create_invoice_bar_invoices.invoice_bar.rb:20)  (0.4ms) CREATE TABLE "invoice_bar_invoices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar NOT NULL, "issue_date" date NOT NULL, "due_date" date NOT NULL, "contact_name" varchar NOT NULL, "contact_tax_id" integer, "contact_tax_id2" varchar, "user_id" integer NOT NULL, "payment_identification_number" integer, "account_id" integer NOT NULL, "amount" integer NOT NULL, "sent" boolean DEFAULT 'f' NOT NULL, "paid" boolean DEFAULT 'f' NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "receipt_id" integer, "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE INDEX "index_invoice_bar_invoices_on_number" ON "invoice_bar_invoices" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index'   (0.2ms) CREATE INDEX "index_invoice_bar_invoices_on_contact_name" ON "invoice_bar_invoices" ("contact_name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index'  (0.2ms) CREATE INDEX "index_invoice_bar_invoices_on_contact_tax_id" ON "invoice_bar_invoices" ("contact_tax_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_contact_tax_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_contact_tax_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index'  (0.2ms) CREATE INDEX "index_invoice_bar_invoices_on_payment_identification_number" ON "invoice_bar_invoices" ("payment_identification_number") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120902"]]  (99.7ms) commit transaction Migrating to CreateInvoiceBarAccounts (20160806120903)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120903_create_invoice_bar_accounts.invoice_bar.rb:13)  (0.7ms) CREATE TABLE "invoice_bar_accounts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "user_id" integer NOT NULL, "bank_account_number" varchar, "iban" varchar, "swift" varchar, "amount" integer DEFAULT 0 NOT NULL, "currency_id" integer DEFAULT 1 NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_invoice_bar_accounts_on_name" ON "invoice_bar_accounts" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120903"]]  (110.4ms) commit transaction Migrating to CreateInvoiceBarItems (20160806120904)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120904_create_invoice_bar_items.invoice_bar.rb:13)  (0.6ms) CREATE TABLE "invoice_bar_items" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "price" integer NOT NULL, "unit" varchar, "number" integer, "amount" integer NOT NULL, "itemable_id" integer NOT NULL, "itemable_type" varchar NOT NULL, "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_invoice_bar_items_on_name" ON "invoice_bar_items" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120904"]]  (111.5ms) commit transaction Migrating to CreateInvoiceBarCurrencies (20160806120905)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "invoice_bar_currencies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "symbol" varchar NOT NULL, "priority" integer DEFAULT 1 NOT NULL)  SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120905"]]  (87.2ms) commit transaction Migrating to CreateInvoiceBarContacts (20160806120906)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120906_create_invoice_bar_contacts.invoice_bar.rb:14)  (0.7ms) CREATE TABLE "invoice_bar_contacts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "email" varchar, "phone" varchar, "web" varchar, "bank_account" varchar, "tax_id" integer, "tax_id2" varchar, "user_id" integer NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_invoice_bar_contacts_on_name" ON "invoice_bar_contacts" ("name")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_contacts_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_contacts_on_name' AND type='index'   (0.3ms) CREATE INDEX "index_invoice_bar_contacts_on_tax_id" ON "invoice_bar_contacts" ("tax_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120906"]]  (92.8ms) commit transaction Migrating to CreateInvoiceBarUsers (20160806120907)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120907_create_invoice_bar_users.invoice_bar.rb:19)  (0.7ms) CREATE TABLE "invoice_bar_users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "email" varchar NOT NULL, "crypted_password" varchar, "salt" varchar, "remember_me_token" varchar, "remember_me_token_expires_at" datetime, "reset_password_token" varchar, "reset_password_token_expires_at" datetime, "reset_password_email_sent_at" datetime, "name" varchar NOT NULL, "phone" varchar, "web" varchar, "tax_id" integer NOT NULL, "administrator" boolean, "created_at" datetime, "updated_at" datetime)  (0.2ms) CREATE INDEX "index_invoice_bar_users_on_reset_password_token" ON "invoice_bar_users" ("reset_password_token")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_users_on_reset_password_token' AND type='index'  (0.2ms) CREATE INDEX "index_invoice_bar_users_on_remember_me_token" ON "invoice_bar_users" ("remember_me_token") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120907"]]  (101.5ms) commit transaction Migrating to CreateInvoiceBarReceipts (20160806120908)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120908_create_invoice_bar_receipts.invoice_bar.rb:15)  (0.7ms) CREATE TABLE "invoice_bar_receipts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "number" varchar NOT NULL, "issue_date" date NOT NULL, "contact_name" varchar NOT NULL, "contact_tax_id" integer, "contact_tax_id2" varchar, "user_id" integer NOT NULL, "account_id" integer NOT NULL, "amount" integer NOT NULL, "issuer" boolean DEFAULT 't' NOT NULL, "created_at" datetime, "updated_at" datetime)   (0.3ms) CREATE INDEX "index_invoice_bar_receipts_on_number" ON "invoice_bar_receipts" ("number")  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index'   (0.3ms) CREATE INDEX "index_invoice_bar_receipts_on_contact_name" ON "invoice_bar_receipts" ("contact_name")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_contact_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_contact_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index'  (0.3ms) CREATE INDEX "index_invoice_bar_receipts_on_contact_tax_id" ON "invoice_bar_receipts" ("contact_tax_id") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120908"]]  (90.7ms) commit transaction Migrating to CreateInvoiceBarReceiptTemplates (20160806120909)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /home/strzibny/projects/invoicebar/test/dummy/db/migrate/20160806120909_create_invoice_bar_receipt_templates.invoice_bar.rb:14)  (0.5ms) CREATE TABLE "invoice_bar_receipt_templates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar NOT NULL, "issue_date" date, "contact_name" varchar, "contact_tax_id" integer, "contact_tax_id2" varchar, "user_id" integer, "account_id" integer, "amount" integer, "created_at" datetime, "updated_at" datetime)   (0.2ms) CREATE INDEX "index_invoice_bar_receipt_templates_on_name" ON "invoice_bar_receipt_templates" ("name") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120909"]]  (87.3ms) commit transaction Migrating to AddRefFieldsDirectlyToInvoices (20160806120910)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "invoice_bar_invoices" ADD "user_name" varchar  (0.3ms) ALTER TABLE "invoice_bar_invoices" ADD "user_tax_id" integer  (0.3ms) ALTER TABLE "invoice_bar_invoices" ADD "user_tax_id2" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120910"]]  (105.1ms) commit transaction Migrating to AddRefFieldsDirectlyToReceipts (20160806120911)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "invoice_bar_receipts" ADD "user_name" varchar  (0.3ms) ALTER TABLE "invoice_bar_receipts" ADD "user_tax_id" integer  (0.3ms) ALTER TABLE "invoice_bar_receipts" ADD "user_tax_id2" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120911"]]  (67.9ms) commit transaction Migrating to AddNoteToDocuments (20160806120912)  (0.1ms) begin transaction  (0.5ms) ALTER TABLE "invoice_bar_invoices" ADD "note" text  (0.3ms) ALTER TABLE "invoice_bar_receipts" ADD "note" text  (0.3ms) ALTER TABLE "invoice_bar_invoice_templates" ADD "note" text  (0.3ms) ALTER TABLE "invoice_bar_receipt_templates" ADD "note" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20160806120912"]]  (89.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_accounts_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_accounts_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_contacts_on_tax_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_contacts_on_tax_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_contacts_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_contacts_on_name' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoice_templates_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoice_templates_on_name' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_payment_identification_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_payment_identification_number' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_contact_tax_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_contact_tax_id' AND type='index'  (0.2ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_contact_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_invoices_on_number' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_items_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_items_on_name' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipt_templates_on_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipt_templates_on_name' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_contact_tax_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_contact_tax_id' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_contact_name' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_contact_name' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_receipts_on_number' AND type='index'   (0.2ms) SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_users_on_remember_me_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_users_on_remember_me_token' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_invoice_bar_users_on_reset_password_token' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_invoice_bar_users_on_reset_password_token' AND type='index'  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Česká koruna' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'Kč' LIMIT 1 SQL (0.2ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "Česká koruna"], ["symbol", "Kč"], ["priority", 4]]  (85.5ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.3ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Euro' LIMIT 1 InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = '€' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "Euro"], ["symbol", "€"], ["priority", 3]]  (69.6ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.3ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Americký dolar' LIMIT 1 InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'US$' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "Americký dolar"], ["symbol", "US$"], ["priority", 2]]  (69.6ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'Polský zlotý' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'zł' LIMIT 1 SQL (0.4ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol") VALUES (?, ?) [["name", "Polský zlotý"], ["symbol", "zł"]]  (69.9ms) commit transaction  (0.1ms) begin transaction InvoiceBar::User Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'admin@admin.cz' LIMIT 1 SQL (0.2ms) INSERT INTO "invoice_bar_users" ("name", "email", "tax_id", "administrator", "salt", "crypted_password", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "admin"], ["email", "admin@admin.cz"], ["tax_id", 123456], ["administrator", "t"], ["salt", "8Vuy4A7Vehn8zR56q9P8"], ["crypted_password", "$2a$10$GBvFVYFNYCwD.9yOn4PdJO4wLfRaGnvVk9gRulp1SFYiHCKFA3g/C"], ["created_at", "2016-08-06 12:09:57.966725"], ["updated_at", "2016-08-06 12:09:57.966725"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "postcode", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["city", "Mesto"], ["postcode", "74727"], ["addressable_type", "InvoiceBar::User"], ["addressable_id", 1], ["created_at", "2016-08-06 12:09:57.968108"], ["updated_at", "2016-08-06 12:09:57.968108"]]  (82.5ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.3ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc1' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k1' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc1"], ["symbol", "k1"], ["priority", 0]]  (78.2ms) commit transaction  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 1"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 1"], ["amount", 36578], ["currency_id", 5], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.209695"], ["updated_at", "2016-08-06 12:09:58.209695"]]  (81.8ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc2' LIMIT 1 InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k2' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc2"], ["symbol", "k2"], ["priority", 0]]  (68.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 2"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 2"], ["amount", 1513], ["currency_id", 6], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.372033"], ["updated_at", "2016-08-06 12:09:58.372033"]]  (66.9ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.3ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc3' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k3' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc3"], ["symbol", "k3"], ["priority", 0]]  (79.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 3"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 3"], ["amount", 25764], ["currency_id", 7], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.530921"], ["updated_at", "2016-08-06 12:09:58.530921"]]  (68.7ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc4' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k4' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc4"], ["symbol", "k4"], ["priority", 0]]  (69.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 4"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 4"], ["amount", 36479], ["currency_id", 8], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.680719"], ["updated_at", "2016-08-06 12:09:58.680719"]]  (68.9ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc5' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k5' LIMIT 1 SQL (0.2ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc5"], ["symbol", "k5"], ["priority", 0]]  (69.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 5"], ["user_id", 1]] SQL (0.2ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 5"], ["amount", 6527], ["currency_id", 9], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.829701"], ["updated_at", "2016-08-06 12:09:58.829701"]]  (70.5ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc6' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k6' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc6"], ["symbol", "k6"], ["priority", 0]]  (69.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 6"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 6"], ["amount", 20259], ["currency_id", 10], ["user_id", 1], ["created_at", "2016-08-06 12:09:58.980398"], ["updated_at", "2016-08-06 12:09:58.980398"]]  (69.5ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc7' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k7' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc7"], ["symbol", "k7"], ["priority", 0]]  (60.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 7"], ["user_id", 1]] SQL (0.2ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 7"], ["amount", 18542], ["currency_id", 11], ["user_id", 1], ["created_at", "2016-08-06 12:09:59.121301"], ["updated_at", "2016-08-06 12:09:59.121301"]]  (62.4ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc8' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k8' LIMIT 1 SQL (0.2ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc8"], ["symbol", "k8"], ["priority", 0]]  (60.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 8"], ["user_id", 1]] SQL (0.2ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 8"], ["amount", 11222], ["currency_id", 12], ["user_id", 1], ["created_at", "2016-08-06 12:09:59.254739"], ["updated_at", "2016-08-06 12:09:59.254739"]]  (62.3ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc9' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k9' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc9"], ["symbol", "k9"], ["priority", 0]]  (60.0ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 9"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 9"], ["amount", 3582], ["currency_id", 13], ["user_id", 1], ["created_at", "2016-08-06 12:09:59.389159"], ["updated_at", "2016-08-06 12:09:59.389159"]]  (60.3ms) commit transaction  (0.1ms) begin transaction InvoiceBar::Currency Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."name" = 'kc10' LIMIT 1 InvoiceBar::Currency Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."symbol" = 'k10' LIMIT 1 SQL (0.3ms) INSERT INTO "invoice_bar_currencies" ("name", "symbol", "priority") VALUES (?, ?, ?) [["name", "kc10"], ["symbol", "k10"], ["priority", 0]]  (61.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."name" = ? AND "invoice_bar_accounts"."user_id" = ? [["name", "Name 10"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_accounts" ("name", "amount", "currency_id", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Name 10"], ["amount", 1168], ["currency_id", 14], ["user_id", 1], ["created_at", "2016-08-06 12:09:59.521380"], ["updated_at", "2016-08-06 12:09:59.521380"]]  (76.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001121"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:09:59.643964"], ["updated_at", "2016-08-06 12:09:59.643964"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:09:59.645849"], ["updated_at", "2016-08-06 12:09:59.645849"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 1], ["created_at", "2016-08-06 12:09:59.647428"], ["updated_at", "2016-08-06 12:09:59.647428"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 1], ["created_at", "2016-08-06 12:09:59.648978"], ["updated_at", "2016-08-06 12:09:59.648978"]]  (82.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001122"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001122"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:09:59.744079"], ["updated_at", "2016-08-06 12:09:59.744079"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:09:59.746655"], ["updated_at", "2016-08-06 12:09:59.746655"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 2], ["created_at", "2016-08-06 12:09:59.748959"], ["updated_at", "2016-08-06 12:09:59.748959"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 2], ["created_at", "2016-08-06 12:09:59.751273"], ["updated_at", "2016-08-06 12:09:59.751273"]]  (73.2ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001123"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001123"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:09:59.838553"], ["updated_at", "2016-08-06 12:09:59.838553"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 3], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:09:59.841166"], ["updated_at", "2016-08-06 12:09:59.841166"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 3], ["created_at", "2016-08-06 12:09:59.843485"], ["updated_at", "2016-08-06 12:09:59.843485"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 3], ["created_at", "2016-08-06 12:09:59.845854"], ["updated_at", "2016-08-06 12:09:59.845854"]]  (75.9ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001124"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001124"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:09:59.935501"], ["updated_at", "2016-08-06 12:09:59.935501"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 4], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:09:59.938084"], ["updated_at", "2016-08-06 12:09:59.938084"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 4], ["created_at", "2016-08-06 12:09:59.940347"], ["updated_at", "2016-08-06 12:09:59.940347"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 4], ["created_at", "2016-08-06 12:09:59.942590"], ["updated_at", "2016-08-06 12:09:59.942590"]]  (101.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001125"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.058280"], ["updated_at", "2016-08-06 12:10:00.058280"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.061057"], ["updated_at", "2016-08-06 12:10:00.061057"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 5], ["created_at", "2016-08-06 12:10:00.063330"], ["updated_at", "2016-08-06 12:10:00.063330"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 5], ["created_at", "2016-08-06 12:10:00.065582"], ["updated_at", "2016-08-06 12:10:00.065582"]]  (81.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001126"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001126"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.159192"], ["updated_at", "2016-08-06 12:10:00.159192"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 6], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.161677"], ["updated_at", "2016-08-06 12:10:00.161677"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 6], ["created_at", "2016-08-06 12:10:00.163816"], ["updated_at", "2016-08-06 12:10:00.163816"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 6], ["created_at", "2016-08-06 12:10:00.165897"], ["updated_at", "2016-08-06 12:10:00.165897"]]  (81.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001127"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001127"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.260713"], ["updated_at", "2016-08-06 12:10:00.260713"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 7], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.263404"], ["updated_at", "2016-08-06 12:10:00.263404"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 7], ["created_at", "2016-08-06 12:10:00.273261"], ["updated_at", "2016-08-06 12:10:00.273261"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 7], ["created_at", "2016-08-06 12:10:00.275685"], ["updated_at", "2016-08-06 12:10:00.275685"]]  (79.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001128"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001128"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.368345"], ["updated_at", "2016-08-06 12:10:00.368345"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 8], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.370818"], ["updated_at", "2016-08-06 12:10:00.370818"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 8], ["created_at", "2016-08-06 12:10:00.373076"], ["updated_at", "2016-08-06 12:10:00.373076"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 8], ["created_at", "2016-08-06 12:10:00.375184"], ["updated_at", "2016-08-06 12:10:00.375184"]]  (106.2ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001129"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "201001129"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.494960"], ["updated_at", "2016-08-06 12:10:00.494960"]] SQL (0.3ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 9], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.497679"], ["updated_at", "2016-08-06 12:10:00.497679"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 9], ["created_at", "2016-08-06 12:10:00.501164"], ["updated_at", "2016-08-06 12:10:00.501164"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 9], ["created_at", "2016-08-06 12:10:00.505290"], ["updated_at", "2016-08-06 12:10:00.505290"]]  (99.7ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011210"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011210"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.620561"], ["updated_at", "2016-08-06 12:10:00.620561"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 10], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.623189"], ["updated_at", "2016-08-06 12:10:00.623189"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 10], ["created_at", "2016-08-06 12:10:00.625461"], ["updated_at", "2016-08-06 12:10:00.625461"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 10], ["created_at", "2016-08-06 12:10:00.627677"], ["updated_at", "2016-08-06 12:10:00.627677"]]  (88.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011211"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011211"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.729676"], ["updated_at", "2016-08-06 12:10:00.729676"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 11], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.732200"], ["updated_at", "2016-08-06 12:10:00.732200"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 11], ["created_at", "2016-08-06 12:10:00.734502"], ["updated_at", "2016-08-06 12:10:00.734502"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 11], ["created_at", "2016-08-06 12:10:00.736801"], ["updated_at", "2016-08-06 12:10:00.736801"]]  (87.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011212"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011212"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.837717"], ["updated_at", "2016-08-06 12:10:00.837717"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 12], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.840331"], ["updated_at", "2016-08-06 12:10:00.840331"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 12], ["created_at", "2016-08-06 12:10:00.842466"], ["updated_at", "2016-08-06 12:10:00.842466"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 12], ["created_at", "2016-08-06 12:10:00.844576"], ["updated_at", "2016-08-06 12:10:00.844576"]]  (114.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011213"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011213"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:00.970192"], ["updated_at", "2016-08-06 12:10:00.970192"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 13], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:00.972493"], ["updated_at", "2016-08-06 12:10:00.972493"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 13], ["created_at", "2016-08-06 12:10:00.974456"], ["updated_at", "2016-08-06 12:10:00.974456"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 13], ["created_at", "2016-08-06 12:10:00.976267"], ["updated_at", "2016-08-06 12:10:00.976267"]]  (81.8ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011214"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011214"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.071329"], ["updated_at", "2016-08-06 12:10:01.071329"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 14], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.074046"], ["updated_at", "2016-08-06 12:10:01.074046"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 14], ["created_at", "2016-08-06 12:10:01.076406"], ["updated_at", "2016-08-06 12:10:01.076406"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 14], ["created_at", "2016-08-06 12:10:01.078667"], ["updated_at", "2016-08-06 12:10:01.078667"]]  (79.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011215"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011215"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.169041"], ["updated_at", "2016-08-06 12:10:01.169041"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 15], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.171110"], ["updated_at", "2016-08-06 12:10:01.171110"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 15], ["created_at", "2016-08-06 12:10:01.173394"], ["updated_at", "2016-08-06 12:10:01.173394"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 15], ["created_at", "2016-08-06 12:10:01.175237"], ["updated_at", "2016-08-06 12:10:01.175237"]]  (72.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011216"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011216"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.260485"], ["updated_at", "2016-08-06 12:10:01.260485"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 16], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.263074"], ["updated_at", "2016-08-06 12:10:01.263074"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 16], ["created_at", "2016-08-06 12:10:01.265334"], ["updated_at", "2016-08-06 12:10:01.265334"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 16], ["created_at", "2016-08-06 12:10:01.267614"], ["updated_at", "2016-08-06 12:10:01.267614"]]  (101.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011217"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011217"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.382861"], ["updated_at", "2016-08-06 12:10:01.382861"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 17], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.385657"], ["updated_at", "2016-08-06 12:10:01.385657"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 17], ["created_at", "2016-08-06 12:10:01.388224"], ["updated_at", "2016-08-06 12:10:01.388224"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 17], ["created_at", "2016-08-06 12:10:01.390852"], ["updated_at", "2016-08-06 12:10:01.390852"]]  (75.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011218"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011218"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.479565"], ["updated_at", "2016-08-06 12:10:01.479565"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 18], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.482200"], ["updated_at", "2016-08-06 12:10:01.482200"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 18], ["created_at", "2016-08-06 12:10:01.484856"], ["updated_at", "2016-08-06 12:10:01.484856"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 18], ["created_at", "2016-08-06 12:10:01.487221"], ["updated_at", "2016-08-06 12:10:01.487221"]]  (78.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011219"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011219"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.579654"], ["updated_at", "2016-08-06 12:10:01.579654"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 19], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.582251"], ["updated_at", "2016-08-06 12:10:01.582251"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 19], ["created_at", "2016-08-06 12:10:01.584464"], ["updated_at", "2016-08-06 12:10:01.584464"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 19], ["created_at", "2016-08-06 12:10:01.586651"], ["updated_at", "2016-08-06 12:10:01.586651"]]  (79.5ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011220"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011220"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.679653"], ["updated_at", "2016-08-06 12:10:01.679653"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 20], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.682260"], ["updated_at", "2016-08-06 12:10:01.682260"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 20], ["created_at", "2016-08-06 12:10:01.684526"], ["updated_at", "2016-08-06 12:10:01.684526"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 20], ["created_at", "2016-08-06 12:10:01.686759"], ["updated_at", "2016-08-06 12:10:01.686759"]]  (101.3ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011221"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011221"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.801689"], ["updated_at", "2016-08-06 12:10:01.801689"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 21], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.804252"], ["updated_at", "2016-08-06 12:10:01.804252"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 21], ["created_at", "2016-08-06 12:10:01.806351"], ["updated_at", "2016-08-06 12:10:01.806351"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 21], ["created_at", "2016-08-06 12:10:01.808220"], ["updated_at", "2016-08-06 12:10:01.808220"]]  (107.2ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011222"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011222"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:01.928798"], ["updated_at", "2016-08-06 12:10:01.928798"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 22], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:01.931427"], ["updated_at", "2016-08-06 12:10:01.931427"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 22], ["created_at", "2016-08-06 12:10:01.933760"], ["updated_at", "2016-08-06 12:10:01.933760"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 22], ["created_at", "2016-08-06 12:10:01.936001"], ["updated_at", "2016-08-06 12:10:01.936001"]]  (88.4ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011223"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011223"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.038322"], ["updated_at", "2016-08-06 12:10:02.038322"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 23], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.041471"], ["updated_at", "2016-08-06 12:10:02.041471"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 23], ["created_at", "2016-08-06 12:10:02.043772"], ["updated_at", "2016-08-06 12:10:02.043772"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 23], ["created_at", "2016-08-06 12:10:02.046022"], ["updated_at", "2016-08-06 12:10:02.046022"]]  (95.2ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011224"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011224"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.155112"], ["updated_at", "2016-08-06 12:10:02.155112"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 24], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.157848"], ["updated_at", "2016-08-06 12:10:02.157848"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 24], ["created_at", "2016-08-06 12:10:02.160174"], ["updated_at", "2016-08-06 12:10:02.160174"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 24], ["created_at", "2016-08-06 12:10:02.168678"], ["updated_at", "2016-08-06 12:10:02.168678"]]  (97.9ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011225"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011225"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.281023"], ["updated_at", "2016-08-06 12:10:02.281023"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 25], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.283816"], ["updated_at", "2016-08-06 12:10:02.283816"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 25], ["created_at", "2016-08-06 12:10:02.286151"], ["updated_at", "2016-08-06 12:10:02.286151"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 25], ["created_at", "2016-08-06 12:10:02.288452"], ["updated_at", "2016-08-06 12:10:02.288452"]]  (77.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011226"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011226"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.377522"], ["updated_at", "2016-08-06 12:10:02.377522"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 26], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.379684"], ["updated_at", "2016-08-06 12:10:02.379684"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 26], ["created_at", "2016-08-06 12:10:02.381743"], ["updated_at", "2016-08-06 12:10:02.381743"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 26], ["created_at", "2016-08-06 12:10:02.383552"], ["updated_at", "2016-08-06 12:10:02.383552"]]  (74.4ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011227"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011227"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.468889"], ["updated_at", "2016-08-06 12:10:02.468889"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 27], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.471054"], ["updated_at", "2016-08-06 12:10:02.471054"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 27], ["created_at", "2016-08-06 12:10:02.472944"], ["updated_at", "2016-08-06 12:10:02.472944"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 27], ["created_at", "2016-08-06 12:10:02.474782"], ["updated_at", "2016-08-06 12:10:02.474782"]]  (76.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011228"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011228"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.562580"], ["updated_at", "2016-08-06 12:10:02.562580"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 28], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.565012"], ["updated_at", "2016-08-06 12:10:02.565012"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 28], ["created_at", "2016-08-06 12:10:02.567027"], ["updated_at", "2016-08-06 12:10:02.567027"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 28], ["created_at", "2016-08-06 12:10:02.568881"], ["updated_at", "2016-08-06 12:10:02.568881"]]  (91.8ms) commit transaction  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011229"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011229"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.672573"], ["updated_at", "2016-08-06 12:10:02.672573"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 29], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.674910"], ["updated_at", "2016-08-06 12:10:02.674910"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 29], ["created_at", "2016-08-06 12:10:02.676929"], ["updated_at", "2016-08-06 12:10:02.676929"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 29], ["created_at", "2016-08-06 12:10:02.678802"], ["updated_at", "2016-08-06 12:10:02.678802"]]  (70.8ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "2010011230"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoices" ("number", "issue_date", "due_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011230"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.762803"], ["updated_at", "2016-08-06 12:10:02.762803"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 30], ["itemable_type", "InvoiceBar::Invoice"], ["created_at", "2016-08-06 12:10:02.765480"], ["updated_at", "2016-08-06 12:10:02.765480"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 30], ["created_at", "2016-08-06 12:10:02.767712"], ["updated_at", "2016-08-06 12:10:02.767712"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 30], ["created_at", "2016-08-06 12:10:02.769810"], ["updated_at", "2016-08-06 12:10:02.769810"]]  (83.6ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", "Name 1"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_invoice_templates" ("name", "issue_date", "due_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 1"], ["issue_date", "2016-08-05"], ["due_date", "2016-09-02"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:02.888525"], ["updated_at", "2016-08-06 12:10:02.888525"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"], ["created_at", "2016-08-06 12:10:02.891249"], ["updated_at", "2016-08-06 12:10:02.891249"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::InvoiceTemplate"], ["addressable_id", 1], ["created_at", "2016-08-06 12:10:02.893417"], ["updated_at", "2016-08-06 12:10:02.893417"]]  (93.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", "Name 2"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_invoice_templates" ("name", "issue_date", "due_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 2"], ["issue_date", "2016-08-05"], ["due_date", "2016-09-02"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.001786"], ["updated_at", "2016-08-06 12:10:03.001786"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 2], ["itemable_type", "InvoiceBar::InvoiceTemplate"], ["created_at", "2016-08-06 12:10:03.004621"], ["updated_at", "2016-08-06 12:10:03.004621"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::InvoiceTemplate"], ["addressable_id", 2], ["created_at", "2016-08-06 12:10:03.007170"], ["updated_at", "2016-08-06 12:10:03.007170"]]  (84.0ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", "Name 3"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_invoice_templates" ("name", "issue_date", "due_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 3"], ["issue_date", "2016-08-05"], ["due_date", "2016-09-02"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.107524"], ["updated_at", "2016-08-06 12:10:03.107524"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 3], ["itemable_type", "InvoiceBar::InvoiceTemplate"], ["created_at", "2016-08-06 12:10:03.110522"], ["updated_at", "2016-08-06 12:10:03.110522"]] SQL (1.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::InvoiceTemplate"], ["addressable_id", 3], ["created_at", "2016-08-06 12:10:03.113674"], ["updated_at", "2016-08-06 12:10:03.113674"]]  (72.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011231"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011231"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.239745"], ["updated_at", "2016-08-06 12:10:03.239745"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.242741"], ["updated_at", "2016-08-06 12:10:03.242741"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 1], ["created_at", "2016-08-06 12:10:03.245333"], ["updated_at", "2016-08-06 12:10:03.245333"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 1], ["created_at", "2016-08-06 12:10:03.247832"], ["updated_at", "2016-08-06 12:10:03.247832"]]  (107.0ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011232"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011232"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.372606"], ["updated_at", "2016-08-06 12:10:03.372606"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 2], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.376136"], ["updated_at", "2016-08-06 12:10:03.376136"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 2], ["created_at", "2016-08-06 12:10:03.379893"], ["updated_at", "2016-08-06 12:10:03.379893"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 2], ["created_at", "2016-08-06 12:10:03.382341"], ["updated_at", "2016-08-06 12:10:03.382341"]]  (87.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011233"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011233"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.485274"], ["updated_at", "2016-08-06 12:10:03.485274"]] SQL (0.5ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 3], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.488260"], ["updated_at", "2016-08-06 12:10:03.488260"]] SQL (0.5ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 3], ["created_at", "2016-08-06 12:10:03.490701"], ["updated_at", "2016-08-06 12:10:03.490701"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 3], ["created_at", "2016-08-06 12:10:03.493073"], ["updated_at", "2016-08-06 12:10:03.493073"]]  (85.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011234"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011234"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.593794"], ["updated_at", "2016-08-06 12:10:03.593794"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 4], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.596533"], ["updated_at", "2016-08-06 12:10:03.596533"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 4], ["created_at", "2016-08-06 12:10:03.599071"], ["updated_at", "2016-08-06 12:10:03.599071"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 4], ["created_at", "2016-08-06 12:10:03.602034"], ["updated_at", "2016-08-06 12:10:03.602034"]]  (73.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011235"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011235"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.693029"], ["updated_at", "2016-08-06 12:10:03.693029"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 5], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.696168"], ["updated_at", "2016-08-06 12:10:03.696168"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 5], ["created_at", "2016-08-06 12:10:03.699923"], ["updated_at", "2016-08-06 12:10:03.699923"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 5], ["created_at", "2016-08-06 12:10:03.702862"], ["updated_at", "2016-08-06 12:10:03.702862"]]  (96.9ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011236"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011236"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.832469"], ["updated_at", "2016-08-06 12:10:03.832469"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 6], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.835118"], ["updated_at", "2016-08-06 12:10:03.835118"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 6], ["created_at", "2016-08-06 12:10:03.837272"], ["updated_at", "2016-08-06 12:10:03.837272"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 6], ["created_at", "2016-08-06 12:10:03.839201"], ["updated_at", "2016-08-06 12:10:03.839201"]]  (69.8ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011237"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011237"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:03.921745"], ["updated_at", "2016-08-06 12:10:03.921745"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 7], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:03.924462"], ["updated_at", "2016-08-06 12:10:03.924462"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 7], ["created_at", "2016-08-06 12:10:03.926823"], ["updated_at", "2016-08-06 12:10:03.926823"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 7], ["created_at", "2016-08-06 12:10:03.929398"], ["updated_at", "2016-08-06 12:10:03.929398"]]  (70.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011238"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011238"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.012513"], ["updated_at", "2016-08-06 12:10:04.012513"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 8], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.014930"], ["updated_at", "2016-08-06 12:10:04.014930"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 8], ["created_at", "2016-08-06 12:10:04.017073"], ["updated_at", "2016-08-06 12:10:04.017073"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 8], ["created_at", "2016-08-06 12:10:04.019114"], ["updated_at", "2016-08-06 12:10:04.019114"]]  (108.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011239"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011239"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.142848"], ["updated_at", "2016-08-06 12:10:04.142848"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 9], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.145198"], ["updated_at", "2016-08-06 12:10:04.145198"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 9], ["created_at", "2016-08-06 12:10:04.147462"], ["updated_at", "2016-08-06 12:10:04.147462"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 9], ["created_at", "2016-08-06 12:10:04.149398"], ["updated_at", "2016-08-06 12:10:04.149398"]]  (95.5ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011240"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011240"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.256986"], ["updated_at", "2016-08-06 12:10:04.256986"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 10], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.259395"], ["updated_at", "2016-08-06 12:10:04.259395"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 10], ["created_at", "2016-08-06 12:10:04.261527"], ["updated_at", "2016-08-06 12:10:04.261527"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 10], ["created_at", "2016-08-06 12:10:04.263572"], ["updated_at", "2016-08-06 12:10:04.263572"]]  (99.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011241"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011241"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.372798"], ["updated_at", "2016-08-06 12:10:04.372798"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 11], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.374772"], ["updated_at", "2016-08-06 12:10:04.374772"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 11], ["created_at", "2016-08-06 12:10:04.376538"], ["updated_at", "2016-08-06 12:10:04.376538"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 11], ["created_at", "2016-08-06 12:10:04.378304"], ["updated_at", "2016-08-06 12:10:04.378304"]]  (76.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011242"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011242"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.466566"], ["updated_at", "2016-08-06 12:10:04.466566"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 12], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.469340"], ["updated_at", "2016-08-06 12:10:04.469340"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 12], ["created_at", "2016-08-06 12:10:04.471537"], ["updated_at", "2016-08-06 12:10:04.471537"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 12], ["created_at", "2016-08-06 12:10:04.473592"], ["updated_at", "2016-08-06 12:10:04.473592"]]  (72.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011243"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011243"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.556320"], ["updated_at", "2016-08-06 12:10:04.556320"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 13], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.558196"], ["updated_at", "2016-08-06 12:10:04.558196"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 13], ["created_at", "2016-08-06 12:10:04.559946"], ["updated_at", "2016-08-06 12:10:04.559946"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 13], ["created_at", "2016-08-06 12:10:04.561776"], ["updated_at", "2016-08-06 12:10:04.561776"]]  (102.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011244"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011244"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.675967"], ["updated_at", "2016-08-06 12:10:04.675967"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 14], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.678383"], ["updated_at", "2016-08-06 12:10:04.678383"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 14], ["created_at", "2016-08-06 12:10:04.680548"], ["updated_at", "2016-08-06 12:10:04.680548"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 14], ["created_at", "2016-08-06 12:10:04.682580"], ["updated_at", "2016-08-06 12:10:04.682580"]]  (79.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011245"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011245"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.772640"], ["updated_at", "2016-08-06 12:10:04.772640"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 15], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.774456"], ["updated_at", "2016-08-06 12:10:04.774456"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 15], ["created_at", "2016-08-06 12:10:04.776377"], ["updated_at", "2016-08-06 12:10:04.776377"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 15], ["created_at", "2016-08-06 12:10:04.778278"], ["updated_at", "2016-08-06 12:10:04.778278"]]  (84.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011246"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011246"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.875685"], ["updated_at", "2016-08-06 12:10:04.875685"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 16], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.878961"], ["updated_at", "2016-08-06 12:10:04.878961"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 16], ["created_at", "2016-08-06 12:10:04.881208"], ["updated_at", "2016-08-06 12:10:04.881208"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 16], ["created_at", "2016-08-06 12:10:04.883410"], ["updated_at", "2016-08-06 12:10:04.883410"]]  (79.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011247"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011247"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:04.975043"], ["updated_at", "2016-08-06 12:10:04.975043"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 17], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:04.977954"], ["updated_at", "2016-08-06 12:10:04.977954"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 17], ["created_at", "2016-08-06 12:10:04.980153"], ["updated_at", "2016-08-06 12:10:04.980153"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 17], ["created_at", "2016-08-06 12:10:04.982243"], ["updated_at", "2016-08-06 12:10:04.982243"]]  (92.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011248"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011248"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.087155"], ["updated_at", "2016-08-06 12:10:05.087155"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 18], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.089755"], ["updated_at", "2016-08-06 12:10:05.089755"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 18], ["created_at", "2016-08-06 12:10:05.092024"], ["updated_at", "2016-08-06 12:10:05.092024"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 18], ["created_at", "2016-08-06 12:10:05.094212"], ["updated_at", "2016-08-06 12:10:05.094212"]]  (123.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011249"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011249"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.232670"], ["updated_at", "2016-08-06 12:10:05.232670"]] SQL (0.3ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 19], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.236643"], ["updated_at", "2016-08-06 12:10:05.236643"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 19], ["created_at", "2016-08-06 12:10:05.239848"], ["updated_at", "2016-08-06 12:10:05.239848"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 19], ["created_at", "2016-08-06 12:10:05.241838"], ["updated_at", "2016-08-06 12:10:05.241838"]]  (118.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011250"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011250"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.371304"], ["updated_at", "2016-08-06 12:10:05.371304"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 20], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.373479"], ["updated_at", "2016-08-06 12:10:05.373479"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 20], ["created_at", "2016-08-06 12:10:05.375364"], ["updated_at", "2016-08-06 12:10:05.375364"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 20], ["created_at", "2016-08-06 12:10:05.377222"], ["updated_at", "2016-08-06 12:10:05.377222"]]  (86.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011251"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011251"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.476758"], ["updated_at", "2016-08-06 12:10:05.476758"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 21], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.479974"], ["updated_at", "2016-08-06 12:10:05.479974"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 21], ["created_at", "2016-08-06 12:10:05.482254"], ["updated_at", "2016-08-06 12:10:05.482254"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 21], ["created_at", "2016-08-06 12:10:05.484789"], ["updated_at", "2016-08-06 12:10:05.484789"]]  (118.1ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011252"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011252"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.616161"], ["updated_at", "2016-08-06 12:10:05.616161"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 22], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.618793"], ["updated_at", "2016-08-06 12:10:05.618793"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 22], ["created_at", "2016-08-06 12:10:05.621045"], ["updated_at", "2016-08-06 12:10:05.621045"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 22], ["created_at", "2016-08-06 12:10:05.623261"], ["updated_at", "2016-08-06 12:10:05.623261"]]  (90.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011253"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011253"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.726764"], ["updated_at", "2016-08-06 12:10:05.726764"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 23], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.729325"], ["updated_at", "2016-08-06 12:10:05.729325"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 23], ["created_at", "2016-08-06 12:10:05.731908"], ["updated_at", "2016-08-06 12:10:05.731908"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 23], ["created_at", "2016-08-06 12:10:05.735972"], ["updated_at", "2016-08-06 12:10:05.735972"]]  (92.5ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011254"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011254"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.847088"], ["updated_at", "2016-08-06 12:10:05.847088"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 24], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.849388"], ["updated_at", "2016-08-06 12:10:05.849388"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 24], ["created_at", "2016-08-06 12:10:05.851344"], ["updated_at", "2016-08-06 12:10:05.851344"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 24], ["created_at", "2016-08-06 12:10:05.853335"], ["updated_at", "2016-08-06 12:10:05.853335"]]  (93.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011255"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011255"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:05.958015"], ["updated_at", "2016-08-06 12:10:05.958015"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 25], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:05.960064"], ["updated_at", "2016-08-06 12:10:05.960064"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 25], ["created_at", "2016-08-06 12:10:05.962476"], ["updated_at", "2016-08-06 12:10:05.962476"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 25], ["created_at", "2016-08-06 12:10:05.964306"], ["updated_at", "2016-08-06 12:10:05.964306"]]  (116.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011256"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011256"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.093243"], ["updated_at", "2016-08-06 12:10:06.093243"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 26], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:06.096508"], ["updated_at", "2016-08-06 12:10:06.096508"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 26], ["created_at", "2016-08-06 12:10:06.099169"], ["updated_at", "2016-08-06 12:10:06.099169"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 26], ["created_at", "2016-08-06 12:10:06.101554"], ["updated_at", "2016-08-06 12:10:06.101554"]]  (78.7ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011257"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011257"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.195445"], ["updated_at", "2016-08-06 12:10:06.195445"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 27], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:06.199456"], ["updated_at", "2016-08-06 12:10:06.199456"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 27], ["created_at", "2016-08-06 12:10:06.201952"], ["updated_at", "2016-08-06 12:10:06.201952"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 27], ["created_at", "2016-08-06 12:10:06.204044"], ["updated_at", "2016-08-06 12:10:06.204044"]]  (92.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011258"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011258"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.309872"], ["updated_at", "2016-08-06 12:10:06.309872"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 28], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:06.312461"], ["updated_at", "2016-08-06 12:10:06.312461"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 28], ["created_at", "2016-08-06 12:10:06.314720"], ["updated_at", "2016-08-06 12:10:06.314720"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 28], ["created_at", "2016-08-06 12:10:06.316929"], ["updated_at", "2016-08-06 12:10:06.316929"]]  (123.3ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011259"], ["user_id", 1]] SQL (0.4ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011259"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.453539"], ["updated_at", "2016-08-06 12:10:06.453539"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 29], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:06.455980"], ["updated_at", "2016-08-06 12:10:06.455980"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 29], ["created_at", "2016-08-06 12:10:06.458220"], ["updated_at", "2016-08-06 12:10:06.458220"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 29], ["created_at", "2016-08-06 12:10:06.460506"], ["updated_at", "2016-08-06 12:10:06.460506"]]  (113.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."number" = ? AND "invoice_bar_receipts"."user_id" = ? [["number", "2010011260"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipts" ("number", "issue_date", "user_name", "user_tax_id", "contact_name", "contact_tax_id", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "2010011260"], ["issue_date", "2016-08-06"], ["user_name", "Me"], ["user_tax_id", 102940], ["contact_name", "Company"], ["contact_tax_id", 102939], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.585425"], ["updated_at", "2016-08-06 12:10:06.585425"]] SQL (0.1ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 30], ["itemable_type", "InvoiceBar::Receipt"], ["created_at", "2016-08-06 12:10:06.587511"], ["updated_at", "2016-08-06 12:10:06.587511"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#contact_address"], ["addressable_id", 30], ["created_at", "2016-08-06 12:10:06.589398"], ["updated_at", "2016-08-06 12:10:06.589398"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Receipt#user_address"], ["addressable_id", 30], ["created_at", "2016-08-06 12:10:06.591452"], ["updated_at", "2016-08-06 12:10:06.591452"]]  (89.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_receipt_templates" WHERE "invoice_bar_receipt_templates"."name" = ? AND "invoice_bar_receipt_templates"."user_id" = ? [["name", "Name 1"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_receipt_templates" ("name", "issue_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 1"], ["issue_date", "2016-08-05"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.709764"], ["updated_at", "2016-08-06 12:10:06.709764"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 1], ["itemable_type", "InvoiceBar::ReceiptTemplate"], ["created_at", "2016-08-06 12:10:06.712531"], ["updated_at", "2016-08-06 12:10:06.712531"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::ReceiptTemplate"], ["addressable_id", 1], ["created_at", "2016-08-06 12:10:06.715356"], ["updated_at", "2016-08-06 12:10:06.715356"]]  (96.9ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipt_templates" WHERE "invoice_bar_receipt_templates"."name" = ? AND "invoice_bar_receipt_templates"."user_id" = ? [["name", "Name 2"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipt_templates" ("name", "issue_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 2"], ["issue_date", "2016-08-05"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.824180"], ["updated_at", "2016-08-06 12:10:06.824180"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 2], ["itemable_type", "InvoiceBar::ReceiptTemplate"], ["created_at", "2016-08-06 12:10:06.826448"], ["updated_at", "2016-08-06 12:10:06.826448"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::ReceiptTemplate"], ["addressable_id", 2], ["created_at", "2016-08-06 12:10:06.829192"], ["updated_at", "2016-08-06 12:10:06.829192"]]  (101.1ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipt_templates" WHERE "invoice_bar_receipt_templates"."name" = ? AND "invoice_bar_receipt_templates"."user_id" = ? [["name", "Name 3"], ["user_id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_receipt_templates" ("name", "issue_date", "contact_name", "contact_tax_id", "contact_tax_id2", "amount", "user_id", "account_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["name", "Name 3"], ["issue_date", "2016-08-05"], ["contact_name", "Company"], ["contact_tax_id", 1029392], ["contact_tax_id2", "CZ898989"], ["amount", 1000], ["user_id", 1], ["account_id", 1], ["created_at", "2016-08-06 12:10:06.941262"], ["updated_at", "2016-08-06 12:10:06.941262"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "amount", "itemable_id", "itemable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["amount", 1000], ["itemable_id", 3], ["itemable_type", "InvoiceBar::ReceiptTemplate"], ["created_at", "2016-08-06 12:10:06.943807"], ["updated_at", "2016-08-06 12:10:06.943807"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("city", "city_part", "postcode", "street", "street_number", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["street", "Street"], ["street_number", "28a"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::ReceiptTemplate"], ["addressable_id", 3], ["created_at", "2016-08-06 12:10:06.946775"], ["updated_at", "2016-08-06 12:10:06.946775"]]  (100.0ms) commit transaction Started GET "/invoice_bar/invoice_templates/new" for 127.0.0.1 at 2016-08-06 14:13:42 +0200 Processing by InvoiceBar::InvoiceTemplatesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.9ms)  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (17.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (100.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (659.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (3160.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 3959ms (Views: 3831.9ms | ActiveRecord: 3.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:47 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:48 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:49 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:49 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:49 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:49 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:49 +0200 Started POST "/invoice_bar/invoice_templates" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Processing by InvoiceBar::InvoiceTemplatesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"5nr4g12LmjVXSqWiHMJ5h09nNncTiB2FUPUHa8zeYUAEokj8iJlo4fpHjhkMDCui962LWEVatkDgx5je+DLTBA==", "invoice_template"=>{"name"=>"", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"", "due_date"=>"", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", ""], ["user_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", ""], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.7ms)  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (21.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 68ms (Views: 53.2ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:51 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:13:52 +0200 Started POST "/invoice_bar/invoice_templates" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Processing by InvoiceBar::InvoiceTemplatesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"SYKuf4yuJvlm9kPxHrutKKgXOPKeN/W/woQC3VmnVC2rWh4AWbzULcv7aEoOdf8NEN2F3cjlXnpytp1obUvmaQ==", "invoice_template"=>{"name"=>"", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"", "due_date"=>"", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", ""], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", ""], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.3ms)  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/new.html.erb within invoice_bar/layouts/signed_in (18.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 65ms (Views: 49.7ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:07 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:08 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.3ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.7ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (132.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 166ms (Views: 159.5ms | ActiveRecord: 2.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:15 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:16 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:17 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:14:17 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (41.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (43.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 81ms (Views: 72.2ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:18 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:19 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"vEbCPr6cD3bshuBfHpPSOwdHnbjAgw8jSvwgRB2doTRennJBa479okGLy+QOXYAev40gl5ZRpOb6zr/xKXETcA==", "invoice"=>{"number"=>"VF2016080031", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"1"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080031", "issuer_false_hidden"=>"PF2016080001", "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080031"], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080031"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.3ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (18.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 79ms (Views: 49.5ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:24 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:25 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"xwK4wd2fH5QOHaLnu7DiGuq7UNoa/lg9cI8gze4pV5Ql2gi+CI3tQKMQiVyrfrA/UnHt9Uws8/jAvb942sXl0A==", "invoice"=>{"number"=>"VF2016080031", "issuer"=>"true", "contact_name"=>"ff", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"ff", "street_number"=>"33", "postcode"=>"333", "city"=>"ff", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080031"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_invoices" ("number", "contact_tax_id2", "contact_name", "issue_date", "due_date", "account_id", "user_id", "note", "user_name", "user_tax_id", "user_tax_id2", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "VF2016080031"], ["contact_tax_id2", ""], ["contact_name", "ff"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["account_id", 1], ["user_id", 1], ["note", ""], ["user_name", "admin"], ["user_tax_id", 123456], ["user_tax_id2", "123456"], ["amount", 0], ["created_at", "2016-08-06 12:14:33.246912"], ["updated_at", "2016-08-06 12:14:33.246912"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "ff"], ["street_number", "33"], ["city", "ff"], ["city_part", ""], ["postcode", "333"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 31], ["created_at", "2016-08-06 12:14:33.249096"], ["updated_at", "2016-08-06 12:14:33.249096"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "postcode", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["city", "Mesto"], ["postcode", "74727"], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 31], ["created_at", "2016-08-06 12:14:33.251716"], ["updated_at", "2016-08-06 12:14:33.251716"]]  (125.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080031"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080031"], ["user_id", 1]]  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080031 Completed 302 Found in 149ms (ActiveRecord: 127.6ms) Started GET "/invoice_bar/invoices/VF2016080031" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080031"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080031"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 31], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 31], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 31], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (12.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (13.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 52ms (Views: 46.7ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:33 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:14:34 +0200 Started GET "/invoice_bar/invoices/VF2016080031/edit" for 127.0.0.1 at 2016-08-06 14:15:55 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080031"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Completed 500 Internal Server Error in 57ms (ActiveRecord: 1.6ms) ArgumentError (Unknown key: :required. Valid keys are: :allow_destroy, :reject_if, :limit, :update_only): activesupport (4.2.4) lib/active_support/core_ext/hash/keys.rb:75:in `block in assert_valid_keys' activesupport (4.2.4) lib/active_support/core_ext/hash/keys.rb:73:in `each_key' activesupport (4.2.4) lib/active_support/core_ext/hash/keys.rb:73:in `assert_valid_keys' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:13:in `accepts_nested_attributes_for' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:42:in `' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:2:in `' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:1:in `' activesupport (4.2.4) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.4) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.4) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.4) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.4) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.4) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.4) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.4) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.4) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.4) lib/active_support/inflector/methods.rb:263:in `const_get' activesupport (4.2.4) lib/active_support/inflector/methods.rb:263:in `block in constantize' activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in `each' activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in `inject' activesupport (4.2.4) lib/active_support/inflector/methods.rb:259:in `constantize' activesupport (4.2.4) lib/active_support/inflector/methods.rb:304:in `safe_constantize' activesupport (4.2.4) lib/active_support/dependencies.rb:572:in `safe_get' activesupport (4.2.4) lib/active_support/dependencies.rb:603:in `safe_constantize' activerecord (4.2.4) lib/active_record/inheritance.rb:154:in `block in compute_type' activerecord (4.2.4) lib/active_record/inheritance.rb:153:in `each' activerecord (4.2.4) lib/active_record/inheritance.rb:153:in `compute_type' activerecord (4.2.4) lib/active_record/reflection.rb:271:in `compute_class' activerecord (4.2.4) lib/active_record/reflection.rb:267:in `klass' activerecord (4.2.4) lib/active_record/reflection.rb:505:in `automatic_inverse_of' activerecord (4.2.4) lib/active_record/reflection.rb:494:in `block in inverse_name' activerecord (4.2.4) lib/active_record/reflection.rb:490:in `fetch' activerecord (4.2.4) lib/active_record/reflection.rb:490:in `inverse_name' activerecord (4.2.4) lib/active_record/reflection.rb:387:in `has_inverse?' activerecord (4.2.4) lib/active_record/reflection.rb:336:in `check_validity_of_inverse!' activerecord (4.2.4) lib/active_record/reflection.rb:331:in `check_validity!' activerecord (4.2.4) lib/active_record/associations/association.rb:25:in `initialize' activerecord (4.2.4) lib/active_record/associations.rb:162:in `new' activerecord (4.2.4) lib/active_record/associations.rb:162:in `association' activerecord (4.2.4) lib/active_record/associations/builder/association.rb:115:in `invoices' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:213:in `set_invoice' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:145:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:145:in `block in halting_and_conditional' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.9ms) Started GET "/invoice_bar/invoices/VF2016080031/edit" for 127.0.0.1 at 2016-08-06 14:16:49 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080031"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080031"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 31], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (7.5ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 31], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (59.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (60.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 150ms (Views: 85.7ms | ActiveRecord: 3.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:49 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:16:50 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:16:51 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:17:01 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.1ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.6ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (60.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 91ms (Views: 86.0ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:02 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 67ms (Views: 56.0ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:12 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:13 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:17:24 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"x5BpU1s4aOb9/62lwR7t0snuUCpTanZOgiWcV8YEMSclSNksjiqaMlDyhh7R0L/3cSTtBQW43YsyFwPi8uiDYw==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001", "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.6ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (21.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 81ms (Views: 50.2ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:17:25 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (50.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 82ms (Views: 78.2ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:20 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:21 +0200 Started GET "/invoice_bar/invoice_templates" for 127.0.0.1 at 2016-08-06 14:18:22 +0200 Processing by InvoiceBar::InvoiceTemplatesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (14.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (30.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 57ms (Views: 53.2ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:23 +0200 Started GET "/invoice_bar/invoice_templates/2" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"2"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.2ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (9.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 37.5ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:25 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:26 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.0ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (64.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (30.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 104ms (Views: 99.9ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:28 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:29 +0200 Started GET "/invoice_bar/invoice_templates" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Processing by InvoiceBar::InvoiceTemplatesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (7.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 38.0ms | ActiveRecord: 0.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:35 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:36 +0200 Started GET "/invoice_bar/invoice_templates/1" for 127.0.0.1 at 2016-08-06 14:18:42 +0200 Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.2ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (11.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (12.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (33.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 60ms (Views: 54.2ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:43 +0200 Started GET "/invoice_bar/invoice_templates/1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.1ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (8.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 38.4ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:50 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:51 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:18:53 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.1ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (63.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 98ms (Views: 92.9ms | ActiveRecord: 1.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:54 +0200 Started GET "/invoice_bar/contacts" for 127.0.0.1 at 2016-08-06 14:18:57 +0200 Processing by InvoiceBar::ContactsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.3ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (4.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 37.1ms | ActiveRecord: 0.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:57 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:18:58 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (28.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (30.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 68ms (Views: 58.2ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:03 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:04 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"2sNt4MU7C/usigeIuZkt1t8rYUAtlnKdUKHC00bTZ4w4G92fECn5LwGHLDOpV3/zZ+Hcb3tE2Vjgk11mcj/VyA==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]]  (0.1ms) begin transaction  (0.1ms) commit transaction InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (18.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (28.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 67ms (Views: 52.4ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:08 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:09 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.0ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (54.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 85ms (Views: 82.0ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:19 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:20 +0200 Started GET "/invoice_bar/invoice_templates" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Processing by InvoiceBar::InvoiceTemplatesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/index.html.erb within invoice_bar/layouts/signed_in (8.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 46ms (Views: 43.1ms | ActiveRecord: 0.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:22 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:23 +0200 Started GET "/invoice_bar/invoice_templates/1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.0ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (9.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 45ms (Views: 40.8ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:24 +0200 Started GET "/invoice_bar/invoice_templates/1/edit" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Processing by InvoiceBar::InvoiceTemplatesController#edit as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms)  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/edit.html.erb within invoice_bar/layouts/signed_in (16.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 50ms (Views: 44.4ms | ActiveRecord: 0.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:26 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:27 +0200 Started PATCH "/invoice_bar/invoice_templates/1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Processing by InvoiceBar::InvoiceTemplatesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"HkPHUIufk259aWgAE/ryOzzANnmxy/q+Fs2h0G+fiWX8m3cvXo1hutBkQ7sDNKAehAqLVucZUXum/z5lW3M7IQ==", "invoice_template"=>{"name"=>"Name 1", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"62"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-05", "due_date"=>"2016-09-02", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"31", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 62]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 31 [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", "Name 1"], ["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."name" = ? AND "invoice_bar_invoice_templates"."user_id" = ? [["name", "Name 1"], ["user_id", 1]] SQL (0.2ms) UPDATE "invoice_bar_invoice_templates" SET "note" = ?, "updated_at" = ? WHERE "invoice_bar_invoice_templates"."id" = ? [["note", "fff"], ["updated_at", "2016-08-06 12:19:29.058801"], ["id", 1]] SQL (0.2ms) UPDATE "invoice_bar_items" SET "unit" = ?, "updated_at" = ? WHERE "invoice_bar_items"."id" = ? [["unit", ""], ["updated_at", "2016-08-06 12:19:29.060965"], ["id", 31]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"], ["created_at", "2016-08-06 12:19:29.062458"], ["updated_at", "2016-08-06 12:19:29.062458"]]  (220.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoice_templates/1 Completed 302 Found in 245ms (ActiveRecord: 222.3ms) Started GET "/invoice_bar/invoice_templates/1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Processing by InvoiceBar::InvoiceTemplatesController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.2ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoice_templates/show.html.erb within invoice_bar/layouts/signed_in (9.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 39.7ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:29 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:30 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.2ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (65.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 97ms (Views: 92.7ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:33 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:34 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (18.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (37.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 74ms (Views: 63.1ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:35 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:36 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:19:38 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WK0HHHmZ3HRupthAksfioP6n8SJqv3s9uMwxakWy/Bu6dbdjrIsuoMOr8/uCCbCFRm1MDTxt0PgI/q7fcV5OXw==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]]  (0.1ms) begin transaction  (0.1ms) commit transaction InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (18.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 66ms (Views: 47.3ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:38 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:19:39 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:20:50 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"g7nEntcwt5k8iTZoOFQiynWC5y8sFezeDa7IIKAZuPFhYXThAiJFTZGEHdMomnDvzUhaAHrHRxu9nFeVlPUKtQ==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "1"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (42.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (43.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 175ms (Views: 70.7ms | ActiveRecord: 3.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:20:51 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.1ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3196568406898839611_47450348246300 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (89.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (33.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 166ms (Views: 127.5ms | ActiveRecord: 3.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:29 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:30 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (44.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (45.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 127ms (Views: 75.0ms | ActiveRecord: 2.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:32 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"glQrW2SBRomOnyatHcLIzP8X90/jisr5RtCkJZpU+elgjJsksZO0XSOSDRYNDJrpR91KYLVYYTz24juQrrhLrQ==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.4ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.4ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]]  (0.1ms) begin transaction  (0.1ms) commit transaction InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (20.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 82ms (Views: 53.0ms | ActiveRecord: 2.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:35 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"sKOqwzl09aeQbqjpRqRgb0JwsYyeCop8yaQU3lGv09FSexq87GYHcz1jg1JWajJK+roMo8jYIbl5lotrZUNhlQ==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "1"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (46.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (47.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 182ms (Views: 74.3ms | ActiveRecord: 3.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:53 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:21:54 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:24:14 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3010255605330111808_46997980059740 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (454.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (586.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 1121ms (Views: 1052.4ms | ActiveRecord: 4.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:15 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:15 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:15 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:16 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:17 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.8ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (57.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (59.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 143ms (Views: 86.6ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:18 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"x+vL3mYYRDt/2RAIPrTpDzY5IZkpRJUAHYkc5r7zfyUlM3uhswq279LUO7MuersqjvOctn+WPsWtu4NTih/NYQ==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]]  (0.1ms) begin transaction  (0.1ms) commit transaction InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (8.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (32.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (33.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 85ms (Views: 66.5ms | ActiveRecord: 1.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:24 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:24:25 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:25:46 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"5C8Pt6MQtbrwCRF0tDmXjF5KYar7aFHol9fiVA88VAkG97/IdgJHbl0EOs+k98Wp5oDcha26+i0n5X3hO9DmTQ==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"", "id"=>"", "_destroy"=>"false"}, "1"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]] SQL (0.5ms) INSERT INTO "invoice_bar_invoices" ("number", "contact_tax_id2", "contact_tax_id", "contact_name", "issue_date", "due_date", "account_id", "note", "user_name", "user_tax_id", "user_tax_id2", "user_id", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "VF2016080032"], ["contact_tax_id2", "CZ898989"], ["contact_tax_id", 1029392], ["contact_name", "Company"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["account_id", 1], ["note", "fff"], ["user_name", "admin"], ["user_tax_id", 123456], ["user_tax_id2", "123456"], ["user_id", 1], ["amount", 1000], ["created_at", "2016-08-06 12:25:46.915702"], ["updated_at", "2016-08-06 12:25:46.915702"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_type", "amount", "itemable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["unit", ""], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 1000], ["itemable_id", 32], ["created_at", "2016-08-06 12:25:46.917983"], ["updated_at", "2016-08-06 12:25:46.917983"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 32], ["created_at", "2016-08-06 12:25:46.919807"], ["updated_at", "2016-08-06 12:25:46.919807"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "postcode", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["city", "Mesto"], ["postcode", "74727"], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 32], ["created_at", "2016-08-06 12:25:46.921326"], ["updated_at", "2016-08-06 12:25:46.921326"]]  (107.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]]  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080032 Completed 302 Found in 138ms (ActiveRecord: 109.3ms) Started GET "/invoice_bar/invoices/VF2016080032" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080032"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080032"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 32], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 32], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 32], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (12.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (13.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 54ms (Views: 44.1ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:47 +0200 Started GET "/invoice_bar/invoices/VF2016080032/edit" for 127.0.0.1 at 2016-08-06 14:25:51 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080032"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080032"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 32], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 32], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (27.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (28.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 68ms (Views: 61.5ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:51 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:51 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:51 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:25:52 +0200 Started PATCH "/invoice_bar/invoices/VF2016080032" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"oeNKMv8CpJFKyeYNg3QfNIUVjKqF/xvfxR+RwygHAyZDO/pNKhBWRefEzbaTuk0RPd8xhdMtsBp1LQ52HOuxYg==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"131"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"67", "_destroy"=>"false"}, "1470486355610"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "1470486362218"=>{"name"=>"dddd", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit", "number"=>"VF2016080032"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080032"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 32], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 131]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" IN (67, NULL, NULL) [["itemable_id", 32], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 32], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080032"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 32], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.9ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 80ms (Views: 55.9ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:06 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:26:07 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:26:14 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"UCTIPlVWCJwyD2wzsvfZT3Rii65FmVCeSrKqGuTfRRey/HhBgET6SJ8CR4iiOYtqzKg2gRNL+1v6gDWv0DP3Uw==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"67", "_destroy"=>"false"}, "1"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "2"=>{"name"=>"dddd", "number"=>"", "unit"=>"", "price"=>"", "id"=>"", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Completed 404 Not Found in 12ms (ActiveRecord: 0.3ms) ActiveRecord::RecordNotFound (Couldn't find InvoiceBar::Item with ID=67 for InvoiceBar::Invoice with ID=): activerecord (4.2.4) lib/active_record/nested_attributes.rb:545:in `raise_nested_attributes_record_not_found!' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:138:in `block in assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `each' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:37:in `items_attributes=' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `public_send' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `_assign_attribute' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `block in assign_nested_parameter_attributes' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `each' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `assign_nested_parameter_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:71:in `assign_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes' activerecord (4.2.4) lib/active_record/core.rb:281:in `initialize' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:105:in `create' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.0ms) Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:26:34 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"UCTIPlVWCJwyD2wzsvfZT3Rii65FmVCeSrKqGuTfRRey/HhBgET6SJ8CR4iiOYtqzKg2gRNL+1v6gDWv0DP3Uw==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"67", "_destroy"=>"false"}, "1"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "2"=>{"name"=>"dddd", "number"=>"", "unit"=>"", "price"=>"", "id"=>"", "_destroy"=>"false"}, "1470486390470"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "1470486392792"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Completed 404 Not Found in 10ms (ActiveRecord: 0.3ms) ActiveRecord::RecordNotFound (Couldn't find InvoiceBar::Item with ID=67 for InvoiceBar::Invoice with ID=): activerecord (4.2.4) lib/active_record/nested_attributes.rb:545:in `raise_nested_attributes_record_not_found!' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:138:in `block in assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `each' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:37:in `items_attributes=' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `public_send' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `_assign_attribute' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `block in assign_nested_parameter_attributes' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `each' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `assign_nested_parameter_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:71:in `assign_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes' activerecord (4.2.4) lib/active_record/core.rb:281:in `initialize' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:105:in `create' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:28:32 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.8ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (9.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (60.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (420.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (593.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 1157ms (Views: 1029.5ms | ActiveRecord: 5.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:33 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:34 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (25.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (26.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 67ms (Views: 55.0ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:28:53 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:28:54 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:29:31 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 54.2ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:29:32 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 64ms (Views: 55.9ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:46 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:29:47 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (22.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 68ms (Views: 55.8ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:06 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:30:07 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (26.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 72ms (Views: 61.9ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:30:48 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (33.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 74ms (Views: 62.7ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:51 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-06 14:30:52 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"0764tZ5rg3ipodtFzyKZI+7k4+2shPJdS6oF/3MREyExZgjKS3lxrASs8P7f7MsGVi5ewvpWWZj7mJpKR/2hZQ==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}, "1470486654600"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080033", "issuer_false_hidden"=>"PF2016080001", "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (3.3ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (25.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 90ms (Views: 53.3ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:30:56 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"6n2sOe5cp85cc6Zqwa/mXVwovluWEtEOSLLgANDPbtcIpRxGO05VGvF+jdHRYbR45OIDdMDAesv4gH+15CPckw==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"", "id"=>"", "_destroy"=>"false"}, "1"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.4ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (17.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 76ms (Views: 46.8ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:08 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"2hXHdE+VQB3D3dBcmWHa8MjpiXpuPGXiyMq501M6YbA4zXcLmoeyyW7Q++eJr4jVcCM0VTjuzid4+CZmZ9bT9A==", "template_ids"=>["1"], "fill_in"=>"Použít", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470486681018"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND "invoice_bar_invoice_templates"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::InvoiceTemplate"]]  (0.1ms) begin transaction  (0.1ms) commit transaction InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::InvoiceTemplate"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (29.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 84ms (Views: 59.9ms | ActiveRecord: 1.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:28 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"UsOjsIO7n8i1G2BhTXhq8oCa2LqM8iI+WpZC4/fsFc6wGxPPVqltHBgWS9pdtjjXOFBlldogifvqpN1WwwCnig==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"1"}, "1"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10", "id"=>"", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.2ms) begin transaction  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] SQL (0.8ms) INSERT INTO "invoice_bar_invoices" ("number", "contact_tax_id2", "contact_tax_id", "contact_name", "issue_date", "due_date", "account_id", "user_id", "note", "user_name", "user_tax_id", "user_tax_id2", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["number", "VF2016080033"], ["contact_tax_id2", "CZ898989"], ["contact_tax_id", 1029392], ["contact_name", "Company"], ["issue_date", "2016-08-06"], ["due_date", "2016-08-20"], ["account_id", 1], ["user_id", 1], ["note", "fff"], ["user_name", "admin"], ["user_tax_id", 123456], ["user_tax_id2", "123456"], ["amount", 1000], ["created_at", "2016-08-06 12:31:37.479485"], ["updated_at", "2016-08-06 12:31:37.479485"]] SQL (0.4ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_type", "amount", "itemable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "Item"], ["price", 1000], ["unit", ""], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 1000], ["itemable_id", 33], ["created_at", "2016-08-06 12:31:37.483871"], ["updated_at", "2016-08-06 12:31:37.483871"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["addressable_id", 33], ["created_at", "2016-08-06 12:31:37.487338"], ["updated_at", "2016-08-06 12:31:37.487338"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "postcode", "addressable_type", "addressable_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["city", "Mesto"], ["postcode", "74727"], ["addressable_type", "InvoiceBar::Invoice#user_address"], ["addressable_id", 33], ["created_at", "2016-08-06 12:31:37.490076"], ["updated_at", "2016-08-06 12:31:37.490076"]]  (104.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]]  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080033 Completed 302 Found in 141ms (ActiveRecord: 107.1ms) Started GET "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (20.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (21.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 56ms (Views: 50.4ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:37 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:38 +0200 Started GET "/invoice_bar/invoices/VF2016080033/edit" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 60ms (Views: 53.4ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:40 +0200 Started PATCH "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ncSZOG7LyHrsdi7aMprX2LKudhV/mY3gTX2MOHXc9UZ/HClHu9k6rkF7BWEiVIX9CmTLOilLJiX9TxONQTBHAg==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"133"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"", "id"=>"68", "_destroy"=>"false"}}, "note"=>"fff"}, "commit"=>"Uložit", "number"=>"VF2016080033"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.5ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 133]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 68 [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "amount" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["amount", 0], ["updated_at", "2016-08-06 12:31:44.535253"], ["id", 33]] SQL (0.1ms) UPDATE "invoice_bar_items" SET "price" = ?, "amount" = ?, "updated_at" = ? WHERE "invoice_bar_items"."id" = ? [["price", 0], ["amount", 0], ["updated_at", "2016-08-06 12:31:44.537630"], ["id", 68]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 12:31:44.538986"], ["updated_at", "2016-08-06 12:31:44.538986"]]  (235.0ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080033 Completed 302 Found in 267ms (ActiveRecord: 237.5ms) Started GET "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 37.9ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:44 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:45 +0200 Started GET "/invoice_bar/invoices/VF2016080033/edit" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (22.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (23.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 62ms (Views: 56.6ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:31:50 +0200 Started PATCH "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 14:32:01 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"q6fH0Br8b9jjpQ1E3z+0g7ku5xSysR+dfSgx+R6qLbBJf3evz+6dDE6oJv/P8eamAeRaO+RjtFjNGq5MKkaf9A==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"135"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"68", "_destroy"=>"1"}}, "note"=>"fff"}, "commit"=>"Uložit", "number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 135]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 68 [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 68]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 12:32:01.763986"], ["updated_at", "2016-08-06 12:32:01.763986"]]  (101.6ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080033 Completed 302 Found in 123ms (ActiveRecord: 103.2ms) Started GET "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 14:32:01 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.6ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:01 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:01 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:32:02 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.9ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.5ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (89.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 125ms (Views: 119.7ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:26 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:27 +0200 Started GET "/invoice_bar/invoices/201001124" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001124"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001124"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 4], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 4], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 4], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.6ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (11.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (12.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (32.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 63ms (Views: 52.4ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 14:40:30 +0200 Started GET "/invoice_bar/currencies" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Processing by InvoiceBar::CurrenciesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" LIMIT 25 OFFSET 0 Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/currencies/index.html.erb within invoice_bar/layouts/signed_in (4.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 34.3ms | ActiveRecord: 0.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:38 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (56.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 90ms (Views: 86.1ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:49 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:50 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 15:49:52 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 37.1ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:53 +0200 Started GET "/invoice_bar/invoices?page=2" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Processing by InvoiceBar::InvoicesController#index as HTML Parameters: {"page"=>"2"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.4ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__866952593364873522_47228721627880 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 25 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (34.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 66ms (Views: 63.9ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:49:59 +0200 Started GET "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 41ms (Views: 36.9ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:01 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:02 +0200 Started GET "/invoice_bar/invoices/VF2016080033/edit" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 52ms (Views: 47.1ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:20 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:50:21 +0200 Started GET "/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png" for 127.0.0.1 at 2016-08-06 15:50:23 +0200 Started GET "/assets/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png" for 127.0.0.1 at 2016-08-06 15:50:23 +0200 Started GET "/assets/jquery-ui/ui-icons_222222_256x240.png" for 127.0.0.1 at 2016-08-06 15:50:23 +0200 Started GET "/assets/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png" for 127.0.0.1 at 2016-08-06 15:50:23 +0200 Started GET "/assets/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png" for 127.0.0.1 at 2016-08-06 15:50:23 +0200 Started GET "/assets/jquery-ui/ui-bg_glass_75_dadada_1x400.png" for 127.0.0.1 at 2016-08-06 15:50:55 +0200 Started GET "/assets/jquery-ui/ui-bg_glass_65_ffffff_1x400.png" for 127.0.0.1 at 2016-08-06 15:50:57 +0200 Started PATCH "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 15:51:12 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"8EqmGEa9YEZwAfY69jCV75YVsx0fZRy0skiah/VPqpMSkhZnk6+Skt0M3YHm/sfKLt8OMkm3t3ECegUywaMY1w==", "invoice"=>{"number"=>"VF2016080033", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"1029392", "contact_tax_id2"=>"CZ898989", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"136"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-19", "due_date"=>"2016-08-18", "user_id"=>"1", "note"=>"fff"}, "commit"=>"Uložit", "number"=>"VF2016080033"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.6ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 136]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "VF2016080033"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "issue_date" = ?, "due_date" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["issue_date", "2016-08-19"], ["due_date", "2016-08-18"], ["updated_at", "2016-08-06 13:51:12.674594"], ["id", 33]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 13:51:12.676832"], ["updated_at", "2016-08-06 13:51:12.676832"]]  (106.7ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/VF2016080033 Completed 302 Found in 133ms (ActiveRecord: 108.9ms) Started GET "/invoice_bar/invoices/VF2016080033" for 127.0.0.1 at 2016-08-06 15:51:12 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.6ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 39.0ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:12 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:12 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:12 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:13 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:51:14 +0200 Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:51:15 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (6.7ms) Completed 200 OK in 239ms (Views: 6.5ms | ActiveRecord: 0.7ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:52:06 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.5ms) Completed 200 OK in 21ms (Views: 0.4ms | ActiveRecord: 1.0ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:53:10 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.7ms) Completed 200 OK in 108ms (Views: 0.5ms | ActiveRecord: 3.6ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:54:32 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Completed 500 Internal Server Error in 69ms (ActiveRecord: 2.5ms) NameError (undefined local variable or method `document' for #): /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:35:in `printable_invoice' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:10:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.9ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:54:45 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Completed 500 Internal Server Error in 70ms (ActiveRecord: 2.3ms) NoMethodError (undefined method `l' for #): /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:35:in `printable_invoice' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:10:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.5ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:55:40 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.7ms) Completed 200 OK in 85ms (Views: 0.6ms | ActiveRecord: 3.1ms) Started GET "/invoice_bar/invoices/VF2016080033.pdf" for 127.0.0.1 at 2016-08-06 15:56:32 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"VF2016080033"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "VF2016080033"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 33], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.7ms) Completed 200 OK in 90ms (Views: 0.5ms | ActiveRecord: 2.8ms) Started GET "/invoice_bar/receipts" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Processing by InvoiceBar::ReceiptsController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:27) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:30) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:33) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.9ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:43) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:46) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:49) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb___676574613935006420_70020795446660 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:52) InvoiceBar::Receipt Load (0.4ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (84.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (30.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 140ms (Views: 119.5ms | ActiveRecord: 3.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:38 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:56:39 +0200 Started GET "/invoice_bar/receipts/2010011231" for 127.0.0.1 at 2016-08-06 15:57:11 +0200 Processing by InvoiceBar::ReceiptsController#show as HTML Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (7.1ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (53.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (54.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 161ms (Views: 82.9ms | ActiveRecord: 3.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:12 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 15:57:13 +0200 Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 15:57:15 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms) SyntaxError (/home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:37: syntax error, unexpected ',', expecting ')' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:39: syntax error, unexpected tLABEL, expecting '=' bank_account_number: @receipt.account_bank_accoun... ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:40: syntax error, unexpected tLABEL, expecting '=' account_iban: @receipt.account_iban.to_s, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:41: syntax error, unexpected tLABEL, expecting '=' account_swift: @receipt.account_swift.to_s, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:42: syntax error, unexpected tLABEL, expecting '=' items: printable_items, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:44: syntax error, unexpected ')', expecting keyword_end /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:61: syntax error, unexpected end-of-input, expecting keyword_end): /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:37: syntax error, unexpected ',', expecting ')' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:39: syntax error, unexpected tLABEL, expecting '=' bank_account_number: @receipt.account_bank_accoun... ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:40: syntax error, unexpected tLABEL, expecting '=' account_iban: @receipt.account_iban.to_s, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:41: syntax error, unexpected tLABEL, expecting '=' account_swift: @receipt.account_swift.to_s, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:42: syntax error, unexpected tLABEL, expecting '=' items: printable_items, ^ /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:44: syntax error, unexpected ')', expecting keyword_end /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:61: syntax error, unexpected end-of-input, expecting keyword_end activesupport (4.2.4) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.4) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.4) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.4) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.4) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.4) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.4) lib/active_support/dependencies.rb:184:in `const_missing' activesupport (4.2.4) lib/active_support/dependencies.rb:526:in `load_missing_constant' activesupport (4.2.4) lib/active_support/dependencies.rb:184:in `const_missing' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.5ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 15:57:27 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Rendered text template (0.0ms) Sent data (0.7ms) Completed 200 OK in 95ms (Views: 0.6ms | ActiveRecord: 3.0ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:19:15 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.3ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 529ms (ActiveRecord: 4.1ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.0ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:12 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 81ms (ActiveRecord: 3.1ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.4ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:13 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.2ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:25 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 495ms (ActiveRecord: 3.9ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.0ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:26 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.9ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.8ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:51 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 76ms (ActiveRecord: 2.8ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.4ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:52 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.1ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.7ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (28.0ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:54 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.1ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.3ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:56 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.1ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.8ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.4ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:57 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 17ms (ActiveRecord: 1.1ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.8ms) Started GET "/invoice_bar/receipts/2010011231.pdf" for 127.0.0.1 at 2016-08-06 16:25:58 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011231"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.2ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011231"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Receipt"]] Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.9ms) Prawn::Errors::IncompatibleStringEncoding (Your document includes text that's not compatible with the Windows-1252 character set. If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts .): prawn (2.1.0) lib/prawn/font/afm.rb:106:in `rescue in normalize_encoding' prawn (2.1.0) lib/prawn/font/afm.rb:102:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:379:in `block in normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `each' prawn (2.1.0) lib/prawn/text/formatted/box.rb:373:in `normalize_encoding' prawn (2.1.0) lib/prawn/text/formatted/box.rb:351:in `normalized_text' prawn (2.1.0) lib/prawn/text/formatted/box.rb:214:in `block (3 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:182:in `text_rendering_mode' prawn (2.1.0) lib/prawn/text/formatted/box.rb:211:in `block (2 levels) in render' pdf-core (0.6.1) lib/pdf/core/text.rb:204:in `character_spacing' prawn (2.1.0) lib/prawn/text/formatted/box.rb:210:in `block in render' prawn (2.1.0) lib/prawn/font.rb:207:in `save_font' prawn (2.1.0) lib/prawn/text/formatted/box.rb:209:in `render' prawn (2.1.0) lib/prawn/text/box.rb:133:in `render' prawn (2.1.0) lib/prawn/text/box.rb:116:in `text_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:209:in `build_provider_box' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:118:in `build_pdf' invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:83:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/receipt_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/receipts_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (22.0ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 16:26:05 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (2.3ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___510642945293437398_47295047456680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (98.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (662.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (4.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 790ms (Views: 769.9ms | ActiveRecord: 2.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:08 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.0ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (31.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (32.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (34.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 80ms (Views: 72.5ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:09 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:26:10 +0200 Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:26:11 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.4ms) ArgumentError (wrong number of arguments (1 for 0)): /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:11:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (23.2ms) Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:26:18 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Completed 500 Internal Server Error in 79ms (ActiveRecord: 3.2ms) InvoicePrinter::PDFDocument::FontFileNotFound (Font file not found at /home/strzibny/projects/invoicebar/test/dummy/app/assets/fonts/invoice_bar/Overpass_Regular.ttf): invoice_printer (0.0.4) lib/invoice_printer/pdf_document.rb:79:in `initialize' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `new' invoice_printer (0.0.4) lib/invoice_printer.rb:60:in `render' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:12:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (13.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (30.2ms) Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:27:03 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Completed 500 Internal Server Error in 77ms (ActiveRecord: 2.9ms) NoMethodError (undefined method `root' for InvoiceBar:Module): /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:14:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.2ms) Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:27:32 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (1.7ms) Completed 200 OK in 116ms (Views: 1.5ms | ActiveRecord: 3.1ms) Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-06 16:28:17 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.4ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.9ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (72.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (74.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 125ms (Views: 101.6ms | ActiveRecord: 1.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:18 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:28:19 +0200 Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:29:33 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (1.1ms) Completed 200 OK in 116ms (Views: 0.9ms | ActiveRecord: 3.0ms) Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:37:33 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (4.6ms) Completed 200 OK in 514ms (Views: 4.5ms | ActiveRecord: 4.2ms) Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-06 16:38:05 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.3ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.2ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.0ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (60.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (65.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (601.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 700ms (Views: 673.7ms | ActiveRecord: 1.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:06 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:07 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"YOX9Wu75Nq4Tfs/5s6s+w1joQQ+suGbqNr+pGGtkEQiCPU0lO+vEer5z5EKjZWzm4CL8IPpqzS+GjTatX4ijTA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"2"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "contact_tax_id2" = ?, "note" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["contact_tax_id2", ""], ["note", ""], ["updated_at", "2016-08-06 14:38:16.100312"], ["id", 1]] SQL (0.1ms) UPDATE "invoice_bar_items" SET "unit" = ?, "updated_at" = ? WHERE "invoice_bar_items"."id" = ? [["unit", ""], ["updated_at", "2016-08-06 14:38:16.102358"], ["id", 1]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 14:38:16.103728"], ["updated_at", "2016-08-06 14:38:16.103728"]]  (105.8ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 134ms (ActiveRecord: 108.0ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (2.3ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (22.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (24.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 56ms (Views: 51.2ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:16 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.4ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (0.9ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.0ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (17.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 49ms (Views: 44.5ms | ActiveRecord: 0.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:22 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XAhgPETSbIgI+y5H8zYhpPt+WSb2UVOMPagmsFokjQC+0NBDkcCeXKX2Bfzj+HOBQ7TkCaCD+EmNmrkFbsg/RA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"138"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 138]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 14:38:42.073057"], ["updated_at", "2016-08-06 14:38:42.073057"]]  (95.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 126ms (ActiveRecord: 97.9ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (11.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (11.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 41.8ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:38:42 +0200 Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:38:43 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.6ms) Completed 200 OK in 49ms (Views: 0.5ms | ActiveRecord: 0.8ms) Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.0ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 51ms (Views: 45.4ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:13 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:14 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"9kSTkV84i4NKaelJr1aWSrB0kTvlvo7YrCGJVIKVgMQUnCPuiip5V+dkwvK/mMRvCL4sFLNsJR0cExbhtnkygA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"139"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 139]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.4ms) UPDATE "invoice_bar_invoices" SET "account_id" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["account_id", 2], ["updated_at", "2016-08-06 14:39:22.694887"], ["id", 1]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-06 14:39:22.697677"], ["updated_at", "2016-08-06 14:39:22.697677"]]  (130.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 154ms (ActiveRecord: 132.0ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 43ms (Views: 38.5ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:22 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:39:23 +0200 Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 16:39:25 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (0.5ms) Completed 200 OK in 41ms (Views: 0.4ms | ActiveRecord: 0.7ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (3.4ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb___1048402955333809245_69834873909980 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.6ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (88.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (28.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 129ms (Views: 123.8ms | ActiveRecord: 2.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:37 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:38 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 16:40:39 +0200 Started GET "/" for 127.0.0.1 at 2016-08-06 17:24:00 +0200 Processing by Rails::WelcomeController#index as HTML Rendered /home/strzibny/.gem/ruby/gems/railties-4.2.4/lib/rails/templates/rails/welcome/index.html.erb (1.6ms) Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) Started GET "/invoice_bar" for 127.0.0.1 at 2016-08-06 17:24:05 +0200 Processing by InvoiceBar::DashboardController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/invoice_bar/invoices Completed 302 Found in 45ms (ActiveRecord: 2.0ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-06 17:24:05 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.6ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2540332166310135333_47095771009900 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.5ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (465.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (581.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 1075ms (Views: 1053.4ms | ActiveRecord: 2.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:06 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:07 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (10.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (70.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (71.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (31.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 128ms (Views: 109.4ms | ActiveRecord: 2.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:09 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 17:24:10 +0200 Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 17:24:13 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms) NoMethodError (undefined method `account_currency_symbol' for #): activemodel (4.2.4) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:43:in `printable_invoice' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice_pdf.rb:14:in `render' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:27:in `block (2 levels) in show' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `call' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:217:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:23:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.7ms) Started GET "/invoice_bar/invoices/201001121.pdf" for 127.0.0.1 at 2016-08-06 17:24:40 +0200 Processing by InvoiceBar::InvoicesController#show as PDF Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.3ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered text template (0.0ms) Sent data (2.3ms) Completed 200 OK in 132ms (Views: 2.1ms | ActiveRecord: 3.9ms) Started GET "/invoice_bar/receipts" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Processing by InvoiceBar::ReceiptsController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:27) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:30) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:33) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:43) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:46) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:49) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_receipts_index_html_erb__1035970114034147615_70056333242760 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb:52) InvoiceBar::Receipt Load (0.4ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/index.html.erb within invoice_bar/layouts/signed_in (82.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 148ms (Views: 110.9ms | ActiveRecord: 3.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:51 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:52 +0200 Started GET "/invoice_bar/receipts/2010011235" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Processing by InvoiceBar::ReceiptsController#show as HTML Parameters: {"number"=>"2010011235"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.4ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011235"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Receipt#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Receipt"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (11.3ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (52.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/receipts/show.html.erb within invoice_bar/layouts/signed_in (53.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 104ms (Views: 84.2ms | ActiveRecord: 2.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:54 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-06 17:25:55 +0200 Started GET "/invoice_bar/receipts/2010011235.pdf" for 127.0.0.1 at 2016-08-06 17:27:27 +0200 Processing by InvoiceBar::ReceiptsController#show as PDF Parameters: {"number"=>"2010011235"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Receipt Load (0.1ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND "invoice_bar_receipts"."number" = ? ORDER BY "invoice_bar_receipts"."id" ASC LIMIT 1 [["user_id", 1], ["number", "2010011235"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Receipt#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Receipt"]] Rendered text template (0.0ms) Sent data (0.6ms) Completed 200 OK in 44ms (Views: 0.4ms | ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2016-08-07 19:18:56 +0200 Processing by Rails::WelcomeController#index as HTML Rendered /home/strzibny/.gem/ruby/gems/railties-4.2.4/lib/rails/templates/rails/welcome/index.html.erb (2.5ms) Completed 200 OK in 11ms (Views: 11.2ms | ActiveRecord: 0.0ms) Started GET "/invoice_bar" for 127.0.0.1 at 2016-08-07 19:19:02 +0200 Processing by InvoiceBar::DashboardController#index as HTML Redirected to http://localhost:3000/invoice_bar/login Filter chain halted as :require_login rendered or redirected Completed 302 Found in 377ms (ActiveRecord: 0.0ms) Started GET "/invoice_bar/login" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Processing by InvoiceBar::SessionsController#new as HTML Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/sessions/new.html.erb within invoice_bar/layouts/signed_out (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (544.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 555ms (Views: 554.8ms | ActiveRecord: 0.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:03 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:19:04 +0200 Started POST "/invoice_bar/sessions" for 127.0.0.1 at 2016-08-07 19:19:15 +0200 Processing by InvoiceBar::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"sjWDyBRFowXFZDNatK7a9E3CH5rhBXv+cJTRyx335aO0yl5OkYirGqLVrILN13jhozApU+VIV2n4FwCu1Yv5jw==", "email"=>"admin@admin.cz", "password"=>"[FILTERED]", "commit"=>"Přihlásit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'admin@admin.cz' ORDER BY "invoice_bar_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/invoice_bar/ Completed 302 Found in 186ms (ActiveRecord: 2.2ms) Started GET "/invoice_bar/" for 127.0.0.1 at 2016-08-07 19:19:16 +0200 Processing by InvoiceBar::DashboardController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/invoice_bar/invoices Completed 302 Found in 7ms (ActiveRecord: 0.2ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:19:16 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.7ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_47333556107680 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (106.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 157ms (Views: 133.7ms | ActiveRecord: 2.6ms) Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 19:19:16 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:19:41 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.2ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (59.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 95ms (Views: 90.6ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:33 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 19:23:34 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:23:52 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (7.6ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (47.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (48.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 104ms (Views: 76.1ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:23:53 +0200 Started GET "/invoice_bar/search?utf8=%E2%9C%93&search=2010" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Processing by InvoiceBar::SearchController#index as HTML Parameters: {"utf8"=>"✓", "search"=>"2010"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND (number LIKE '%2010%' OR contact_name LIKE '%2010%' OR contact_tax_id LIKE '%2010%') [["user_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND (number LIKE '%2010%' OR contact_name LIKE '%2010%' OR contact_tax_id LIKE '%2010%') [["user_id", 1]] InvoiceBar::Invoice Load (0.5ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND (number LIKE '%2010%' OR contact_name LIKE '%2010%' OR contact_tax_id LIKE '%2010%') [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND (number LIKE '%2010%' OR contact_name LIKE '%2010%' OR contact_tax_id LIKE '%2010%') [["user_id", 1]] InvoiceBar::Receipt Load (0.4ms) SELECT "invoice_bar_receipts".* FROM "invoice_bar_receipts" WHERE "invoice_bar_receipts"."user_id" = ? AND (number LIKE '%2010%' OR contact_name LIKE '%2010%' OR contact_tax_id LIKE '%2010%') [["user_id", 1]] InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? AND (name LIKE '%2010%') [["user_id", 1]] InvoiceBar::ReceiptTemplate Load (0.2ms) SELECT "invoice_bar_receipt_templates".* FROM "invoice_bar_receipt_templates" WHERE "invoice_bar_receipt_templates"."user_id" = ? AND (name LIKE '%2010%') [["user_id", 1]] InvoiceBar::Contact Load (0.2ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? AND (name LIKE '%2010%' OR tax_id LIKE '%2010%' OR email LIKE '%2010%' OR phone LIKE '%2010%') [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/search/index.html.erb within invoice_bar/layouts/signed_in (53.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 112ms (Views: 81.7ms | ActiveRecord: 3.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:24:00 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 37.3ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:25:06 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__545651138915147235_69975296082820 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (87.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 152ms (Views: 113.4ms | ActiveRecord: 3.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 19:28:27 +0200 Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (6.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (46.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (47.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (31.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 104ms (Views: 85.0ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:30 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:31 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.7ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.7ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (57.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (59.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 111ms (Views: 88.6ms | ActiveRecord: 1.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:32 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:33 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+oDucxk1UhjL3ohllHdczL8sszatp+GavEonDAlWezz8fzP1nPhaB6xvF73tDv7ZUd6F/6nqzQ00yfZpwSpnEA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (18.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (19.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (29.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 79ms (Views: 55.3ms | ActiveRecord: 2.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:28:37 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:28:58 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"oM8ISq1xx7MLgpMl6pmGf4zr0NnQHqteoaCN46BWzeumMNXMKLzPrGwzDP2T4CRqYhnmENRTh8kpI1yGaCrRxw==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"true"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Completed 404 Not Found in 9ms (ActiveRecord: 0.2ms) ActiveRecord::RecordNotFound (Couldn't find InvoiceBar::Item with ID=1 for InvoiceBar::Invoice with ID=): activerecord (4.2.4) lib/active_record/nested_attributes.rb:545:in `raise_nested_attributes_record_not_found!' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:138:in `block in assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `each' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:37:in `items_attributes=' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `public_send' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `_assign_attribute' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `block in assign_nested_parameter_attributes' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `each' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `assign_nested_parameter_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:71:in `assign_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes' activerecord (4.2.4) lib/active_record/core.rb:281:in `initialize' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:105:in `create' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (8.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (29.7ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (16.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (18.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (30.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 68ms (Views: 57.8ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:07 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:08 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (24.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 65ms (Views: 58.0ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:10 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"C8ux5jjEnmTRC9+kTM4bryKVNdZJyOqn2oA51e5kU40NNGxgvQmWe7a6QHw1t7m6zGcDH02FxjBSA+iwJhhPoQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 68ms (Views: 49.4ms | ActiveRecord: 1.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:13 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:14 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.2ms) InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (80.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (81.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 189ms (Views: 113.2ms | ActiveRecord: 4.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:43 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:29:45 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mKbIcvK5Sm8NzzFc/JXU4efMpylZ8Hz/8Y3HWbpSubieWRX0d3RCcGp+roSF7Hb0CT6R4F29UGh5DhY8ci6llA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (20.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 76ms (Views: 51.9ms | ActiveRecord: 2.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:29:46 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:29:51 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"VWjFb6VFLqYfz4ubGG3cyzlhTz2/YjGSYEqYKj1pYKZTlxjpIIgmuXh+FENhFH7e15N59LsvHQXoyUlP9RV8ig==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] Completed 404 Not Found in 9ms (ActiveRecord: 0.3ms) ActiveRecord::RecordNotFound (Couldn't find InvoiceBar::Item with ID=1 for InvoiceBar::Invoice with ID=): activerecord (4.2.4) lib/active_record/nested_attributes.rb:545:in `raise_nested_attributes_record_not_found!' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:138:in `block in assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `each' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:112:in `assign_nested_attributes_for_collection_association' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/nested_attributes.rb:37:in `items_attributes=' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `public_send' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:54:in `_assign_attribute' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `block in assign_nested_parameter_attributes' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `each' activerecord (4.2.4) lib/active_record/attribute_assignment.rb:65:in `assign_nested_parameter_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:71:in `assign_attributes' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes' activerecord (4.2.4) lib/active_record/core.rb:281:in `initialize' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' activerecord (4.2.4) lib/active_record/inheritance.rb:61:in `new' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:105:in `create' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.4ms) Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:30:32 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mKbIcvK5Sm8NzzFc/JXU4efMpylZ8Hz/8Y3HWbpSubieWRX0d3RCcGp+roSF7Hb0CT6R4F29UGh5DhY8ci6llA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.2ms) rollback transaction Completed 500 Internal Server Error in 118ms (ActiveRecord: 4.5ms) NoMethodError (undefined method `render' for #): activemodel (4.2.4) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:72:in `has_items' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `block in simple' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' activemodel (4.2.4) lib/active_model/validations.rb:398:in `run_validations!' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `run_validations!' activemodel (4.2.4) lib/active_model/validations.rb:337:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:58:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:83:in `perform_validations' activerecord (4.2.4) lib/active_record/validations.rb:37:in `save' activerecord (4.2.4) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.4) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.4) lib/active_record/transactions.rb:285:in `save' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:65:in `block in update' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:63:in `update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:50:in `block in respond_on_update' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:212:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:49:in `respond_on_update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:156:in `update' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (24.9ms) Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:30:51 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mKbIcvK5Sm8NzzFc/JXU4efMpylZ8Hz/8Y3HWbpSubieWRX0d3RCcGp+roSF7Hb0CT6R4F29UGh5DhY8ci6llA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.4ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (0.9ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (49.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (50.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 182ms (Views: 79.5ms | ActiveRecord: 5.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:30:52 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.6ms) InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (75.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (75.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 169ms (Views: 100.9ms | ActiveRecord: 4.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:56 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:31:57 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:31:59 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+9j0Bil1ASTi0Liy+WTxg6My2VskO/8d5o1DM4lvaJT9JymArLgJO4VhJ2qAHVOWTcDvkiB204puDpJWQRN0uA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.8ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) rollback transaction Completed 500 Internal Server Error in 29ms (ActiveRecord: 2.5ms) NameError (undefined local variable or method `invalid' for #): activemodel (4.2.4) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:72:in `has_items' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `block in simple' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' activemodel (4.2.4) lib/active_model/validations.rb:398:in `run_validations!' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `run_validations!' activemodel (4.2.4) lib/active_model/validations.rb:337:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:58:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:83:in `perform_validations' activerecord (4.2.4) lib/active_record/validations.rb:37:in `save' activerecord (4.2.4) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.4) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.4) lib/active_record/transactions.rb:285:in `save' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:65:in `block in update' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:63:in `update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:50:in `block in respond_on_update' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:212:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:49:in `respond_on_update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:156:in `update' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.0ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (27.2ms) Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.3ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (66.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (67.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 181ms (Views: 96.4ms | ActiveRecord: 4.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:11 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:32:12 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"YrN2Awn5KU8Olnwi2nmFdNafEHd/7VYvY9anPiWDGRJkTKuFjDQhUGkn4/qjACdhOG0mvnugerjrVXZb7f8FPg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"140"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 140]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:32:14.484291"], ["updated_at", "2016-08-07 17:32:14.484291"]]  (215.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 243ms (ActiveRecord: 218.0ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (16.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (17.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 54ms (Views: 47.5ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:14 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:15 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (25.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (8.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 71ms (Views: 65.5ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:17 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:32:18 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zz1YZkBAQkuygHEfsPjr3AWlCbdlMnzchtgKd6yuxMZhwoXgxY1KVNUx7sfJgUnJ61c/fmF/UEsOW9sSZNLY6g==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"141"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"1", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 141]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 1 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 1]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:32:22.250287"], ["updated_at", "2016-08-07 17:32:22.250287"]]  (107.7ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 138ms (ActiveRecord: 109.6ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (9.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (10.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 39.3ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:22 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:23 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (20.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (26.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 58ms (Views: 52.4ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:27 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:32:28 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"8dDNp4LueEvHIuW4aJkIueIAgsmE1l660pM1ktKMyhn3LxAhByNwVKCTemAR4KqsDPK0AICbci1aEOT3GvDWNQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"142"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 142]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (67.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (68.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 191ms (Views: 96.6ms | ActiveRecord: 5.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:12 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:33:13 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (11.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (27.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (28.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 62ms (Views: 56.8ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:33:53 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"STiMlQw0rCawxaPN+lSocghUvhwcbABvAEc//NRrGPJPx1ETifmkOdd0PBWDLQpn5qaI1RghLPiIxO6ZHBcE3g==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"142"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 142]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.9ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (14.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (16.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (32.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 81ms (Views: 56.7ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:55 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:33:56 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:34:00 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.3ms) Completed 200 OK in 58ms (Views: 53.2ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:34:01 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"SBVbdyidNFL4T0Huk/9/B54ESO5JP7JeK/r0h+eZdThO6obxrVA8TZ/+3jbqht0ScPZ+J01ynsmjeSXiL+VpFA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"142"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470591243054"=>{"name"=>"ddd", "number"=>"", "unit"=>"", "price"=>"20,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 142]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "amount" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["amount", 2000], ["updated_at", "2016-08-07 17:34:08.037352"], ["id", 1]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "ddd"], ["price", 2000], ["unit", ""], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 2000], ["created_at", "2016-08-07 17:34:08.039737"], ["updated_at", "2016-08-07 17:34:08.039737"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:34:08.041817"], ["updated_at", "2016-08-07 17:34:08.041817"]]  (115.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 142ms (ActiveRecord: 117.0ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.8ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (18.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (18.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 56ms (Views: 49.4ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:08 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (23.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 61ms (Views: 55.7ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:34:12 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"dzP1gTr5HXN1HAaNuRt+my6EY2w2iBraLzxQa0lh/nhxzCgHvzQVbBKtmVXAYtyOwHZVpTLFNk2nv4EOgR3iVA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"143"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ddd", "number"=>"", "unit"=>"", "price"=>"20,00", "id"=>"69", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 143]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 69 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 69]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:34:17.258991"], ["updated_at", "2016-08-07 17:34:17.258991"]]  (97.8ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 131ms (ActiveRecord: 100.2ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (7.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (8.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 35.9ms | ActiveRecord: 0.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:34:17 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.4ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (70.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (71.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 177ms (Views: 98.9ms | ActiveRecord: 3.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:35:02 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:35:10 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"awhXi6lPiIKkIGbKdSTM7mWmlz4Cvs3h6QjfLBSdIkxt94oNLIKAncOR+RIMXW77i1Sh9wbz4XZhiw5J3OE+YA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"144"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470591305654"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"30,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 144]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.3ms) rollback transaction Completed 500 Internal Server Error in 21ms (ActiveRecord: 2.0ms) NameError (undefined local variable or method `params' for #): activemodel (4.2.4) lib/active_model/attribute_methods.rb:433:in `method_missing' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:72:in `has_items' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `block in simple' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' activemodel (4.2.4) lib/active_model/validations.rb:398:in `run_validations!' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `run_validations!' activemodel (4.2.4) lib/active_model/validations.rb:337:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:58:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:83:in `perform_validations' activerecord (4.2.4) lib/active_record/validations.rb:37:in `save' activerecord (4.2.4) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.4) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.4) lib/active_record/transactions.rb:285:in `save' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:65:in `block in update' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:63:in `update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:50:in `block in respond_on_update' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:212:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:49:in `respond_on_update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:156:in `update' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (26.0ms) Started GET "/invoice_bar/invoices/201001121/eidt" for 127.0.0.1 at 2016-08-07 19:35:57 +0200 ActionController::RoutingError (No route matches [GET] "/invoice_bar/invoices/201001121/eidt"): actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (10.6ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.4ms) Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:35:59 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.3ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms) InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.6ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (82.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (83.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 186ms (Views: 111.4ms | ActiveRecord: 5.0ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:36:00 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:36:07 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"TkZrAFFQAO597O3WWaOv3dntctpf8+TRojdfSEMfIO9IubaG1J0I8Rpdcg4g2g3INx9EE1u+yEYqtI4ti2M8ww==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"144"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470591362938"=>{"name"=>"ed", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 144]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "amount" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["amount", 0], ["updated_at", "2016-08-07 17:36:08.006981"], ["id", 1]] SQL (0.3ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "ed"], ["price", 0], ["unit", ""], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 0], ["created_at", "2016-08-07 17:36:08.009137"], ["updated_at", "2016-08-07 17:36:08.009137"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:36:08.011181"], ["updated_at", "2016-08-07 17:36:08.011181"]]  (102.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 131ms (ActiveRecord: 104.5ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (23.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (23.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 59ms (Views: 52.6ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:36:08 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:38:49 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (9.0ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (68.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (69.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 170ms (Views: 95.7ms | ActiveRecord: 4.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:49 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:49 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:38:50 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"SdsqjY14/hUio/S/TDVku644i5CVeCnbYWhsR8N8ybpPJPcLCLX2CkUSa2c1TMauQMq9WZE1BUzp670iCwDVlg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"145"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ed", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"70", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 145]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 70 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 70]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:39:37.373215"], ["updated_at", "2016-08-07 17:39:37.373215"]]  (95.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 127ms (ActiveRecord: 97.4ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.0ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (18.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (19.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 57ms (Views: 50.3ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:37 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:39:38 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.5ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (62.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (63.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (34.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 173ms (Views: 101.7ms | ActiveRecord: 3.6ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:45:59 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:00 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"YfvjPfYtHj3/0KS2ke20ahbO0sKFeB7/VqLn6N0os+ZnBD67c+AWIphhO27olBZ/+DzkC4E1MmjeITaNFVSvyg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.5ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.4ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (29.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 93ms (Views: 58.7ms | ActiveRecord: 3.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:02 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.0ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (22.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 58ms (Views: 52.0ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:10 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:11 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"hpvavMLzEON0mz+IxsdyW3n1GwWS/yx2ldxXBMeLkaKAZAc6Rz4Y/BMqoFC/vtBOlwctzJayAOEdX4ZhD/eNjg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470591972747"=>{"name"=>"dfdf", "number"=>"", "unit"=>"", "price"=>"30,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (27.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 81ms (Views: 57.3ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:17 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:18 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+s7jIgfAPW5uqXpU/Uf7yUWxxkYEGIPSSTR3hPRYTpT8MT6kgg01cQkY5YyEPlncq0PwjwBVr0XBt6bhPCRSuA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"dfdf", "number"=>"", "unit"=>"", "price"=>"30,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) commit transaction  (0.0ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] CACHE (0.0ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.2ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (18.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 61ms (Views: 44.4ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:22 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:23 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"z5ktKU+wVgwfYEztZKD6sG6HojE1rKNY/IScRJ5IinbJZvCvyn1eE3jR0zUd2VilgHWU+DHhj890B00hVjSWWg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"dfdf", "number"=>"", "unit"=>"", "price"=>"30,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] CACHE (0.0ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.6ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (18.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (19.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 66ms (Views: 46.5ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:28 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.9ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (26.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (33.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 75ms (Views: 67.3ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:54 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:46:55 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"bHu4KI77WRunEW3sX13R5641v9QRqxcARohW7coF0g5qhGWuCzZRBMCg8jQmJHPyQMeJHRXmO5fOC4eIAnnOIg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592052117"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.7ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (24.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 79ms (Views: 54.3ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:37 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:47:38 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.3ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (65.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (66.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (21.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 169ms (Views: 92.9ms | ActiveRecord: 3.8ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:03 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:49:04 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"yueJ7HVigzuD2hQu68BamuPf3ljtboHe8IYxGWQ7+MDMGFRq8K+LJORri/aSufiPDS3okekjrUl4BeB8rEfk7A==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592148550"=>{"name"=>"fdfdf", "number"=>"", "unit"=>"", "price"=>"40,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (20.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (25.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 84ms (Views: 52.6ms | ActiveRecord: 2.9ms) Started GET "/assets/invoice_bar/invoice_bar.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/invoice_bar/document.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/invoice_bar/forms.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/invoice_bar/tables.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/bootstrap-responsive.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/accordion.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/button.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/draggable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/resizable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/dialog.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/progressbar.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/selectable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/selectmenu.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/slider.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/sortable.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/spinner.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/tabs.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/tooltip.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery-ui/base.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:19 +0200 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/all.css?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/accordion.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/button.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/draggable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/dialog.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/resizable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/droppable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-bounce.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-blind.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-clip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-drop.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-explode.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-fade.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-fold.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-size.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-highlight.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-pulsate.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-scale.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-puff.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-slide.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-shake.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/effect-transfer.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/progressbar.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/selectable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/selectmenu.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/slider.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/tabs.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/spinner.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui/tooltip.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery-ui.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/jquery_nested_form.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/invoice_bar/invoice_bar.js?body=1" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:49:20 +0200 InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" ORDER BY "invoice_bar_invoices"."id" DESC LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]] Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:56:40 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.8ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.9ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (9.7ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (412.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (421.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (97.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 636ms (Views: 528.2ms | ActiveRecord: 5.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 19:56:41 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 19:56:41 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:56:41 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:56:49 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"TEF4hlerATabrn/IeZlrpobI0mx4ndhdk/zGtX1YEQpKvqUA0mYJKfwf4BAA4MmzaDrkpXzQ9MobfxfQtSQNJg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (17.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 49ms (Views: 26.6ms | ActiveRecord: 2.3ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:56:49 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:57:10 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (18.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (19.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 1.1ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:57:10 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:57:17 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"BKPNw95vWaQ+KFJfYrypk9VaC8zlvkGL6ymfwbAQZVsCXBBFW6JRu1mZzYcbxQuGO6g9BeHzbRxjqk6keGx5dw==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592632543"=>{"name"=>"fdfdf", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.0ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.0ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (16.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 43ms (Views: 23.8ms | ActiveRecord: 1.8ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:57:17 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:58:37 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (7.7ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (68.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (68.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 152ms (Views: 74.8ms | ActiveRecord: 3.5ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:58:37 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:58:43 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"K/T8UX6SvTJewjoSNd354MUpJ1s/p5pvcdj1Dp6zP4UtCyHX+1+1LTlzpcpMpFv1K9sRkjvqtvj5WyRrVs8jqQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.8ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (0.9ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (12.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (13.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 49ms (Views: 27.0ms | ActiveRecord: 2.2ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:58:43 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:58:46 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.7ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.3ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (21.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 35ms (Views: 28.8ms | ActiveRecord: 1.1ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:58:46 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:58:53 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"MnoLzXECWixoy9ka6d8dj9kTWE+wz4dAKOFcDB9/2Y00hdZL9M9SMw96RsKQpr+aN+FuhrSCq9egYo1p1wPFoQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592728018"=>{"name"=>"dfsf", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.0ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.0ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.3ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (21.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (22.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 51ms (Views: 30.3ms | ActiveRecord: 2.0ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:58:53 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 19:59:10 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.5ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (61.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (62.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 134ms (Views: 68.2ms | ActiveRecord: 3.7ms) Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 19:59:10 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:59:17 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+zGZypFPVXtZeNFNHTzUDwbRHoSkCgp9+Lo+AqB2wgD9zkRMFIJdZD7JTpVkRXYa6CMoTaBHJupwOe9naAreLA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592753346"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.2ms) rollback transaction Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.6ms) NoMethodError (undefined method `lenght' for #): activerecord (4.2.4) lib/active_record/relation/delegation.rb:136:in `method_missing' activerecord (4.2.4) lib/active_record/relation/delegation.rb:99:in `method_missing' /home/strzibny/projects/invoicebar/app/models/invoice_bar/invoice.rb:71:in `has_items' activesupport (4.2.4) lib/active_support/callbacks.rb:432:in `block in make_lambda' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:192:in `block in simple' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `each' activesupport (4.2.4) lib/active_support/callbacks.rb:504:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validate_callbacks' activemodel (4.2.4) lib/active_model/validations.rb:398:in `run_validations!' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `block in run_validations!' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_validation_callbacks' activemodel (4.2.4) lib/active_model/validations/callbacks.rb:113:in `run_validations!' activemodel (4.2.4) lib/active_model/validations.rb:337:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:58:in `valid?' activerecord (4.2.4) lib/active_record/validations.rb:83:in `perform_validations' activerecord (4.2.4) lib/active_record/validations.rb:37:in `save' activerecord (4.2.4) lib/active_record/attribute_methods/dirty.rb:21:in `save' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block (2 levels) in save' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' activerecord (4.2.4) lib/active_record/transactions.rb:286:in `block in save' activerecord (4.2.4) lib/active_record/transactions.rb:301:in `rollback_active_record_state!' activerecord (4.2.4) lib/active_record/transactions.rb:285:in `save' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:65:in `block in update' activerecord (4.2.4) lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:220:in `transaction' activerecord (4.2.4) lib/active_record/transactions.rb:348:in `with_transaction_returning_status' protected_attributes (1.1.3) lib/active_record/mass_assignment_security/persistence.rb:63:in `update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:50:in `block in respond_on_update' actionpack (4.2.4) lib/action_controller/metal/mime_responds.rb:212:in `respond_to' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/application_controller.rb:49:in `respond_on_update' /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:156:in `update' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' rack (1.6.4) lib/rack/etag.rb:24:in `call' rack (1.6.4) lib/rack/conditionalget.rb:38:in `call' rack (1.6.4) lib/rack/head.rb:13:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.5ms) Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:59:28 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+zGZypFPVXtZeNFNHTzUDwbRHoSkCgp9+Lo+AqB2wgD9zkRMFIJdZD7JTpVkRXYa6CMoTaBHJupwOe9naAreLA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"146"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592753346"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 146]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "ff"], ["price", 0], ["unit", ""], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 0], ["created_at", "2016-08-07 17:59:28.550850"], ["updated_at", "2016-08-07 17:59:28.550850"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 17:59:28.552554"], ["updated_at", "2016-08-07 17:59:28.552554"]]  (82.4ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 184ms (ActiveRecord: 86.5ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 19:59:28 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (48.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (49.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 70ms (Views: 56.9ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 19:59:28 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 19:59:28 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:00:41 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.2ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (60.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (60.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 133ms (Views: 66.1ms | ActiveRecord: 3.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:00:41 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:00:41 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:00:42 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:00:44 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"32M2q/ChtvXBSeuu6aZOSDQtqjD5CTrVgUtYKK8rOaTZnOstdWy+6qb4dHaQ3+xd2t+c+f1EFkIJyIlNZ1cliA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"147"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"71", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 147]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 71 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:00:44.408670"], ["updated_at", "2016-08-07 18:00:44.408670"]]  (90.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 119ms (ActiveRecord: 92.2ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:00:44 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (19.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (20.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 28.6ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:00:44 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:00:44 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:00:46 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.3ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (26.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 45ms (Views: 35.5ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:00:46 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:00:46 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:00:47 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:00:50 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"7V2PYfLpVYzWPaS9n1pFe6RkicMGjNv5HGW27CiLPXTrolLndyRdk7GMO2XmI+duSpa/CgLB926U5meJ4PchWA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"148"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"71", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 148]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 71 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 71]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:00:50.106669"], ["updated_at", "2016-08-07 18:00:50.106669"]]  (91.0ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 121ms (ActiveRecord: 92.9ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:00:50 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (12.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 20.4ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:00:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:00:50 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:01:12 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.9ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (20.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 34ms (Views: 28.4ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:12 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:12 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:01:12 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:01:14 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"csloqdhD2yBL6f4LfqOhavu/aqmKiMQatUy/PGMsrW90NrUvXY7TPyxYYdMH2gN/FU1cYI7F6I09z25Zq1CxQw==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"149"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 149]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.4ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (21.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 49ms (Views: 29.2ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:14 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:14 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:01:14 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 20:01:29 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"YobhZEYmY1DhbIBQosusxTAc4xE67g7U8CvMZhTPO61keTziw+trT4bdH4jbsg7Q3u7V2D6jIkN4qB0D3LMngQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592881436"=>{"name"=>"fdf", "number"=>"", "unit"=>"", "price"=>"440,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) begin transaction  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] CACHE (0.0ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (19.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (20.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 47ms (Views: 27.5ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:29 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:29 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:01:29 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:01:37 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.8ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.4ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (25.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 34.8ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:37 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:37 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:01:37 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:01:44 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"XsWg1JmWqn50l5t8VinqFn2GVvUfEkIvU+k843cXxR5YOn1SHFuiYRMmBKQvUEgDk3RgPBtfbrjbau2Gv2vZMg==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"149"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470592899743"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 149]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "ff"], ["price", 0], ["unit", ""], ["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 0], ["created_at", "2016-08-07 18:01:44.651008"], ["updated_at", "2016-08-07 18:01:44.651008"]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:01:44.652868"], ["updated_at", "2016-08-07 18:01:44.652868"]]  (110.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 143ms (ActiveRecord: 112.0ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:01:44 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (11.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (3.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:44 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:44 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:01:48 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.6ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.2ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.5ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (28.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (29.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 46ms (Views: 38.0ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:01:48 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:01:48 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:01:48 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:02:26 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Z1JxdgFPlGr2oUSFCmQXRO2p5Y7xBiZWKNQ13+oJ5SlhrazwhIKcdZEQ211zHbVRA1vTR/VLCsGgV+S6InX5BQ==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"150"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"72", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 150]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 72 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:02:26.329890"], ["updated_at", "2016-08-07 18:02:26.329890"]]  (89.8ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 190ms (ActiveRecord: 93.9ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:02:26 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (32.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (32.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 55ms (Views: 39.8ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:02:26 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:02:26 +0200 Started GET "/invoice_bar/invoices/201001121/edit" for 127.0.0.1 at 2016-08-07 20:03:04 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.1ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (30.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (31.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 44ms (Views: 37.8ms | ActiveRecord: 1.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:03:04 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:03:04 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:03:04 +0200 Started PATCH "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:03:15 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"RdnqnfvysDOMwGnUJsApkyw5ib3Mhycq17YjTEdmoDBDJjcbfj+4LOtx9gxfuYuGwsu/dMjKC71fNfIpjxq8HA==", "invoice"=>{"number"=>"201001121", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"151"}, "account_id"=>"2", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"72", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001121"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 151]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 72 [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001121"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 72]] SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:03:15.574550"], ["updated_at", "2016-08-07 18:03:15.574550"]]  (85.3ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001121 Completed 302 Found in 111ms (ActiveRecord: 87.1ms) Started GET "/invoice_bar/invoices/201001121" for 127.0.0.1 at 2016-08-07 20:03:15 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001121"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001121"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 2]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 1], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (11.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 27ms (Views: 20.4ms | ActiveRecord: 0.9ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:03:15 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:03:15 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 20:03:59 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.7ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (461.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (102.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 644ms (Views: 573.0ms | ActiveRecord: 4.7ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:03:59 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:03:59 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 20:04:00 +0200 Started GET "/invoice_bar/invoices/201001122" for 127.0.0.1 at 2016-08-07 20:04:01 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001122"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (9.1ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (55.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (57.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 87ms (Views: 64.4ms | ActiveRecord: 2.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:04:01 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:04:01 +0200 Started GET "/invoice_bar/invoices/201001122/edit" for 127.0.0.1 at 2016-08-07 20:04:03 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001122"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (2.5ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.0ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (45.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (47.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 72ms (Views: 54.1ms | ActiveRecord: 1.7ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:04:03 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:04:03 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:04:03 +0200 Started PATCH "/invoice_bar/invoices/201001122" for 127.0.0.1 at 2016-08-07 20:04:07 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"KLhTjCoLNrOmpWDLPmXo+jFDR7SASNHeWaNwhZAkuAkuR44Kr8Y+rMEU/xNHHErv37FxfYQF/UnRIKHgWFikJQ==", "invoice"=>{"number"=>"201001122", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"4"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"2", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001122"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 4]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 2 [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001122"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001122"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "contact_tax_id2" = ?, "note" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["contact_tax_id2", ""], ["note", ""], ["updated_at", "2016-08-07 18:04:07.698642"], ["id", 2]] SQL (0.1ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 2]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:04:07.701441"], ["updated_at", "2016-08-07 18:04:07.701441"]]  (115.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001122 Completed 302 Found in 143ms (ActiveRecord: 118.4ms) Started GET "/invoice_bar/invoices/201001122" for 127.0.0.1 at 2016-08-07 20:04:07 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001122"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.1ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (11.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 1.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:04:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:04:07 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 20:05:34 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.1ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (92.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 140ms (Views: 98.0ms | ActiveRecord: 3.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:05:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:05:34 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 20:05:34 +0200 Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:05:35 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (6.7ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (47.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (48.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 84ms (Views: 56.4ms | ActiveRecord: 2.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:05:36 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:05:36 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:05:38 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (33.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (34.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 58ms (Views: 44.2ms | ActiveRecord: 1.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:05:38 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:05:38 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:05:38 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:05:41 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"GIlbRJi0iCoGwOt3p+a++AL/iYAS2hT3gMM2/jrNgCMedobCHXmANWFxdK/enxzt7A2/SRaXOGAIQOeb8rGcDw==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"10"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"Item", "number"=>"", "unit"=>"", "price"=>"10,00", "id"=>"5", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 10]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 5 [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "contact_tax_id2" = ?, "note" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["contact_tax_id2", ""], ["note", ""], ["updated_at", "2016-08-07 18:05:41.841725"], ["id", 5]] SQL (0.1ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 5]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:05:41.844300"], ["updated_at", "2016-08-07 18:05:41.844300"]]  (580.6ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001125 Completed 302 Found in 608ms (ActiveRecord: 582.8ms) Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:05:42 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (10.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (11.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 30ms (Views: 20.5ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:05:42 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:05:42 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:06:51 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.3ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.6ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (73.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (73.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 148ms (Views: 79.6ms | ActiveRecord: 3.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:06:51 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:06:51 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:06:51 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:06:53 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"0uTcyYFE37RFt8gDiCxUyGVhR1GDcWSLVwCl2zutwavUGwFPBInXqyIGV9vxVfbdi5NxmIc8SBzfg3S+89Hdhw==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"154"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.2ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 46ms (Views: 25.7ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:06:53 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:06:53 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:06:53 +0200 InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" ORDER BY "invoice_bar_invoices"."id" DESC LIMIT 1 InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 33], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:09:29 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.5ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.2ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (25.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 35.2ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:09:29 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:09:29 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:09:29 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:10:49 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.8ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (24.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (25.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 40ms (Views: 34.2ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:10:49 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:10:49 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:10:49 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:11:11 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.1ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (24.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 41ms (Views: 33.8ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:11:11 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:11:11 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:11:11 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:11:16 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZyBv7RZ+MdXMNXNbMw9hCc7Bqfj4siBg54wlseyBJDph37Jrk7M5yquE7INKdsMcIDOfMfz/DPdvD/TUJP04Fg==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"154"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.2ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (17.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (18.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 43ms (Views: 27.7ms | ActiveRecord: 1.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:11:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:11:17 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:11:17 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:11:40 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.4ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (23.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (24.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 38ms (Views: 32.1ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:11:40 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:11:40 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:11:41 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:11:43 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Lpf5uzsFbKuZcIw6LPAejayNm90rPwoCs2CFVznuDW8oaCQ9vshktP7BE+JVibyYQn+tFC9yJpU741Qy8ZIRQw==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"154"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.3ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.3ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (21.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 52ms (Views: 31.0ms | ActiveRecord: 2.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:11:43 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:11:43 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:11:43 +0200 Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:07 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.4ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.9ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (21.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (22.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 43ms (Views: 32.7ms | ActiveRecord: 2.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:07 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:12:09 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.1ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (5.3ms) InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (26.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (27.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 42ms (Views: 35.9ms | ActiveRecord: 1.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:09 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:09 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:12:09 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:11 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"kLcochk6gjcqAwY71x8AVAcIw41TfNDrHRxQUujqZkaWSPX0nPeKKE2ymeOuZqJB6fr1RFcx/HyVn4E3IJZ6ag==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"154"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (3.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (18.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (20.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 50ms (Views: 29.1ms | ActiveRecord: 2.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:11 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:11 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:12:11 +0200 Started POST "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:13 +0200 ActionController::RoutingError (No route matches [POST] "/invoice_bar/invoices/201001125"): actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.7ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.8ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.5ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (59.3ms) Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:12:37 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.9ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.0ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (4.2ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (30.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (31.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 48ms (Views: 42.3ms | ActiveRecord: 1.1ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:37 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:37 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:12:37 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:40 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"oRWgI+d/y4VNPs4Wj76uCc+uTMzULaity3CbrKJLvcKn6n2lYrLDmiqPUc72xwwcIVx6BdBghDpD80rJajeh7g==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"154"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (17.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 47ms (Views: 25.0ms | ActiveRecord: 2.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:40 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:40 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:12:40 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:42 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"hNAb7S8uXZC1y40bLElFmYsmFv2Lu8jHeEj0Cx5er4OCL8ZrquNVj9J6EsNVMOeMZdQgNI/25FDwyyVu1iKzrw==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.9ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (15.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (16.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 48ms (Views: 24.2ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:42 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:42 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:12:42 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:52 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"KAX0CYpzH7vnv8T0U6kXE/mapA2KsSDWYLkqSnHbiM8u+imPD74XpIAOWywq0LUGF2iSxI78DEHoOvsvuaeU4w==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470593567004"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 154]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) UPDATE "invoice_bar_invoices" SET "amount" = ?, "updated_at" = ? WHERE "invoice_bar_invoices"."id" = ? [["amount", 0], ["updated_at", "2016-08-07 18:12:52.059408"], ["id", 5]] SQL (0.2ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "ff"], ["price", 0], ["unit", ""], ["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 0], ["created_at", "2016-08-07 18:12:52.061133"], ["updated_at", "2016-08-07 18:12:52.061133"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:12:52.062633"], ["updated_at", "2016-08-07 18:12:52.062633"]]  (101.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001125 Completed 302 Found in 127ms (ActiveRecord: 103.8ms) Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:12:52 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.8ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (8.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (9.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 22ms (Views: 16.8ms | ActiveRecord: 0.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:12:52 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:12:52 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:13:51 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.2ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.8ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (75.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (76.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 160ms (Views: 82.1ms | ActiveRecord: 3.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:13:51 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:13:51 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:13:52 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:13:58 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WSQ6mCgPpZbg8Sm8qsaQ+ae3PD8azr7gnorcHs1g1ilf2+cercKtiYdAtmTTvzLsSUUK9h6DkncWCQ17BRzKBQ==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"155"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"0"=>{"name"=>"ff", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"73", "_destroy"=>"1"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 155]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? AND "invoice_bar_items"."id" = 73 [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 73]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:13:58.545252"], ["updated_at", "2016-08-07 18:13:58.545252"]]  (103.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001125 Completed 302 Found in 131ms (ActiveRecord: 105.4ms) Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:13:58 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (0.7ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (16.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (17.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 25.3ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:13:58 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:13:58 +0200 Started GET "/invoice_bar/invoices/201001125/edit" for 127.0.0.1 at 2016-08-07 20:19:41 +0200 Processing by InvoiceBar::InvoicesController#edit as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.5ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.2ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (2.4ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.2ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (8.7ms) InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (81.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (81.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 172ms (Views: 87.3ms | ActiveRecord: 4.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:19:41 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:19:41 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:19:41 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:19:43 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"fyb9RM+VGE6AGGjxRh3whRyHyb5xBS7ehzldvK7gW0F52SDCSlgQUeep9yk/ZFKQ8nX/d3VIAkkPuozZZpxHbQ==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>"", "id"=>"156"}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 156]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]]  (0.2ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.0ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (16.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/edit.html.erb within invoice_bar/layouts/signed_in (17.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.0ms) Completed 200 OK in 49ms (Views: 24.5ms | ActiveRecord: 2.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:19:43 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:19:43 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-07 20:19:44 +0200 Started PATCH "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:19:49 +0200 Processing by InvoiceBar::InvoicesController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"TRw7Wj6DpNDNRaXWs/9cowWgwhuAh/1Own7kBxAphadL4+bcu06sz6r0Og7Khv6261L00oTK0dlK/TVi2FWZiw==", "invoice"=>{"number"=>"201001125", "issuer"=>"true", "contact_name"=>"Company", "contact_tax_id"=>"102939", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"Street", "street_number"=>"28a", "postcode"=>"45695", "city"=>"City", "city_part"=>"Part", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-06", "due_date"=>"2016-08-20", "user_id"=>"1", "items_attributes"=>{"1470593986490"=>{"name"=>"d", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "commit"=>"Uložit", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.4ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 156]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."number" = ? AND "invoice_bar_invoices"."user_id" = ? [["number", "201001125"], ["user_id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.4ms) INSERT INTO "invoice_bar_items" ("name", "price", "unit", "itemable_id", "itemable_type", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["name", "d"], ["price", 0], ["unit", ""], ["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"], ["amount", 0], ["created_at", "2016-08-07 18:19:49.884645"], ["updated_at", "2016-08-07 18:19:49.884645"]] SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "city", "city_part", "postcode", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Street"], ["street_number", "28a"], ["city", "City"], ["city_part", "Part"], ["postcode", "45695"], ["extra_address_line", ""], ["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"], ["created_at", "2016-08-07 18:19:49.887053"], ["updated_at", "2016-08-07 18:19:49.887053"]]  (81.4ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001125 Completed 302 Found in 108ms (ActiveRecord: 83.4ms) Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:19:49 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.4ms) InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (18.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (19.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 36ms (Views: 28.6ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:19:50 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:19:50 +0200 Started DELETE "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:22:34 +0200 Processing by InvoiceBar::InvoicesController#destroy as HTML Parameters: {"authenticity_token"=>"nA02g1R7Cw2sif1Ey01se5gJ+srOTg33tATD4OnMiiya8usF0bYDEss4YpyyNM5udvvMA8oDIWA8hxKFIbCWAA==", "number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 157]] InvoiceBar::Item Load (0.3ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 5], ["itemable_type", "InvoiceBar::Invoice"]] SQL (0.2ms) DELETE FROM "invoice_bar_items" WHERE "invoice_bar_items"."id" = ? [["id", 74]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 5], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.1ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 11]] SQL (0.2ms) DELETE FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? [["id", 5]]  (121.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices/201001125 Completed 302 Found in 198ms (ActiveRecord: 125.2ms) Started GET "/invoice_bar/invoices/201001125" for 127.0.0.1 at 2016-08-07 20:22:35 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001125"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.1ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001125"]] Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms) NoMethodError (undefined method `address' for nil:NilClass): /home/strzibny/projects/invoicebar/app/controllers/invoice_bar/invoices_controller.rb:20:in `show' actionpack (4.2.4) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.4) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:117:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:505:in `call' activesupport (4.2.4) lib/active_support/callbacks.rb:92:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.4) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.4) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.4) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.4) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.4) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.4) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.4) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.4) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.4) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `call' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:76:in `dispatch' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:45:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) lib/rails/railtie.rb:194:in `public_send' railties (4.2.4) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.4) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.4) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.4) lib/action_dispatch/routing/route_set.rb:821: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.4) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.4) 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.4) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.4) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.4) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.4) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.4) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.4) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.4) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.4) 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.4) 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.4) lib/action_dispatch/middleware/static.rb:116:in `call' rack (1.6.4) lib/rack/sendfile.rb:113:in `call' railties (4.2.4) lib/rails/engine.rb:518:in `call' railties (4.2.4) 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' /usr/share/ruby/webrick/httpserver.rb:138:in `service' /usr/share/ruby/webrick/httpserver.rb:94:in `run' /usr/share/ruby/webrick/server.rb:294:in `block in start_thread' Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.2ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms) Rendered /home/strzibny/.gem/ruby/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (21.3ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 20:23:28 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.6ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (103.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 147ms (Views: 107.2ms | ActiveRecord: 4.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:23:28 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:23:28 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 20:23:28 +0200 Started GET "/invoice_bar/invoices/201001122" for 127.0.0.1 at 2016-08-07 20:23:29 +0200 Processing by InvoiceBar::InvoicesController#show as HTML Parameters: {"number"=>"201001122"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]] InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] InvoiceBar::Account Load (0.4ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? AND "invoice_bar_accounts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#user_address"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address.html.erb (0.1ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Item Load (0.2ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_items.html.erb (1.5ms) InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/documents/_show.html.erb (50.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/show.html.erb within invoice_bar/layouts/signed_in (51.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 83ms (Views: 59.4ms | ActiveRecord: 2.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:23:29 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:23:29 +0200 Started DELETE "/invoice_bar/invoices/201001122" for 127.0.0.1 at 2016-08-07 20:23:31 +0200 Processing by InvoiceBar::InvoicesController#destroy as HTML Parameters: {"authenticity_token"=>"3FIhpjCcHkvegEJn02KJs2QKm/5XyhFZVz9AwPj6WF7arfwgtVEWVLkx3b+qGyumivitN1OHPc7fvJGlMIZEcg==", "number"=>"201001122"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Invoice Load (0.2ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."number" = ? ORDER BY "invoice_bar_invoices"."id" ASC LIMIT 1 [["user_id", 1], ["number", "201001122"]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#contact_address"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 153]] InvoiceBar::Item Load (0.1ms) SELECT "invoice_bar_items".* FROM "invoice_bar_items" WHERE "invoice_bar_items"."itemable_id" = ? AND "invoice_bar_items"."itemable_type" = ? [["itemable_id", 2], ["itemable_type", "InvoiceBar::Invoice"]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 2], ["addressable_type", "InvoiceBar::Invoice#user_address"]] SQL (0.0ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."id" = ? [["id", 2]]  (158.4ms) commit transaction Redirected to http://localhost:3000/invoice_bar/invoices Completed 302 Found in 169ms (ActiveRecord: 159.7ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-07 20:23:31 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (0.8ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (67.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 78ms (Views: 74.5ms | ActiveRecord: 1.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:23:32 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:23:32 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 20:23:32 +0200 Started GET "/invoice_bar/invoices?page=2" for 127.0.0.1 at 2016-08-07 20:27:07 +0200 Processing by InvoiceBar::InvoicesController#index as HTML Parameters: {"page"=>"2"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.1ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__2657517834704017287_47010483503780 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.3ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 25 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (69.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 109ms (Views: 74.6ms | ActiveRecord: 3.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-07 20:27:07 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-07 20:27:07 +0200 Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-07 20:27:07 +0200 Started GET "/" for 127.0.0.1 at 2016-08-20 14:03:57 +0200 Processing by Rails::WelcomeController#index as HTML Rendered /home/strzibny/.gem/ruby/gems/railties-4.2.4/lib/rails/templates/rails/welcome/index.html.erb (11.1ms) Completed 200 OK in 59ms (Views: 59.1ms | ActiveRecord: 0.0ms) Started GET "/invoice_bar/login" for 127.0.0.1 at 2016-08-20 14:04:02 +0200 Processing by InvoiceBar::SessionsController#new as HTML Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/sessions/new.html.erb within invoice_bar/layouts/signed_out (488.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (179.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (5.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.5ms) Completed 200 OK in 683ms (Views: 682.2ms | ActiveRecord: 0.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:04:03 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:04:03 +0200 Started POST "/invoice_bar/sessions" for 127.0.0.1 at 2016-08-20 14:04:07 +0200 Processing by InvoiceBar::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"zVb1JE8FiPk7SJBaNofUU5arc+Qtdha32kzXemAMi3Ts0KjYLEFl29u9WmKI+QU/W+ApiQtaMO+vaTbGnkPifw==", "email"=>"test@test.cz", "password"=>"[FILTERED]", "commit"=>"Přihlásit"} InvoiceBar::User Load (0.4ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'test@test.cz' ORDER BY "invoice_bar_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/invoice_bar/ Completed 302 Found in 54ms (ActiveRecord: 12.1ms) Started GET "/invoice_bar/" for 127.0.0.1 at 2016-08-20 14:04:08 +0200 Processing by InvoiceBar::DashboardController#index as HTML Redirected to http://localhost:3000/invoice_bar/login Filter chain halted as :require_login rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/invoice_bar/login" for 127.0.0.1 at 2016-08-20 14:04:08 +0200 Processing by InvoiceBar::SessionsController#new as HTML Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/sessions/new.html.erb within invoice_bar/layouts/signed_out (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (0.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.0ms) Started POST "/invoice_bar/sessions" for 127.0.0.1 at 2016-08-20 14:04:33 +0200 Processing by InvoiceBar::SessionsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"xEmGemAKxAMCD0cMsyEcMRpFq448HC8DX01ZHJziUHjlz9uGA04pIeL6jTQNX81d1w7x4xowCVsqaLigYq05cw==", "email"=>"admin@admin.cz", "password"=>"[FILTERED]", "commit"=>"Přihlásit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."email" = 'admin@admin.cz' ORDER BY "invoice_bar_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/invoice_bar/ Completed 302 Found in 183ms (ActiveRecord: 0.2ms) Started GET "/invoice_bar/" for 127.0.0.1 at 2016-08-20 14:04:33 +0200 Processing by InvoiceBar::DashboardController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/invoice_bar/invoices Completed 302 Found in 84ms (ActiveRecord: 0.2ms) Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-20 14:04:33 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.9ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.2ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.2ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (136.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 175ms (Views: 141.4ms | ActiveRecord: 3.4ms) Started GET "/assets/glyphicons-halflings-white.png" for 127.0.0.1 at 2016-08-20 14:04:34 +0200 Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:04:36 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (25.6ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (17.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (124.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 135ms (Views: 132.8ms | ActiveRecord: 0.6ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:04:40 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"wQ6jYcWEwtgzWgKZntfUkGBVWH3d+LPB3vQwAPtOslLgiP6dpsAv+tOvyKEgqQX8rR4CEPvUlZmr0dG8BQHbWQ==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"747 27", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction InvoiceBar::User Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) commit transaction Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction CACHE (0.0ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 48ms (ActiveRecord: 0.8ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:04:40 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (7.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 14.7ms | ActiveRecord: 0.3ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:05:03 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (12.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (15.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 45ms (Views: 23.2ms | ActiveRecord: 1.3ms) Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:05:03 +0200 Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:05:07 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Un362Mz6b/qmXBFNLwfd3YB6x89/A1w++2qX8GeiKgBz+6ckr76C2Eap23WReQyxTTGdolkvemaOT3ZMme1DCw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"747 27", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction InvoiceBar::User Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) commit transaction Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (10.9ms) begin transaction  (0.3ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 28ms (ActiveRecord: 12.1ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:05:07 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (9.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.2ms) Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.4ms) Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:05:07 +0200 InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" ORDER BY "invoice_bar_users"."id" ASC LIMIT 1 InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:06:55 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"zVcXAHsDgLkINLoXwm8qOBGap9NnWw5LtO7CwMKgncfs0Ur8GEdtm+jBcC98EftU3NH9vkF3KBPByyN8PO/0zA==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74728", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.3ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction InvoiceBar::User Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) commit transaction Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction  (0.0ms) commit transaction  (0.0ms) begin transaction CACHE (0.0ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 42ms (ActiveRecord: 2.0ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:06:55 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (7.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.2ms) Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:06:55 +0200 Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:07:00 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"HK841h8lYES0+nxj6BCL0G5bF0zNdXyqhbPoe+CPv/E9KWUqfGGNZlQPtltWblq8oxBNIetZWvLwlgnHHsDW+g==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74728", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction InvoiceBar::User Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]]  (0.1ms) commit transaction Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.1ms) begin transaction CACHE (0.0ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 10ms (ActiveRecord: 0.9ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:07:00 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (5.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 12.4ms | ActiveRecord: 0.2ms) Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:07:00 +0200 Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:07:46 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 34ms (Views: 11.7ms | ActiveRecord: 1.2ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:07:52 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.2ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:07:58 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.2ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:08:12 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 29ms (Views: 0.6ms | ActiveRecord: 0.9ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:11:18 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.1ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:11:21 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:11:23 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.1ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:11:51 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered text template (0.0ms) Completed 200 OK in 22ms (Views: 0.6ms | ActiveRecord: 1.0ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:13:18 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"iJYeDSvbdsuob/6Zgs572IyEvujGOTf0pRQ4dIiLgGipEEPxSJ+b6UiaNKE8sKq0Qc/kheAVEazQMdnIdsTpYw==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin2", "tax_id"=>"123456", "street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>""}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameters: street, street_number, postcode, city, city_part, extra_address_line Rendered text template (0.0ms) Completed 200 OK in 23ms (Views: 0.5ms | ActiveRecord: 1.0ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:13:22 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::Address Load (0.3ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (42.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 53ms (Views: 50.9ms | ActiveRecord: 0.8ms) Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:22 +0200 Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:13:23 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NOp2wk2WtF1Hwp8u6UWAGeAxBQR1HzLvHfzGjZznY1kVbCs+LtJZf6c3VRZXO1F1LXpfaVMzFLdo2ScxYqgKUg==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "address_attributes"=>{"street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>"", "id"=>"1"}}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: id Rendered text template (0.0ms) Completed 200 OK in 4ms (Views: 0.7ms | ActiveRecord: 0.2ms) Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:13:34 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NOp2wk2WtF1Hwp8u6UWAGeAxBQR1HzLvHfzGjZznY1kVbCs+LtJZf6c3VRZXO1F1LXpfaVMzFLdo2ScxYqgKUg==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "address_attributes"=>{"street"=>"Ulice", "street_number"=>"1", "postcode"=>"74727", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>"", "id"=>"1"}}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: id  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] SQL (0.3ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 1]] InvoiceBar::User Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 SQL (0.2ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "postcode", "city", "city_part", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["postcode", "74727"], ["city", "Mesto"], ["city_part", ""], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["created_at", "2016-08-20 12:13:34.687164"], ["updated_at", "2016-08-20 12:13:34.687164"]]  (93.1ms) commit transaction Unpermitted parameter: id  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction InvoiceBar::User Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 146ms (ActiveRecord: 95.8ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:13:34 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (7.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 17ms (Views: 15.9ms | ActiveRecord: 0.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:34 +0200 Started PATCH "/invoice_bar/users/1" for 127.0.0.1 at 2016-08-20 14:13:37 +0200 Processing by InvoiceBar::UsersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"zvNWacCnGtfedYVtfspX9T8C0rlBtIzgbHxEF2sQ63/vdQuVo+P39T6AT1XAtIaZ8kmI1GeYqrgZWaWrlV+CdA==", "user"=>{"email"=>"admin@admin.cz", "password"=>"[FILTERED]", "name"=>"admin", "tax_id"=>"123456", "address_attributes"=>{"street"=>"Ulice", "street_number"=>"1", "postcode"=>"747 27", "city"=>"Mesto", "city_part"=>"", "extra_address_line"=>"", "id"=>"158"}}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: id  (0.2ms) begin transaction InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] SQL (0.2ms) DELETE FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."id" = ? [["id", 158]] InvoiceBar::User Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1 SQL (0.1ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "postcode", "city", "city_part", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "Ulice"], ["street_number", "1"], ["postcode", "747 27"], ["city", "Mesto"], ["city_part", ""], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::User"], ["created_at", "2016-08-20 12:13:37.481991"], ["updated_at", "2016-08-20 12:13:37.481991"]]  (123.4ms) commit transaction Unpermitted parameter: id  (0.1ms) begin transaction  (0.1ms) commit transaction  (0.0ms) begin transaction InvoiceBar::User Exists (0.1ms) SELECT 1 AS one FROM "invoice_bar_users" WHERE ("invoice_bar_users"."email" = 'admin@admin.cz' AND "invoice_bar_users"."id" != 1) LIMIT 1  (0.1ms) commit transaction Redirected to http://localhost:3000/invoice_bar/profile Completed 302 Found in 137ms (ActiveRecord: 124.7ms) Started GET "/invoice_bar/profile" for 127.0.0.1 at 2016-08-20 14:13:37 +0200 Processing by InvoiceBar::SettingsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::User"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/settings/index.html.erb within invoice_bar/layouts/signed_in (5.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.2ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:37 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:37 +0200 Started GET "/invoice_bar/users" for 127.0.0.1 at 2016-08-20 14:13:40 +0200 Processing by InvoiceBar::UsersController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" LIMIT 25 OFFSET 0  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_users" Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/users/index.html.erb within invoice_bar/layouts/signed_in (4.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:40 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:40 +0200 Started GET "/invoice_bar/contacts" for 127.0.0.1 at 2016-08-20 14:13:44 +0200 Processing by InvoiceBar::ContactsController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.2ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (4.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 21ms (Views: 13.3ms | ActiveRecord: 0.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:44 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:44 +0200 Started GET "/invoice_bar/contacts/new" for 127.0.0.1 at 2016-08-20 14:13:45 +0200 Processing by InvoiceBar::ContactsController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (10.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/new.html.erb within invoice_bar/layouts/signed_in (12.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 37ms (Views: 23.6ms | ActiveRecord: 0.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:45 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:45 +0200 Started POST "/invoice_bar/contacts" for 127.0.0.1 at 2016-08-20 14:13:57 +0200 Processing by InvoiceBar::ContactsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"odWO19lXKz8NXH0dS3WFZUWLgkEyGSPF0df0y46mVNGAU9MruhPGHe2ptyX1C1QJiMDYLBQ1BZ2k8hV3cOk92g==", "contact"=>{"name"=>"dafd", "tax_id"=>"323233", "tax_id2"=>"", "email"=>"", "phone"=>"", "web"=>"", "bank_account"=>"", "address_attributes"=>{"street"=>"dfsf", "street_number"=>"32", "postcode"=>"2344 32", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "user_id"=>""}, "commit"=>"Uložit"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] Unpermitted parameter: address_attributes  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "invoice_bar_contacts" ("bank_account", "tax_id2", "email", "tax_id", "name", "phone", "web", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["bank_account", ""], ["tax_id2", ""], ["email", ""], ["tax_id", 323233], ["name", "dafd"], ["phone", ""], ["web", ""], ["user_id", 1], ["created_at", "2016-08-20 12:13:57.687456"], ["updated_at", "2016-08-20 12:13:57.687456"]]  (74.3ms) commit transaction  (0.1ms) begin transaction  (0.0ms) commit transaction Redirected to http://localhost:3000/invoice_bar/contacts/1 Completed 302 Found in 86ms (ActiveRecord: 75.3ms) Started GET "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:13:57 +0200 Processing by InvoiceBar::ContactsController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.2ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (3.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:13:57 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:13:57 +0200 Started GET "/invoice_bar/contacts/1/edit" for 127.0.0.1 at 2016-08-20 14:14:34 +0200 Processing by InvoiceBar::ContactsController#edit as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (5.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (6.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 16ms (Views: 14.2ms | ActiveRecord: 0.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:14:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:14:34 +0200 Started GET "/invoice_bar/contacts/1/edit" for 127.0.0.1 at 2016-08-20 14:15:33 +0200 Processing by InvoiceBar::ContactsController#edit as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (5.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (6.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 54ms (Views: 13.7ms | ActiveRecord: 1.8ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:15:34 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:15:34 +0200 Started PATCH "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:16:05 +0200 Processing by InvoiceBar::ContactsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"JWd3t0fdFlcz0tBlLfcmb3vquhDnuKmbEhi2kaOmZG4E4SpLJJn7ddMnGl2TifcDtqHgfcGUj8NnPVctXekNZQ==", "contact"=>{"name"=>"dafd", "tax_id"=>"323233", "tax_id2"=>"", "email"=>"", "phone"=>"", "web"=>"", "bank_account"=>"", "address_attributes"=>{"street"=>"fdsf", "street_number"=>"", "postcode"=>"", "city"=>"dfs", "city_part"=>"", "extra_address_line"=>""}, "user_id"=>"1"}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (8.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (9.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 74ms (Views: 16.4ms | ActiveRecord: 2.0ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:05 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:05 +0200 Started PATCH "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:16:09 +0200 Processing by InvoiceBar::ContactsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"/17xqmsMhkdLrzZxgr0Vqh37bwSO+2VjwwiPPPMKl7Pe2KxWCEhrZata/Ek8w8TG0LA1aajXQzu2LW6ADUX+uA==", "contact"=>{"name"=>"dafd", "tax_id"=>"323233", "tax_id2"=>"", "email"=>"", "phone"=>"", "web"=>"", "bank_account"=>"", "address_attributes"=>{"street"=>"fdsf", "street_number"=>"33", "postcode"=>"32", "city"=>"dfs", "city_part"=>"", "extra_address_line"=>""}, "user_id"=>"1"}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]]  (0.1ms) rollback transaction Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (1.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/_form.html.erb (11.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/edit.html.erb within invoice_bar/layouts/signed_in (12.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (2.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 32ms (Views: 22.2ms | ActiveRecord: 0.7ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:09 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:09 +0200 Started PATCH "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:16:12 +0200 Processing by InvoiceBar::ContactsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WwPqF6ljgHaqRHrWE09gmC0zEEdZn9k2daUE/V5nNJ16hbfryidtVEqxsO6tMbH04HhKKn+z/24AgOVBoChdlg==", "contact"=>{"name"=>"dafd", "tax_id"=>"323233", "tax_id2"=>"", "email"=>"", "phone"=>"", "web"=>"", "bank_account"=>"", "address_attributes"=>{"street"=>"fdsf", "street_number"=>"33", "postcode"=>"322", "city"=>"dfs", "city_part"=>"", "extra_address_line"=>""}, "user_id"=>"1"}, "commit"=>"Uložit", "id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] SQL (0.3ms) INSERT INTO "invoice_bar_addresses" ("street", "street_number", "postcode", "city", "city_part", "extra_address_line", "addressable_id", "addressable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["street", "fdsf"], ["street_number", "33"], ["postcode", "322"], ["city", "dfs"], ["city_part", ""], ["extra_address_line", ""], ["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"], ["created_at", "2016-08-20 12:16:12.751630"], ["updated_at", "2016-08-20 12:16:12.751630"]]  (109.9ms) commit transaction Redirected to http://localhost:3000/invoice_bar/contacts/1 Completed 302 Found in 118ms (ActiveRecord: 110.6ms) Started GET "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:16:12 +0200 Processing by InvoiceBar::ContactsController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (2.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.3ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:12 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:12 +0200 Started GET "/invoice_bar/contacts" for 127.0.0.1 at 2016-08-20 14:16:17 +0200 Processing by InvoiceBar::ContactsController#index as HTML InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.3ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/index.html.erb within invoice_bar/layouts/signed_in (4.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 11.6ms | ActiveRecord: 0.6ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:17 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:17 +0200 Started GET "/invoice_bar/contacts/1" for 127.0.0.1 at 2016-08-20 14:16:19 +0200 Processing by InvoiceBar::ContactsController#show as HTML Parameters: {"id"=>"1"} InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Contact Load (0.2ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Address Load (0.1ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/contacts/show.html.erb within invoice_bar/layouts/signed_in (2.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 15ms (Views: 9.5ms | ActiveRecord: 0.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:19 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:19 +0200 Started GET "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-20 14:16:22 +0200 Processing by InvoiceBar::InvoicesController#index as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:31) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:34) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:37) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_filter.html.erb (1.3ms) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:45) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:48) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:51) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:54) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:57) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:65) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:68) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:71) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:74) DEPRECATION WARNING: Calling URL helpers with string keys controller, action is deprecated. Use symbols instead. (called from __home_strzibny_projects_invoicebar_app_views_invoice_bar_invoices_index_html_erb__3840976074091954990_70225745422520 at /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb:77) InvoiceBar::Invoice Load (0.4ms) SELECT "invoice_bar_invoices".* FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? LIMIT 25 OFFSET 0 [["user_id", 1]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 2]] InvoiceBar::Currency Load (0.3ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 6]] InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Currency Load (0.1ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "invoice_bar_currencies".* FROM "invoice_bar_currencies" WHERE "invoice_bar_currencies"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/index.html.erb within invoice_bar/layouts/signed_in (98.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 122ms (Views: 104.1ms | ActiveRecord: 2.9ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:22 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:22 +0200 Started GET "/invoice_bar/invoices/new" for 127.0.0.1 at 2016-08-20 14:16:23 +0200 Processing by InvoiceBar::InvoicesController#new as HTML InvoiceBar::User Load (0.1ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "t"]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_invoices" WHERE "invoice_bar_invoices"."user_id" = ? AND "invoice_bar_invoices"."issuer" = ? [["user_id", 1], ["issuer", "f"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.3ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] InvoiceBar::Contact Load (0.3ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (4.3ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.0ms) InvoiceBar::Account Load (0.3ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (15.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (3.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (0.9ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (91.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (93.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.5ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 144ms (Views: 99.6ms | ActiveRecord: 2.5ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:24 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:24 +0200 Started GET "/assets/glyphicons-halflings.png" for 127.0.0.1 at 2016-08-20 14:16:24 +0200 Started POST "/invoice_bar/invoices" for 127.0.0.1 at 2016-08-20 14:16:26 +0200 Processing by InvoiceBar::InvoicesController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Bji256wZahZeeMxXAgtFCZLhu7rsUanepHTZyQmGLn4nvusbz12HNL6NBm+8dZRlX6rh18p9j4bRUTh198lHdQ==", "invoice"=>{"number"=>"VF2016080032", "issuer"=>"true", "contact_name"=>"", "contact_tax_id"=>"", "contact_tax_id2"=>"", "address_attributes"=>{"street"=>"", "street_number"=>"", "postcode"=>"", "city"=>"", "city_part"=>"", "extra_address_line"=>""}, "account_id"=>"1", "payment_identification_number"=>"", "issue_date"=>"2016-08-20", "due_date"=>"2016-09-03", "user_id"=>"", "items_attributes"=>{"0"=>{"name"=>"", "number"=>"", "unit"=>"", "price"=>"0,00", "id"=>"", "_destroy"=>"false"}}, "note"=>""}, "issuer_true_hidden"=>"VF2016080032", "issuer_false_hidden"=>"PF2016080001", "contact_id"=>"1", "fill_in_contact"=>"Použít"} InvoiceBar::User Load (0.2ms) SELECT "invoice_bar_users".* FROM "invoice_bar_users" WHERE "invoice_bar_users"."id" = ? LIMIT 1 [["id", 1]] InvoiceBar::Account Exists (0.2ms) SELECT 1 AS one FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? LIMIT 1 [["user_id", 1]] InvoiceBar::Contact Load (0.3ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? AND "invoice_bar_contacts"."id" = ? LIMIT 1 [["user_id", 1], ["id", 1]] InvoiceBar::Address Load (0.2ms) SELECT "invoice_bar_addresses".* FROM "invoice_bar_addresses" WHERE "invoice_bar_addresses"."addressable_id" = ? AND "invoice_bar_addresses"."addressable_type" = ? LIMIT 1 [["addressable_id", 1], ["addressable_type", "InvoiceBar::Contact"]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_errors.html.erb (0.1ms) InvoiceBar::InvoiceTemplate Load (0.1ms) SELECT "invoice_bar_invoice_templates".* FROM "invoice_bar_invoice_templates" WHERE "invoice_bar_invoice_templates"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] InvoiceBar::Contact Load (0.1ms) SELECT "invoice_bar_contacts".* FROM "invoice_bar_contacts" WHERE "invoice_bar_contacts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_contact_main_fields.html.erb (3.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_address_fields.html.erb (1.3ms) InvoiceBar::Account Load (0.1ms) SELECT "invoice_bar_accounts".* FROM "invoice_bar_accounts" WHERE "invoice_bar_accounts"."user_id" = ? [["user_id", 1]] Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_payment_fields.html.erb (2.4ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.2ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_item_fields.html.erb (1.0ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/forms/_document.html.erb (20.8ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/invoices/new.html.erb within invoice_bar/layouts/signed_in (22.1ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_head.html.erb (1.6ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_navbar.html.erb (1.7ms) Rendered /home/strzibny/projects/invoicebar/app/views/invoice_bar/layouts/_messages.html.erb (0.1ms) Completed 200 OK in 46ms (Views: 30.9ms | ActiveRecord: 1.4ms) Started GET "/assets/invoice_bar/invoice_bar.css" for 127.0.0.1 at 2016-08-20 14:16:26 +0200 Started GET "/assets/invoice_bar/invoice_bar.js" for 127.0.0.1 at 2016-08-20 14:16:26 +0200