test/dummy/log/development.log in invoice_bar-0.0.10 vs test/dummy/log/development.log in invoice_bar-0.0.11

- old
+ new

@@ -26942,5 +26942,16426 @@ 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 #<InvoiceBar::Invoice:0x007f48c95829d8>): + 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 #<InvoiceBar::Invoice:0x007f48c97f5968>): + 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 #<InvoiceBar::Invoice:0x007f48c8785b00>): + 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 #<InvoiceBar::Item::ActiveRecord_Associations_CollectionProxy:0x00564abb95aec8>): + 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