(1.1ms) CREATE TABLE "expense_gun_categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "code" varchar(255), "vat_deductible" boolean)   (0.9ms) CREATE TABLE "expense_gun_expense_lines" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "expense_id" integer, "name" varchar(255), "date" date, "total_all_taxes" float, "vat" float, "company_part" float, "created_at" datetime, "updated_at" datetime, "category_id" integer)  (1.0ms) CREATE TABLE "expense_gun_expenses" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime, "updated_at" datetime, "state" varchar(255), "date" date)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.1ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141203153649')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201092102')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201100548')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201111528')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201115918')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141201145608')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20141202143656')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20141202151845') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1888"], ["name", "corporis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:16:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (103.4ms) Completed 200 OK in 6692ms (Views: 6688.5ms | ActiveRecord: 1.4ms) Started GET "/assets/expense_gun/application.css" for 127.0.0.1 at 2015-02-19 14:16:54 +0100 Started GET "/assets/expense_gun/application.js" for 127.0.0.1 at 2015-02-19 14:16:54 +0100 Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 14:16:54 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (125.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (132.0ms) Completed 200 OK in 139ms (Views: 134.9ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:16:54 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}, "commit"=>"Create Expense"}  (0.5ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:54.971676"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 13:16:54.971676"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (35.9ms) Completed 200 OK in 41ms (Views: 38.9ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (38.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (44.2ms) Completed 200 OK in 122ms (Views: 49.3ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "commit"=>"Create Expense line", "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 13:16:55.400782"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 13:16:55.400782"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.1ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.6ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5022"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:55.493415"], ["date", "2015-02-19"], ["name", "Qui amet aliquid sunt."], ["state", "new"], ["updated_at", "2015-02-19 13:16:55.493415"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3125"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:16:55.501403"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Ut quia laborum autem dolore possimus eos aut."], ["total_all_taxes", 324.0], ["updated_at", "2015-02-19 13:16:55.501403"], ["vat", 13.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1204"], ["name", "illum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 13:16:55.508427"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Tempore sed nostrum nihil aut exercitationem dolorem."], ["total_all_taxes", 495.0], ["updated_at", "2015-02-19 13:16:55.508427"], ["vat", 26.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2754"], ["name", "enim"], ["vat_deductible", "f"]]  (1.7ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:55.517889"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Nemo sed inventore repudiandae."], ["total_all_taxes", 669.0], ["updated_at", "2015-02-19 13:16:55.517889"], ["vat", 40.0]]  (1.7ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5248"], ["name", "quo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:55.532071"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Dolorem ea labore."], ["total_all_taxes", 428.0], ["updated_at", "2015-02-19 13:16:55.532071"], ["vat", 64.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4315"], ["name", "reiciendis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 13:16:55.537908"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Soluta officiis quaerat."], ["total_all_taxes", 324.0], ["updated_at", "2015-02-19 13:16:55.537908"], ["vat", 49.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (71.5ms) Completed 200 OK in 74ms (Views: 72.7ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (10.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (13.9ms) Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "commit"=>"Update Expense", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 13:16:55.773771"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (16.6ms) Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 1.2ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4256"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:55.875859"], ["date", "2015-02-19"], ["name", "Ut dolores officiis."], ["state", "new"], ["updated_at", "2015-02-19 13:16:55.875859"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1538"], ["name", "sed"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:55.882126"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Eius et doloribus dolor error et numquam laborum."], ["total_all_taxes", 236.0], ["updated_at", "2015-02-19 13:16:55.882126"], ["vat", 36.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6345"], ["name", "commodi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:55.889582"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Similique modi omnis accusamus sunt sed."], ["total_all_taxes", 534.0], ["updated_at", "2015-02-19 13:16:55.889582"], ["vat", 74.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.2ms) Completed 200 OK in 16ms (Views: 12.8ms | ActiveRecord: 1.1ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 14:16:55 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (26.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (33.0ms) Completed 200 OK in 38ms (Views: 36.1ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-28", "category_id"=>"2", "total_all_taxes"=>"236.0", "vat"=>"36.0", "company_part"=>"100.0"}, "commit"=>"Update Expense line", "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 13:16:56.096738"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3994"], ["name", "vel"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:56.180958"], ["date", "2015-02-19"], ["name", "Mollitia enim ducimus corrupti accusantium."], ["state", "new"], ["updated_at", "2015-02-19 13:16:56.180958"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7429"], ["name", "atque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:16:56.187325"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Quod dicta sed voluptas."], ["total_all_taxes", 555.0], ["updated_at", "2015-02-19 13:16:56.187325"], ["vat", 25.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4455"], ["name", "cumque"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:56.194458"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Soluta possimus velit quos in necessitatibus aut."], ["total_all_taxes", 442.0], ["updated_at", "2015-02-19 13:16:56.194458"], ["vat", 28.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0562"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:16:56.201849"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Voluptates perspiciatis ad corporis deleniti."], ["total_all_taxes", 828.0], ["updated_at", "2015-02-19 13:16:56.201849"], ["vat", 44.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5521"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 13:16:56.208145"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Rem dolores dolorem quia."], ["total_all_taxes", 979.0], ["updated_at", "2015-02-19 13:16:56.208145"], ["vat", 150.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8321"], ["name", "et"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:56.213851"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Aut est vitae tempora accusamus vel quaerat omnis."], ["total_all_taxes", 495.0], ["updated_at", "2015-02-19 13:16:56.213851"], ["vat", 56.0]]  (1.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 13:16:56.316931"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59195/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.4ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 1.2ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9566"], ["name", "vitae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:56.471124"], ["date", "2015-02-19"], ["name", "Id et rerum facere."], ["state", "new"], ["updated_at", "2015-02-19 13:16:56.471124"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3249"], ["name", "quaerat"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:16:56.478259"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Voluptate officiis repudiandae rerum id expedita sequi."], ["total_all_taxes", 157.0], ["updated_at", "2015-02-19 13:16:56.478259"], ["vat", 14.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6449"], ["name", "repellat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:56.485743"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Totam sed voluptatibus."], ["total_all_taxes", 924.0], ["updated_at", "2015-02-19 13:16:56.485743"], ["vat", 37.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5943"], ["name", "soluta"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:56.492722"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Autem magnam aspernatur quia."], ["total_all_taxes", 450.0], ["updated_at", "2015-02-19 13:16:56.492722"], ["vat", 29.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (16.9ms) Completed 200 OK in 20ms (Views: 16.7ms | ActiveRecord: 2.2ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 13:16:56.595138"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59195/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 1.2ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7254"], ["name", "in"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:56.695794"], ["date", "2015-02-19"], ["name", "Voluptatem amet temporibus molestiae."], ["state", "new"], ["updated_at", "2015-02-19 13:16:56.695794"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8745"], ["name", "sint"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:16:56.701915"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Repudiandae inventore qui."], ["total_all_taxes", 338.0], ["updated_at", "2015-02-19 13:16:56.701915"], ["vat", 64.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2363"], ["name", "aspernatur"], ["vat_deductible", "t"]]  (6.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:56.715631"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Tenetur quia in."], ["total_all_taxes", 696.0], ["updated_at", "2015-02-19 13:16:56.715631"], ["vat", 82.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.9ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7422"], ["name", "amet"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.3ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5553"], ["name", "vero"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8065"], ["name", "exercitationem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:56.840768"], ["date", "2015-02-19"], ["name", "Ea accusantium exercitationem."], ["state", "submited"], ["updated_at", "2015-02-19 13:16:56.840768"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6047"], ["name", "alias"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:56.846952"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Qui est cum aut."], ["total_all_taxes", 615.0], ["updated_at", "2015-02-19 13:16:56.846952"], ["vat", 52.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5533"], ["name", "distinctio"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:56.854218"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Labore aut soluta."], ["total_all_taxes", 124.0], ["updated_at", "2015-02-19 13:16:56.854218"], ["vat", 11.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (17.8ms) Completed 200 OK in 21ms (Views: 17.8ms | ActiveRecord: 2.2ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 13:16:56.957648"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:16:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.6ms) Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2574"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:16:57.049137"], ["date", "2015-02-19"], ["name", "Enim dolorem odit id."], ["state", "submited"], ["updated_at", "2015-02-19 13:16:57.049137"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2775"], ["name", "eius"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:57.056385"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Ut dolor quia."], ["total_all_taxes", 743.0], ["updated_at", "2015-02-19 13:16:57.056385"], ["vat", 109.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4751"], ["name", "aliquid"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 13:16:57.064081"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Minus fugit quia natus voluptas."], ["total_all_taxes", 264.0], ["updated_at", "2015-02-19 13:16:57.064081"], ["vat", 4.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7149"], ["name", "reiciendis"], ["vat_deductible", "t"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 13:16:57.073308"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Enim quam facilis libero qui est."], ["total_all_taxes", 285.0], ["updated_at", "2015-02-19 13:16:57.073308"], ["vat", 1.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:16:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 14:16:57 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 13:16:57.230323"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59195/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:16:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59195/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:16:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.8ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2439"], ["name", "eos"], ["vat_deductible", "f"]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:20:07 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (108.6ms) Completed 200 OK in 238ms (Views: 233.2ms | ActiveRecord: 1.3ms) Started GET "/assets/expense_gun/application.css" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Started GET "/assets/expense_gun/application.js" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (163.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (168.6ms) Completed 200 OK in 179ms (Views: 172.6ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}, "commit"=>"Create Expense"}  (0.5ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:08.618770"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 13:20:08.618770"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 4.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (95.7ms) Completed 200 OK in 101ms (Views: 99.5ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 14:20:08 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (111.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (117.0ms) Completed 200 OK in 140ms (Views: 122.4ms | ActiveRecord: 1.0ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "commit"=>"Create Expense line", "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:09.106946"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 13:20:09.106946"], ["vat", 20.0]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.6ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (4.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.7ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.3ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4139"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:09.254585"], ["date", "2015-02-19"], ["name", "Quae tempora quia omnis dignissimos rem."], ["state", "new"], ["updated_at", "2015-02-19 13:20:09.254585"]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6855"], ["name", "labore"], ["vat_deductible", "t"]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:09.268280"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Doloremque et harum."], ["total_all_taxes", 145.0], ["updated_at", "2015-02-19 13:20:09.268280"], ["vat", 18.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7402"], ["name", "doloribus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:09.275582"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "A ipsam ipsa reiciendis."], ["total_all_taxes", 871.0], ["updated_at", "2015-02-19 13:20:09.275582"], ["vat", 101.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.2ms) Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (11.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (15.9ms) Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.2ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "commit"=>"Update Expense", "id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 13:20:09.506457"]]  (1.9ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.7ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5683"], ["name", "neque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:09.618260"], ["date", "2015-02-19"], ["name", "Et blanditiis sapiente est eveniet optio magni et."], ["state", "new"], ["updated_at", "2015-02-19 13:20:09.618260"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4976"], ["name", "nostrum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:09.629567"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Repudiandae sunt dolore."], ["total_all_taxes", 910.0], ["updated_at", "2015-02-19 13:20:09.629567"], ["vat", 168.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5558"], ["name", "aut"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:09.639113"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Molestiae enim aliquam."], ["total_all_taxes", 648.0], ["updated_at", "2015-02-19 13:20:09.639113"], ["vat", 89.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0386"], ["name", "iste"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:09.649644"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Sint qui consequatur eum est."], ["total_all_taxes", 291.0], ["updated_at", "2015-02-19 13:20:09.649644"], ["vat", 29.0]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9166"], ["name", "voluptates"], ["vat_deductible", "t"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:09.661348"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Cum et eum atque dolor inventore."], ["total_all_taxes", 831.0], ["updated_at", "2015-02-19 13:20:09.661348"], ["vat", 141.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1658"], ["name", "illum"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-19 13:20:09.670054"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Unde labore ab."], ["total_all_taxes", 839.0], ["updated_at", "2015-02-19 13:20:09.670054"], ["vat", 61.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (12.5ms) Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 1.2ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 14:20:09 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (111.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (118.8ms) Completed 200 OK in 125ms (Views: 122.0ms | ActiveRecord: 0.7ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-12", "category_id"=>"2", "total_all_taxes"=>"910.0", "vat"=>"168.0", "company_part"=>"25.0"}, "commit"=>"Update Expense line", "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.6ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 13:20:10.069534"]]  (3.3ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses/1 Completed 302 Found in 14ms (ActiveRecord: 4.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.4ms) Completed 200 OK in 22ms (Views: 18.8ms | ActiveRecord: 1.0ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.4ms) DELETE FROM "expense_gun_expenses";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1326"], ["name", "dolores"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:10.281110"], ["date", "2015-02-19"], ["name", "A adipisci velit dolore qui officia omnis hic."], ["state", "new"], ["updated_at", "2015-02-19 13:20:10.281110"]]  (3.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6820"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:10.291586"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Porro occaecati ratione illo dolore unde."], ["total_all_taxes", 786.0], ["updated_at", "2015-02-19 13:20:10.291586"], ["vat", 150.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9773"], ["name", "eos"], ["vat_deductible", "f"]]  (3.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:10.304186"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Quo ullam qui."], ["total_all_taxes", 441.0], ["updated_at", "2015-02-19 13:20:10.304186"], ["vat", 61.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7664"], ["name", "quia"], ["vat_deductible", "f"]]  (1.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:10.315359"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Ad quia sed doloribus repellat deserunt quia accusamus."], ["total_all_taxes", 672.0], ["updated_at", "2015-02-19 13:20:10.315359"], ["vat", 41.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.8ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (26.7ms) Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 2.4ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 13:20:10.514014"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59236/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (19.6ms) Completed 200 OK in 25ms (Views: 21.6ms | ActiveRecord: 2.0ms)  (2.3ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8481"], ["name", "ut"], ["vat_deductible", "f"]]  (2.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:10.657053"], ["date", "2015-02-19"], ["name", "Laboriosam sit asperiores a iure excepturi."], ["state", "new"], ["updated_at", "2015-02-19 13:20:10.657053"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7596"], ["name", "occaecati"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:10.664969"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Atque minus officia repellendus eum debitis tempora."], ["total_all_taxes", 143.0], ["updated_at", "2015-02-19 13:20:10.664969"], ["vat", 11.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6742"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:10.672391"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Sed assumenda accusamus."], ["total_all_taxes", 716.0], ["updated_at", "2015-02-19 13:20:10.672391"], ["vat", 117.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2317"], ["name", "est"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 13:20:10.679419"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Perspiciatis dignissimos neque ea minus."], ["total_all_taxes", 403.0], ["updated_at", "2015-02-19 13:20:10.679419"], ["vat", 63.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9586"], ["name", "aut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:10.686841"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Voluptatem repellendus consectetur."], ["total_all_taxes", 488.0], ["updated_at", "2015-02-19 13:20:10.686841"], ["vat", 14.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3142"], ["name", "aut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:10.694727"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Nemo numquam sequi sint esse."], ["total_all_taxes", 960.0], ["updated_at", "2015-02-19 13:20:10.694727"], ["vat", 121.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.4ms) Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 1.6ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 13:20:10.801680"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59236/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.7ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.7ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3542"], ["name", "labore"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:10.894934"], ["date", "2015-02-19"], ["name", "Voluptas minima illum reiciendis."], ["state", "new"], ["updated_at", "2015-02-19 13:20:10.894934"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9918"], ["name", "facilis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:10.901312"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Ullam iure tenetur id quasi temporibus illum odio."], ["total_all_taxes", 556.0], ["updated_at", "2015-02-19 13:20:10.901312"], ["vat", 107.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9025"], ["name", "natus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:10.908378"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Aperiam qui voluptatem facere numquam magnam aspernatur."], ["total_all_taxes", 527.0], ["updated_at", "2015-02-19 13:20:10.908378"], ["vat", 57.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:10 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.9ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.4ms)  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.4ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.5ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (11.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0873"], ["name", "in"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.3ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3880"], ["name", "praesentium"], ["vat_deductible", "f"]]  (1.9ms) commit transaction  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.5ms) DELETE FROM "expense_gun_expense_lines";  (0.7ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.3ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5816"], ["name", "quis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:11.182527"], ["date", "2015-02-19"], ["name", "Dolorem iure est quo dolore harum sed fuga."], ["state", "submited"], ["updated_at", "2015-02-19 13:20:11.182527"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9317"], ["name", "est"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:11.194380"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Esse autem earum."], ["total_all_taxes", 396.0], ["updated_at", "2015-02-19 13:20:11.194380"], ["vat", 1.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2355"], ["name", "dicta"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:20:11.207911"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Nulla animi in quia."], ["total_all_taxes", 553.0], ["updated_at", "2015-02-19 13:20:11.207911"], ["vat", 8.0]]  (3.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6719"], ["name", "dignissimos"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:11.222122"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Ut aut assumenda in adipisci et vitae qui."], ["total_all_taxes", 619.0], ["updated_at", "2015-02-19 13:20:11.222122"], ["vat", 31.0]]  (12.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3712"], ["name", "minus"], ["vat_deductible", "f"]]  (8.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 13:20:11.252457"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Nobis facilis nostrum distinctio."], ["total_all_taxes", 835.0], ["updated_at", "2015-02-19 13:20:11.252457"], ["vat", 50.0]]  (1.0ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (18.5ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 1.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.7ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 13:20:11.361439"]]  (1.8ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 1.0ms)  (2.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5681"], ["name", "ut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:20:11.485516"], ["date", "2015-02-19"], ["name", "Est repudiandae occaecati deleniti autem natus itaque."], ["state", "submited"], ["updated_at", "2015-02-19 13:20:11.485516"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7474"], ["name", "id"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:11.494110"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Dolorum fugiat asperiores suscipit sapiente quam quidem."], ["total_all_taxes", 255.0], ["updated_at", "2015-02-19 13:20:11.494110"], ["vat", 8.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4484"], ["name", "sequi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:20:11.502742"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Ut voluptas unde ducimus eaque voluptas."], ["total_all_taxes", 924.0], ["updated_at", "2015-02-19 13:20:11.502742"], ["vat", 93.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7735"], ["name", "sed"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 13:20:11.512417"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Dolores consequatur et."], ["total_all_taxes", 477.0], ["updated_at", "2015-02-19 13:20:11.512417"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5626"], ["name", "vel"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 13:20:11.524534"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Dicta aut ad."], ["total_all_taxes", 741.0], ["updated_at", "2015-02-19 13:20:11.524534"], ["vat", 108.0]]  (3.7ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6081"], ["name", "quam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.8ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-19 13:20:11.542071"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Aperiam harum perspiciatis sunt rerum dicta eos odit."], ["total_all_taxes", 219.0], ["updated_at", "2015-02-19 13:20:11.542071"], ["vat", 17.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (19.6ms) Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 2.3ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 13:20:11.679148"]]  (1.8ms) commit transaction Redirected to http://127.0.0.1:59236/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.5ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59236/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:20:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 1.2ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (45.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6362"], ["name", "rem"], ["vat_deductible", "t"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (102.8ms) Completed 200 OK in 210ms (Views: 206.4ms | ActiveRecord: 1.3ms) Started GET "/assets/expense_gun/application.css" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Started GET "/assets/expense_gun/application.js" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (173.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (178.1ms) Completed 200 OK in 187ms (Views: 182.0ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}, "commit"=>"Create Expense"}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:26.888393"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 13:23:26.888393"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:26 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (76.1ms) Completed 200 OK in 82ms (Views: 80.0ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (115.7ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (121.8ms) Completed 200 OK in 147ms (Views: 128.2ms | ActiveRecord: 0.8ms) ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "commit"=>"Create Expense line", "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:27.400994"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 13:23:27.400994"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.1ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.8ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5747"], ["name", "dicta"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:27.498696"], ["date", "2015-02-19"], ["name", "Cumque laboriosam et ducimus optio deleniti et doloremque."], ["state", "new"], ["updated_at", "2015-02-19 13:23:27.498696"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7470"], ["name", "dignissimos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:27.505305"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Non qui doloribus ea delectus repudiandae ab quod."], ["total_all_taxes", 510.0], ["updated_at", "2015-02-19 13:23:27.505305"], ["vat", 56.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4269"], ["name", "magnam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:27.512179"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Quisquam quia et."], ["total_all_taxes", 879.0], ["updated_at", "2015-02-19 13:23:27.512179"], ["vat", 159.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6178"], ["name", "esse"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:27.517936"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Exercitationem voluptatibus ut ex modi architecto commodi id."], ["total_all_taxes", 185.0], ["updated_at", "2015-02-19 13:23:27.517936"], ["vat", 24.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7888"], ["name", "eveniet"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:27.524957"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Enim voluptates voluptatibus."], ["total_all_taxes", 782.0], ["updated_at", "2015-02-19 13:23:27.524957"], ["vat", 93.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (8.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (12.4ms) Completed 200 OK in 17ms (Views: 15.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "commit"=>"Update Expense", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 13:23:27.685870"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.4ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2173"], ["name", "quae"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:27.776716"], ["date", "2015-02-19"], ["name", "Cumque et excepturi nemo iste sint."], ["state", "new"], ["updated_at", "2015-02-19 13:23:27.776716"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3204"], ["name", "est"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:27.788481"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Sint deserunt cum."], ["total_all_taxes", 700.0], ["updated_at", "2015-02-19 13:23:27.788481"], ["vat", 135.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7946"], ["name", "culpa"], ["vat_deductible", "f"]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:27.799856"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Similique ut dolore."], ["total_all_taxes", 925.0], ["updated_at", "2015-02-19 13:23:27.799856"], ["vat", 166.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7283"], ["name", "vitae"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:27.807807"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Ex sed omnis."], ["total_all_taxes", 547.0], ["updated_at", "2015-02-19 13:23:27.807807"], ["vat", 32.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7768"], ["name", "fuga"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:27.814017"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Quia neque repudiandae odio labore."], ["total_all_taxes", 105.0], ["updated_at", "2015-02-19 13:23:27.814017"], ["vat", 14.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0927"], ["name", "quod"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:27.820152"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Error culpa mollitia aliquid excepturi laboriosam odio."], ["total_all_taxes", 320.0], ["updated_at", "2015-02-19 13:23:27.820152"], ["vat", 32.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.0ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 14:23:27 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (24.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (28.5ms) Completed 200 OK in 34ms (Views: 31.6ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-24", "category_id"=>"2", "total_all_taxes"=>"700.0", "vat"=>"135.0", "company_part"=>"75.0"}, "commit"=>"Update Expense line", "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 13:23:28.073170"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (12.1ms) Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 1.2ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2571"], ["name", "quia"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:28.176186"], ["date", "2015-02-19"], ["name", "Aperiam vero rerum et sed dolores reiciendis rem."], ["state", "new"], ["updated_at", "2015-02-19 13:23:28.176186"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2767"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:23:28.182796"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Quis repellendus omnis voluptatem quia reiciendis."], ["total_all_taxes", 587.0], ["updated_at", "2015-02-19 13:23:28.182796"], ["vat", 78.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0684"], ["name", "illo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.190706"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Deserunt molestiae numquam qui dolorem consectetur ea."], ["total_all_taxes", 678.0], ["updated_at", "2015-02-19 13:23:28.190706"], ["vat", 81.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9545"], ["name", "itaque"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.197586"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Tenetur eaque omnis impedit eveniet."], ["total_all_taxes", 218.0], ["updated_at", "2015-02-19 13:23:28.197586"], ["vat", 37.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.9ms) Completed 200 OK in 18ms (Views: 15.0ms | ActiveRecord: 1.5ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 13:23:28.293441"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59326/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.0ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7627"], ["name", "sit"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:28.387932"], ["date", "2015-02-19"], ["name", "Maiores sed tenetur ipsa distinctio."], ["state", "new"], ["updated_at", "2015-02-19 13:23:28.387932"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6894"], ["name", "eaque"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.395740"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Est debitis quia."], ["total_all_taxes", 477.0], ["updated_at", "2015-02-19 13:23:28.395740"], ["vat", 93.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5834"], ["name", "dolorem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.402460"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Minus doloribus ut totam quia minima et deserunt."], ["total_all_taxes", 245.0], ["updated_at", "2015-02-19 13:23:28.402460"], ["vat", 9.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 13:23:28.490435"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59326/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7211"], ["name", "voluptatum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:28.577513"], ["date", "2015-02-19"], ["name", "Tempora quibusdam quos natus laboriosam sapiente vel quo."], ["state", "new"], ["updated_at", "2015-02-19 13:23:28.577513"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1717"], ["name", "architecto"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.584200"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Aliquid cumque ut voluptatem eligendi nisi."], ["total_all_taxes", 651.0], ["updated_at", "2015-02-19 13:23:28.584200"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1179"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.590683"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Provident quis distinctio facilis."], ["total_all_taxes", 648.0], ["updated_at", "2015-02-19 13:23:28.590683"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9342"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.596891"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Minima similique nihil earum."], ["total_all_taxes", 225.0], ["updated_at", "2015-02-19 13:23:28.596891"], ["vat", 27.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3351"], ["name", "ut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 13:23:28.603302"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Dolorem cum est unde sed."], ["total_all_taxes", 729.0], ["updated_at", "2015-02-19 13:23:28.603302"], ["vat", 103.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1832"], ["name", "maiores"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8544"], ["name", "dolorem"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6428"], ["name", "tenetur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:28.704969"], ["date", "2015-02-19"], ["name", "Magnam aspernatur est placeat."], ["state", "submited"], ["updated_at", "2015-02-19 13:23:28.704969"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2085"], ["name", "vel"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:28.711133"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Est occaecati nihil exercitationem sed."], ["total_all_taxes", 995.0], ["updated_at", "2015-02-19 13:23:28.711133"], ["vat", 138.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1946"], ["name", "molestiae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 13:23:28.718088"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Blanditiis dignissimos neque sint vitae amet ipsa."], ["total_all_taxes", 597.0], ["updated_at", "2015-02-19 13:23:28.718088"], ["vat", 25.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3201"], ["name", "ab"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:28.723805"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Accusamus reprehenderit exercitationem repudiandae ullam aspernatur."], ["total_all_taxes", 659.0], ["updated_at", "2015-02-19 13:23:28.723805"], ["vat", 67.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7653"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.782702"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Quam sit quisquam error tempora."], ["total_all_taxes", 651.0], ["updated_at", "2015-02-19 13:23:28.782702"], ["vat", 46.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8268"], ["name", "et"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-19 13:23:28.789075"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Fugiat deleniti mollitia ipsam aut."], ["total_all_taxes", 380.0], ["updated_at", "2015-02-19 13:23:28.789075"], ["vat", 71.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 13:23:28.871794"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.4ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0263"], ["name", "odio"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:23:28.958226"], ["date", "2015-02-19"], ["name", "Molestiae incidunt in dolores deleniti."], ["state", "submited"], ["updated_at", "2015-02-19 13:23:28.958226"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5575"], ["name", "numquam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.964799"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Assumenda aut quas eveniet odio."], ["total_all_taxes", 766.0], ["updated_at", "2015-02-19 13:23:28.964799"], ["vat", 30.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2945"], ["name", "sed"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.971392"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Temporibus natus ut ut sit omnis fugiat."], ["total_all_taxes", 910.0], ["updated_at", "2015-02-19 13:23:28.971392"], ["vat", 120.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4762"], ["name", "officiis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:23:28.977295"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Excepturi nisi qui asperiores soluta non culpa."], ["total_all_taxes", 662.0], ["updated_at", "2015-02-19 13:23:28.977295"], ["vat", 17.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4301"], ["name", "iste"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:28.984187"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Blanditiis eveniet odio sed quo qui et dolore."], ["total_all_taxes", 940.0], ["updated_at", "2015-02-19 13:23:28.984187"], ["vat", 141.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2578"], ["name", "accusamus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-19 13:23:28.990348"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Dicta repellat eum aperiam cum voluptatibus totam."], ["total_all_taxes", 797.0], ["updated_at", "2015-02-19 13:23:28.990348"], ["vat", 38.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:23:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 14:23:29 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 13:23:29.069560"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:59326/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:23:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59326/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:23:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.9ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3415"], ["name", "repellendus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7087"], ["name", "esse"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0063"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4955"], ["name", "dolor"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6978"], ["name", "non"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2596"], ["name", "dolorem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3747"], ["name", "ad"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4692"], ["name", "quis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3229"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5333"], ["name", "vel"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6953"], ["name", "quam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5268"], ["name", "deserunt"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4425"], ["name", "autem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0537"], ["name", "accusantium"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2172"], ["name", "natus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:25:49.143295"], ["date", "2015-02-19"], ["name", "Recusandae est suscipit iusto nostrum consequatur sunt."], ["state", "new"], ["updated_at", "2015-02-19 13:25:49.143295"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0208"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-02-19 13:25:49.152361"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "A et ea velit ut ratione eum."], ["total_all_taxes", 447.0], ["updated_at", "2015-02-19 13:25:49.152361"], ["vat", 74.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7327"], ["name", "consectetur"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:25:49.157329"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Aliquid eos aspernatur aut."], ["total_all_taxes", 330.0], ["updated_at", "2015-02-19 13:25:49.157329"], ["vat", 37.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9278"], ["name", "eligendi"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:25:49.161417"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Similique quidem ad aperiam reprehenderit qui."], ["total_all_taxes", 761.0], ["updated_at", "2015-02-19 13:25:49.161417"], ["vat", 9.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1633"], ["name", "aut"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 13:25:49.165508"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Error alias qui corporis ut temporibus nemo."], ["total_all_taxes", 305.0], ["updated_at", "2015-02-19 13:25:49.165508"], ["vat", 30.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (44.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3706"], ["name", "aut"], ["vat_deductible", "f"]]  (2.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (106.2ms) Completed 200 OK in 217ms (Views: 212.9ms | ActiveRecord: 1.9ms) Started GET "/assets/expense_gun/application.css" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Started GET "/assets/expense_gun/application.js" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (109.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (114.4ms) Completed 200 OK in 122ms (Views: 117.6ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}, "commit"=>"Create Expense"}  (0.3ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:08.656696"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 13:26:08.656696"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (73.7ms) Completed 200 OK in 79ms (Views: 77.6ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 14:26:08 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (94.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (99.2ms) Completed 200 OK in 123ms (Views: 104.2ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "commit"=>"Create Expense line", "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 13:26:09.067841"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 13:26:09.067841"], ["vat", 20.0]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.3ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4305"], ["name", "corporis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:09.163141"], ["date", "2015-02-19"], ["name", "Quia ut enim soluta doloremque blanditiis qui."], ["state", "new"], ["updated_at", "2015-02-19 13:26:09.163141"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1183"], ["name", "repudiandae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:26:09.169583"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Aspernatur veniam et itaque quia."], ["total_all_taxes", 157.0], ["updated_at", "2015-02-19 13:26:09.169583"], ["vat", 20.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0798"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:26:09.176278"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Sapiente doloremque porro neque recusandae."], ["total_all_taxes", 756.0], ["updated_at", "2015-02-19 13:26:09.176278"], ["vat", 142.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7657"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:26:09.183570"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Vel ea accusantium consequatur possimus."], ["total_all_taxes", 392.0], ["updated_at", "2015-02-19 13:26:09.183570"], ["vat", 26.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (10.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (14.8ms) Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "commit"=>"Update Expense", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 13:26:09.360574"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.5ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8594"], ["name", "laboriosam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:09.453101"], ["date", "2015-02-19"], ["name", "Numquam hic sequi."], ["state", "new"], ["updated_at", "2015-02-19 13:26:09.453101"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8305"], ["name", "laboriosam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:09.460351"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Nihil nesciunt ea laudantium ut aut eum."], ["total_all_taxes", 446.0], ["updated_at", "2015-02-19 13:26:09.460351"], ["vat", 61.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2471"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:26:09.468927"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Fugit sit praesentium nobis tempora esse possimus."], ["total_all_taxes", 230.0], ["updated_at", "2015-02-19 13:26:09.468927"], ["vat", 16.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.9ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (81.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (84.8ms) Completed 200 OK in 90ms (Views: 87.6ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-03", "category_id"=>"2", "total_all_taxes"=>"446.0", "vat"=>"61.0", "company_part"=>"25.0"}, "commit"=>"Update Expense line", "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 13:26:09.716394"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.8ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2636"], ["name", "fuga"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:09.802112"], ["date", "2015-02-19"], ["name", "Dolorem sed eum corporis sequi."], ["state", "new"], ["updated_at", "2015-02-19 13:26:09.802112"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4289"], ["name", "cumque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:26:09.808505"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Quas qui aut sit mollitia est."], ["total_all_taxes", 915.0], ["updated_at", "2015-02-19 13:26:09.808505"], ["vat", 76.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7557"], ["name", "magni"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:26:09.815599"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Blanditiis modi nisi illum vel nam."], ["total_all_taxes", 477.0], ["updated_at", "2015-02-19 13:26:09.815599"], ["vat", 42.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 13:26:09.901043"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59403/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:26:09 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 0.9ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0323"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:09.992987"], ["date", "2015-02-19"], ["name", "Excepturi maxime labore magni praesentium perspiciatis."], ["state", "new"], ["updated_at", "2015-02-19 13:26:09.992987"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6427"], ["name", "asperiores"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 13:26:09.999814"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Ut quasi repellat dicta consequuntur eos temporibus."], ["total_all_taxes", 569.0], ["updated_at", "2015-02-19 13:26:09.999814"], ["vat", 14.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2197"], ["name", "commodi"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:26:10.006613"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Autem alias qui eaque ut vel commodi."], ["total_all_taxes", 876.0], ["updated_at", "2015-02-19 13:26:10.006613"], ["vat", 126.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.0ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 13:26:10.089685"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59403/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.7ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9781"], ["name", "molestias"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:10.175373"], ["date", "2015-02-19"], ["name", "Quia exercitationem voluptatum culpa qui."], ["state", "new"], ["updated_at", "2015-02-19 13:26:10.175373"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1586"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:26:10.181695"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Fugiat facilis repudiandae sit."], ["total_all_taxes", 314.0], ["updated_at", "2015-02-19 13:26:10.181695"], ["vat", 47.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7537"], ["name", "iure"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:10.188666"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Necessitatibus deleniti reprehenderit dolor ratione."], ["total_all_taxes", 745.0], ["updated_at", "2015-02-19 13:26:10.188666"], ["vat", 30.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3789"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:10.194401"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "A eum perferendis et quod sint cumque vero."], ["total_all_taxes", 303.0], ["updated_at", "2015-02-19 13:26:10.194401"], ["vat", 10.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.0ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms)  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5876"], ["name", "est"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7102"], ["name", "tenetur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2357"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:10.350888"], ["date", "2015-02-19"], ["name", "Debitis laudantium ut possimus saepe quibusdam illum magnam."], ["state", "submited"], ["updated_at", "2015-02-19 13:26:10.350888"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6922"], ["name", "omnis"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:26:10.357639"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Id expedita ipsa cumque enim veritatis."], ["total_all_taxes", 237.0], ["updated_at", "2015-02-19 13:26:10.357639"], ["vat", 44.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3627"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 13:26:10.365470"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Occaecati aut veritatis."], ["total_all_taxes", 507.0], ["updated_at", "2015-02-19 13:26:10.365470"], ["vat", 16.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3327"], ["name", "ipsam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:10.371913"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Non aut qui maiores architecto."], ["total_all_taxes", 652.0], ["updated_at", "2015-02-19 13:26:10.371913"], ["vat", 12.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.5ms) Completed 200 OK in 17ms (Views: 14.5ms | ActiveRecord: 1.5ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 13:26:10.462910"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.8ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3193"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:26:10.547554"], ["date", "2015-02-19"], ["name", "Molestiae labore occaecati."], ["state", "submited"], ["updated_at", "2015-02-19 13:26:10.547554"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8418"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 13:26:10.554630"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Sunt qui incidunt debitis illum."], ["total_all_taxes", 684.0], ["updated_at", "2015-02-19 13:26:10.554630"], ["vat", 41.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2077"], ["name", "quaerat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 13:26:10.561247"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Quos excepturi quia explicabo praesentium."], ["total_all_taxes", 280.0], ["updated_at", "2015-02-19 13:26:10.561247"], ["vat", 47.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3451"], ["name", "explicabo"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:10.569099"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Autem nesciunt praesentium ut et nostrum."], ["total_all_taxes", 984.0], ["updated_at", "2015-02-19 13:26:10.569099"], ["vat", 66.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8362"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 13:26:10.575820"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Architecto nemo et nisi molestias."], ["total_all_taxes", 851.0], ["updated_at", "2015-02-19 13:26:10.575820"], ["vat", 93.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5881"], ["name", "ab"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-19 13:26:10.582094"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Qui quae consequatur aut."], ["total_all_taxes", 528.0], ["updated_at", "2015-02-19 13:26:10.582094"], ["vat", 97.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 13:26:10.667772"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:59403/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:59403/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 14:26:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.3ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.8ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7728"], ["name", "qui"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4338"], ["name", "et"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7079"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3067"], ["name", "neque"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1587"], ["name", "possimus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4036"], ["name", "eos"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0510"], ["name", "maiores"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7266"], ["name", "natus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8873"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1874"], ["name", "accusantium"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1865"], ["name", "pariatur"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4698"], ["name", "pariatur"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1294"], ["name", "cum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3148"], ["name", "temporibus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2724"], ["name", "ut"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:28:39.186154"], ["date", "2015-02-19"], ["name", "Labore itaque aliquid ipsa est nulla beatae nisi."], ["state", "new"], ["updated_at", "2015-02-19 13:28:39.186154"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1861"], ["name", "quaerat"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 13:28:39.192045"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Qui quis ducimus sequi placeat et."], ["total_all_taxes", 970.0], ["updated_at", "2015-02-19 13:28:39.192045"], ["vat", 42.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5853"], ["name", "possimus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:28:39.196737"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Deserunt qui debitis enim ut modi."], ["total_all_taxes", 378.0], ["updated_at", "2015-02-19 13:28:39.196737"], ["vat", 39.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4079"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 13:28:39.202161"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Aliquam eum similique dolorem ipsam."], ["total_all_taxes", 402.0], ["updated_at", "2015-02-19 13:28:39.202161"], ["vat", 16.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9134"], ["name", "quae"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 13:28:39.207070"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Voluptas quos nihil officiis quis tempore."], ["total_all_taxes", 597.0], ["updated_at", "2015-02-19 13:28:39.207070"], ["vat", 15.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8054"], ["name", "dolorem"], ["vat_deductible", "t"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 13:28:39.214190"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Laborum praesentium ut qui perspiciatis quo."], ["total_all_taxes", 316.0], ["updated_at", "2015-02-19 13:28:39.214190"], ["vat", 37.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0081"], ["name", "nemo"], ["vat_deductible", "f"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:28:52 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (105.5ms) Completed 200 OK in 220ms (Views: 215.4ms | ActiveRecord: 1.3ms)  (0.8ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1619"], ["name", "eos"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5746"], ["name", "non"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0564"], ["name", "placeat"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6857"], ["name", "veniam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4498"], ["name", "minus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5884"], ["name", "esse"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0841"], ["name", "reprehenderit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4657"], ["name", "laborum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3821"], ["name", "laudantium"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3474"], ["name", "fugiat"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3451"], ["name", "est"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0654"], ["name", "voluptate"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1563"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4247"], ["name", "quis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3854"], ["name", "provident"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:29:32.188690"], ["date", "2015-02-19"], ["name", "Provident dolore voluptas earum veniam magni voluptatibus facere."], ["state", "new"], ["updated_at", "2015-02-19 13:29:32.188690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5237"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-02-19 13:29:32.194394"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Culpa corporis voluptatem quia consequatur."], ["total_all_taxes", 592.0], ["updated_at", "2015-02-19 13:29:32.194394"], ["vat", 1.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5594"], ["name", "aperiam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 13:29:32.199472"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Aut iusto ut vitae minus."], ["total_all_taxes", 399.0], ["updated_at", "2015-02-19 13:29:32.199472"], ["vat", 16.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6963"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1741"], ["name", "quo"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2065"], ["name", "exercitationem"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1171"], ["name", "sit"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8567"], ["name", "odit"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4255"], ["name", "aut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3556"], ["name", "commodi"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3367"], ["name", "sed"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2402"], ["name", "nam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1268"], ["name", "vero"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3767"], ["name", "itaque"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.6ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8418"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1126"], ["name", "facere"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8967"], ["name", "officia"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8314"], ["name", "provident"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8718"], ["name", "culpa"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7753"], ["name", "voluptatum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8416"], ["name", "saepe"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6162"], ["name", "voluptatum"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7662"], ["name", "in"], ["vat_deductible", "t"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8287"], ["name", "sint"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9167"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3015"], ["name", "sint"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1663"], ["name", "id"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9604"], ["name", "natus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6583"], ["name", "odio"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 13:30:05.861306"], ["date", "2015-02-19"], ["name", "Rem et quaerat ea."], ["state", "new"], ["updated_at", "2015-02-19 13:30:05.861306"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3876"], ["name", "eum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 100.0], ["created_at", "2015-02-19 13:30:05.868575"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Nemo ipsa sapiente."], ["total_all_taxes", 364.0], ["updated_at", "2015-02-19 13:30:05.868575"], ["vat", 44.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4569"], ["name", "deserunt"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 13:30:05.873549"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Aut error est aut quia soluta."], ["total_all_taxes", 588.0], ["updated_at", "2015-02-19 13:30:05.873549"], ["vat", 106.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2316"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 13:30:05.879236"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Explicabo ea vero."], ["total_all_taxes", 491.0], ["updated_at", "2015-02-19 13:30:05.879236"], ["vat", 62.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8656"], ["name", "minus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 13:30:05.884184"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Aut aliquid sint consequuntur."], ["total_all_taxes", 539.0], ["updated_at", "2015-02-19 13:30:05.884184"], ["vat", 86.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8821"], ["name", "qui"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 13:30:05.888696"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Asperiores beatae cum qui."], ["total_all_taxes", 804.0], ["updated_at", "2015-02-19 13:30:05.888696"], ["vat", 106.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5473"], ["name", "eum"], ["vat_deductible", "f"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 14:30:18 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (104.6ms) Completed 200 OK in 213ms (Views: 208.9ms | ActiveRecord: 1.7ms) ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7556"], ["name", "amet"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7598"], ["name", "nesciunt"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5321"], ["name", "molestias"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1544"], ["name", "non"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2738"], ["name", "autem"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9906"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2898"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9697"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8742"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3146"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1122"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6329"], ["name", "dignissimos"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1133"], ["name", "assumenda"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4625"], ["name", "eum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2203"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 14:59:36.028199"], ["date", "2015-02-19"], ["name", "Est atque quidem neque omnis rerum aut."], ["state", "new"], ["updated_at", "2015-02-19 14:59:36.028199"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6975"], ["name", "deserunt"], ["vat_deductible", "t"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-02-19 14:59:36.036169"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Voluptatem ab ut quia."], ["total_all_taxes", 856.0], ["updated_at", "2015-02-19 14:59:36.036169"], ["vat", 38.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3929"], ["name", "minus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 14:59:36.043356"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Eum officia esse ut magni ut architecto quibusdam."], ["total_all_taxes", 299.0], ["updated_at", "2015-02-19 14:59:36.043356"], ["vat", 2.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7777"], ["name", "expedita"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 14:59:36.048775"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Temporibus id dolores expedita est optio."], ["total_all_taxes", 159.0], ["updated_at", "2015-02-19 14:59:36.048775"], ["vat", 14.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.2ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8585"], ["name", "sed"], ["vat_deductible", "t"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 15:59:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (104.5ms) Completed 200 OK in 8025ms (Views: 8020.7ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 15:59:58 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (359.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (365.0ms) Completed 200 OK in 374ms (Views: 368.0ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 14:59:59.426594"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 14:59:59.426594"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (105.3ms) Completed 200 OK in 110ms (Views: 108.0ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (75.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (81.8ms) Completed 200 OK in 103ms (Views: 86.0ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 14:59:59.850878"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 14:59:59.850878"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8685"], ["name", "iste"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 14:59:59.952581"], ["date", "2015-02-19"], ["name", "Aliquid excepturi itaque omnis."], ["state", "new"], ["updated_at", "2015-02-19 14:59:59.952581"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5650"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 14:59:59.961573"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Soluta quo perspiciatis voluptas voluptatum aliquid ipsa."], ["total_all_taxes", 720.0], ["updated_at", "2015-02-19 14:59:59.961573"], ["vat", 81.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1518"], ["name", "labore"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 14:59:59.970302"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Eligendi quia facilis magnam."], ["total_all_taxes", 338.0], ["updated_at", "2015-02-19 14:59:59.970302"], ["vat", 12.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 15:59:59 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (6.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (12.7ms) Completed 200 OK in 20ms (Views: 17.1ms | ActiveRecord: 0.2ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 15:00:00.181455"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.5ms) Completed 200 OK in 16ms (Views: 13.0ms | ActiveRecord: 0.8ms)  (3.3ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6326"], ["name", "quod"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:00.338223"], ["date", "2015-02-19"], ["name", "Corrupti quibusdam et repellendus et quia fuga."], ["state", "new"], ["updated_at", "2015-02-19 15:00:00.338223"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8166"], ["name", "quia"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:00.343932"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Voluptatem eos consectetur repellat eum non."], ["total_all_taxes", 488.0], ["updated_at", "2015-02-19 15:00:00.343932"], ["vat", 52.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5815"], ["name", "magni"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:00.350483"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Alias pariatur beatae."], ["total_all_taxes", 571.0], ["updated_at", "2015-02-19 15:00:00.350483"], ["vat", 17.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8031"], ["name", "suscipit"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:00.357710"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Unde sint numquam consequatur sit nihil inventore."], ["total_all_taxes", 297.0], ["updated_at", "2015-02-19 15:00:00.357710"], ["vat", 56.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4228"], ["name", "recusandae"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:00.364609"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Aut voluptatibus perferendis magnam ullam non nam aut."], ["total_all_taxes", 592.0], ["updated_at", "2015-02-19 15:00:00.364609"], ["vat", 95.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7641"], ["name", "est"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:00.370648"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Voluptatem modi velit ullam."], ["total_all_taxes", 283.0], ["updated_at", "2015-02-19 15:00:00.370648"], ["vat", 20.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.4ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.9ms) ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (19.7ms) Completed 200 OK in 28ms (Views: 24.1ms | ActiveRecord: 0.8ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-15", "category_id"=>"2", "total_all_taxes"=>"488.0", "vat"=>"52.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.5ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 15:00:00.591944"]]  (2.8ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses/1 Completed 302 Found in 13ms (ActiveRecord: 4.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.8ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6741"], ["name", "voluptatum"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:00.694625"], ["date", "2015-02-19"], ["name", "Sit accusantium et illo corporis placeat sequi voluptatibus."], ["state", "new"], ["updated_at", "2015-02-19 15:00:00.694625"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5071"], ["name", "officia"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:00.700905"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Ut error facere voluptatum voluptates aliquid sit."], ["total_all_taxes", 191.0], ["updated_at", "2015-02-19 15:00:00.700905"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2347"], ["name", "aut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:00.707671"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Amet aut expedita omnis eos minima est."], ["total_all_taxes", 357.0], ["updated_at", "2015-02-19 15:00:00.707671"], ["vat", 26.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3405"], ["name", "unde"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:00.714574"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Debitis amet quia et consectetur qui."], ["total_all_taxes", 391.0], ["updated_at", "2015-02-19 15:00:00.714574"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6241"], ["name", "expedita"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:00.722561"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Aperiam voluptas molestiae magni vel."], ["total_all_taxes", 617.0], ["updated_at", "2015-02-19 15:00:00.722561"], ["vat", 42.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (71.2ms) Completed 200 OK in 73ms (Views: 71.2ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 15:00:00.865946"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60737/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.9ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1328"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:00.960853"], ["date", "2015-02-19"], ["name", "Nihil odio sed."], ["state", "new"], ["updated_at", "2015-02-19 15:00:00.960853"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6316"], ["name", "accusamus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:00.967347"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Quo et consequuntur reprehenderit."], ["total_all_taxes", 240.0], ["updated_at", "2015-02-19 15:00:00.967347"], ["vat", 32.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7186"], ["name", "laboriosam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:00.973883"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Ipsum ea et voluptates omnis magni."], ["total_all_taxes", 792.0], ["updated_at", "2015-02-19 15:00:00.973883"], ["vat", 41.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:00:00 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.1ms) Completed 200 OK in 17ms (Views: 15.0ms | ActiveRecord: 1.5ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 15:00:01.074218"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses Completed 302 Found in 11ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60737/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.8ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0599"], ["name", "eligendi"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:01.181262"], ["date", "2015-02-19"], ["name", "Qui tempore dolor necessitatibus voluptates excepturi."], ["state", "new"], ["updated_at", "2015-02-19 15:00:01.181262"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5705"], ["name", "quae"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:01.187327"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Et tempora ullam modi."], ["total_all_taxes", 130.0], ["updated_at", "2015-02-19 15:00:01.187327"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1976"], ["name", "itaque"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:01.195982"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Molestias quod consequatur enim nisi accusantium rerum aut."], ["total_all_taxes", 666.0], ["updated_at", "2015-02-19 15:00:01.195982"], ["vat", 39.0]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2088"], ["name", "nisi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:01.205856"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Velit sunt et ut alias ab illo."], ["total_all_taxes", 830.0], ["updated_at", "2015-02-19 15:00:01.205856"], ["vat", 51.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4308"], ["name", "corrupti"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:01.215296"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Error odio ratione."], ["total_all_taxes", 217.0], ["updated_at", "2015-02-19 15:00:01.215296"], ["vat", 38.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.5ms) Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.8ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6281"], ["name", "adipisci"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.0ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.4ms) DELETE FROM "expense_gun_expenses";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5292"], ["name", "eius"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0177"], ["name", "neque"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:01.332437"], ["date", "2015-02-19"], ["name", "Perspiciatis sapiente distinctio voluptatum."], ["state", "submited"], ["updated_at", "2015-02-19 15:00:01.332437"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7481"], ["name", "voluptate"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:00:01.341394"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Est perferendis nulla nisi enim."], ["total_all_taxes", 193.0], ["updated_at", "2015-02-19 15:00:01.341394"], ["vat", 34.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5357"], ["name", "maxime"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:01.350345"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Asperiores earum quibusdam aut a voluptatibus vel."], ["total_all_taxes", 660.0], ["updated_at", "2015-02-19 15:00:01.350345"], ["vat", 61.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6478"], ["name", "soluta"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:01.357393"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Animi qui non sed."], ["total_all_taxes", 472.0], ["updated_at", "2015-02-19 15:00:01.357393"], ["vat", 30.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2566"], ["name", "eius"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 15:00:01.365140"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Iusto qui qui aut at est aliquam saepe."], ["total_all_taxes", 141.0], ["updated_at", "2015-02-19 15:00:01.365140"], ["vat", 15.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 15:00:01.462526"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.8ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9188"], ["name", "ex"], ["vat_deductible", "t"]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:00:01.563012"], ["date", "2015-02-19"], ["name", "Eaque dignissimos nihil est nesciunt minima inventore."], ["state", "submited"], ["updated_at", "2015-02-19 15:00:01.563012"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1122"], ["name", "adipisci"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:00:01.570335"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Tenetur sequi quia."], ["total_all_taxes", 622.0], ["updated_at", "2015-02-19 15:00:01.570335"], ["vat", 102.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8075"], ["name", "quod"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:00:01.577409"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Earum facere perferendis aut enim ut."], ["total_all_taxes", 510.0], ["updated_at", "2015-02-19 15:00:01.577409"], ["vat", 9.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6359"], ["name", "ut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:00:01.584086"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Quibusdam doloribus nihil."], ["total_all_taxes", 129.0], ["updated_at", "2015-02-19 15:00:01.584086"], ["vat", 10.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.7ms) Completed 200 OK in 15ms (Views: 12.2ms | ActiveRecord: 1.6ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 15:00:01.738955"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:60737/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60737/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:00:01 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 1.3ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6566"], ["name", "provident"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2716"], ["name", "nostrum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1787"], ["name", "ut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8282"], ["name", "distinctio"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3010"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5770"], ["name", "enim"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7826"], ["name", "corrupti"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3619"], ["name", "eaque"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0312"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8412"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6485"], ["name", "harum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3803"], ["name", "molestiae"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4761"], ["name", "nulla"], ["vat_deductible", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.8ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6484"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2715"], ["name", "labore"], ["vat_deductible", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.5ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:08.387376"], ["date", "2015-02-19"], ["name", "Ea eligendi odit doloribus cum beatae sit consequatur."], ["state", "new"], ["updated_at", "2015-02-19 15:04:08.387376"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6267"], ["name", "esse"], ["vat_deductible", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:08.402709"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Non necessitatibus non placeat et nihil."], ["total_all_taxes", 907.0], ["updated_at", "2015-02-19 15:04:08.402709"], ["vat", 96.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6137"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:08.409934"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Illo aspernatur facere."], ["total_all_taxes", 663.0], ["updated_at", "2015-02-19 15:04:08.409934"], ["vat", 58.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5682"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:08.414293"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Veniam facere at libero laudantium placeat est ut."], ["total_all_taxes", 460.0], ["updated_at", "2015-02-19 15:04:08.414293"], ["vat", 43.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7712"], ["name", "nobis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:08.418831"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Sit sunt praesentium est minus aut."], ["total_all_taxes", 313.0], ["updated_at", "2015-02-19 15:04:08.418831"], ["vat", 24.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8737"], ["name", "nostrum"], ["vat_deductible", "f"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:08.432240"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Quia itaque perspiciatis."], ["total_all_taxes", 209.0], ["updated_at", "2015-02-19 15:04:08.432240"], ["vat", 18.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.3ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.2ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (4.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3671"], ["name", "et"], ["vat_deductible", "t"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:04:22 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (109.9ms) Completed 200 OK in 218ms (Views: 214.4ms | ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (303.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (310.6ms) Completed 200 OK in 318ms (Views: 313.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:23.423979"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 15:04:23.423979"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (84.7ms) Completed 200 OK in 90ms (Views: 87.8ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (72.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (78.4ms) Completed 200 OK in 102ms (Views: 82.7ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:23.809004"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 15:04:23.809004"], ["vat", 20.0]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.2ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.5ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6762"], ["name", "autem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:23.904591"], ["date", "2015-02-19"], ["name", "Fugiat praesentium sunt sapiente nemo recusandae."], ["state", "new"], ["updated_at", "2015-02-19 15:04:23.904591"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2199"], ["name", "ipsam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:23.910950"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Ut qui omnis eum et libero."], ["total_all_taxes", 779.0], ["updated_at", "2015-02-19 15:04:23.910950"], ["vat", 38.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7174"], ["name", "quis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:23.917332"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Voluptate qui occaecati fugit sed et repudiandae similique."], ["total_all_taxes", 281.0], ["updated_at", "2015-02-19 15:04:23.917332"], ["vat", 9.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4144"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:23.924934"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ut quaerat perferendis voluptatem vel et eos assumenda."], ["total_all_taxes", 218.0], ["updated_at", "2015-02-19 15:04:23.924934"], ["vat", 26.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5611"], ["name", "eos"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:23.931595"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Aspernatur voluptatem sed vel omnis."], ["total_all_taxes", 618.0], ["updated_at", "2015-02-19 15:04:23.931595"], ["vat", 114.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5615"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:23.937865"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Unde recusandae omnis."], ["total_all_taxes", 607.0], ["updated_at", "2015-02-19 15:04:23.937865"], ["vat", 8.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 11ms (Views: 8.4ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 15:04:24.097208"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7612"], ["name", "similique"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:24.190662"], ["date", "2015-02-19"], ["name", "Nemo sed expedita harum."], ["state", "new"], ["updated_at", "2015-02-19 15:04:24.190662"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9351"], ["name", "culpa"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:24.196900"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Temporibus veniam ut cumque qui iusto."], ["total_all_taxes", 935.0], ["updated_at", "2015-02-19 15:04:24.196900"], ["vat", 181.0]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0426"], ["name", "beatae"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:24.204321"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Sint blanditiis autem sunt numquam."], ["total_all_taxes", 633.0], ["updated_at", "2015-02-19 15:04:24.204321"], ["vat", 65.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5882"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:24.212622"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Possimus assumenda quo sed."], ["total_all_taxes", 611.0], ["updated_at", "2015-02-19 15:04:24.212622"], ["vat", 15.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.2ms) Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (69.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (73.8ms) Completed 200 OK in 79ms (Views: 76.5ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-17", "category_id"=>"2", "total_all_taxes"=>"935.0", "vat"=>"181.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 15:04:24.440687"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6613"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:24.532852"], ["date", "2015-02-19"], ["name", "Dolores quasi vel quas laborum doloremque autem magni."], ["state", "new"], ["updated_at", "2015-02-19 15:04:24.532852"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7424"], ["name", "minus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.539207"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Et ipsa qui dolores temporibus illo doloremque et."], ["total_all_taxes", 776.0], ["updated_at", "2015-02-19 15:04:24.539207"], ["vat", 141.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8853"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:24.545990"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Nobis architecto ad ullam ratione."], ["total_all_taxes", 174.0], ["updated_at", "2015-02-19 15:04:24.545990"], ["vat", 33.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2685"], ["name", "dolorum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.551771"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Non nulla aspernatur ratione."], ["total_all_taxes", 471.0], ["updated_at", "2015-02-19 15:04:24.551771"], ["vat", 94.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4842"], ["name", "sint"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.559418"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Commodi quis ullam."], ["total_all_taxes", 996.0], ["updated_at", "2015-02-19 15:04:24.559418"], ["vat", 95.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 15:04:24.640789"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60787/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.2ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 1.1ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8166"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:24.731221"], ["date", "2015-02-19"], ["name", "Et omnis sed fugiat voluptate."], ["state", "new"], ["updated_at", "2015-02-19 15:04:24.731221"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3878"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:24.737541"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Sit veniam itaque cum maxime eius."], ["total_all_taxes", 796.0], ["updated_at", "2015-02-19 15:04:24.737541"], ["vat", 108.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4711"], ["name", "consectetur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:24.745155"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Odio et iste facere pariatur in."], ["total_all_taxes", 424.0], ["updated_at", "2015-02-19 15:04:24.745155"], ["vat", 17.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8814"], ["name", "reprehenderit"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.751007"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Ut dignissimos architecto et dolorum aliquam."], ["total_all_taxes", 868.0], ["updated_at", "2015-02-19 15:04:24.751007"], ["vat", 3.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9883"], ["name", "placeat"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.757551"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Sapiente animi a voluptate dolor."], ["total_all_taxes", 923.0], ["updated_at", "2015-02-19 15:04:24.757551"], ["vat", 65.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 15:04:24.839718"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60787/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.4ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 1.1ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5348"], ["name", "culpa"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:24.926256"], ["date", "2015-02-19"], ["name", "At ad quos."], ["state", "new"], ["updated_at", "2015-02-19 15:04:24.926256"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5634"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:24.931972"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Velit nihil hic nihil dolore."], ["total_all_taxes", 159.0], ["updated_at", "2015-02-19 15:04:24.931972"], ["vat", 26.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3264"], ["name", "ducimus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.938653"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Eligendi asperiores maiores quasi inventore."], ["total_all_taxes", 892.0], ["updated_at", "2015-02-19 15:04:24.938653"], ["vat", 99.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1467"], ["name", "labore"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:24.945919"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Sit dolores nihil sed et provident dolor."], ["total_all_taxes", 454.0], ["updated_at", "2015-02-19 15:04:24.945919"], ["vat", 43.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9469"], ["name", "dignissimos"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:24.951878"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Illum veritatis quos tempora facilis."], ["total_all_taxes", 132.0], ["updated_at", "2015-02-19 15:04:24.951878"], ["vat", 20.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8942"], ["name", "necessitatibus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:24.958057"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Itaque quod id odit explicabo velit vel commodi."], ["total_all_taxes", 916.0], ["updated_at", "2015-02-19 15:04:24.958057"], ["vat", 2.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.7ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6398"], ["name", "magni"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1916"], ["name", "sint"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.2ms) DELETE FROM "expense_gun_expenses";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7129"], ["name", "unde"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:25.122380"], ["date", "2015-02-19"], ["name", "Omnis non vero nostrum non consectetur ut."], ["state", "submited"], ["updated_at", "2015-02-19 15:04:25.122380"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4428"], ["name", "perferendis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:04:25.129104"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Accusamus saepe impedit quidem rerum libero."], ["total_all_taxes", 222.0], ["updated_at", "2015-02-19 15:04:25.129104"], ["vat", 19.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8036"], ["name", "ea"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:25.135203"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Enim quibusdam voluptas."], ["total_all_taxes", 160.0], ["updated_at", "2015-02-19 15:04:25.135203"], ["vat", 32.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1491"], ["name", "ratione"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:25.142098"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Sed voluptas provident sit dolorum."], ["total_all_taxes", 111.0], ["updated_at", "2015-02-19 15:04:25.142098"], ["vat", 6.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4969"], ["name", "distinctio"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:25.148456"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Sunt mollitia voluptatibus ut."], ["total_all_taxes", 242.0], ["updated_at", "2015-02-19 15:04:25.148456"], ["vat", 32.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.5ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 15:04:25.231024"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.7ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8402"], ["name", "neque"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:04:25.318904"], ["date", "2015-02-19"], ["name", "Debitis et molestiae consequatur excepturi error."], ["state", "submited"], ["updated_at", "2015-02-19 15:04:25.318904"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8979"], ["name", "temporibus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:25.325147"], ["date", "2015-01-20"], ["expense_id", 1], ["name", "Et sed porro quia."], ["total_all_taxes", 471.0], ["updated_at", "2015-02-19 15:04:25.325147"], ["vat", 39.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6721"], ["name", "molestiae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:04:25.331869"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Qui voluptas laboriosam deserunt nemo et id amet."], ["total_all_taxes", 345.0], ["updated_at", "2015-02-19 15:04:25.331869"], ["vat", 58.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2966"], ["name", "delectus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 15:04:25.337483"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Voluptas et optio enim placeat."], ["total_all_taxes", 585.0], ["updated_at", "2015-02-19 15:04:25.337483"], ["vat", 31.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3356"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 15:04:25.344916"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Et alias ea quasi sed aut explicabo."], ["total_all_taxes", 969.0], ["updated_at", "2015-02-19 15:04:25.344916"], ["vat", 192.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.1ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 1.5ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (1.0ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 15:04:25.431908"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:60787/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.1ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:60787/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:04:25 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.7ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.7ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2316"], ["name", "explicabo"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9515"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3305"], ["name", "magnam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1388"], ["name", "suscipit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2307"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6498"], ["name", "velit"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4867"], ["name", "earum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5243"], ["name", "harum"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2418"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2060"], ["name", "magni"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3264"], ["name", "accusantium"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6166"], ["name", "aperiam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7341"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7288"], ["name", "non"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1616"], ["name", "aliquam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:44:54.094661"], ["date", "2015-02-19"], ["name", "Aut error aperiam."], ["state", "new"], ["updated_at", "2015-02-19 15:44:54.094661"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8604"], ["name", "aut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:44:54.100340"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Eius perferendis optio consectetur velit occaecati ducimus."], ["total_all_taxes", 606.0], ["updated_at", "2015-02-19 15:44:54.100340"], ["vat", 2.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9546"], ["name", "ducimus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:44:54.104358"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Est aut ea."], ["total_all_taxes", 861.0], ["updated_at", "2015-02-19 15:44:54.104358"], ["vat", 79.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7413"], ["name", "nihil"], ["vat_deductible", "t"]]  (2.1ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:45:10 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (115.1ms) Completed 200 OK in 271ms (Views: 266.7ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 16:45:11 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (341.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (425.6ms) Completed 200 OK in 435ms (Views: 429.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:45:11 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:11.834191"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 15:45:11.834191"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:11 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (97.4ms) Completed 200 OK in 103ms (Views: 101.2ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (25.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (88.0ms) Completed 200 OK in 112ms (Views: 92.5ms | ActiveRecord: 0.9ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:12.304366"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 15:45:12.304366"], ["vat", 20.0]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses/1 Completed 302 Found in 12ms (ActiveRecord: 2.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.6ms)  (2.2ms) DELETE FROM "expense_gun_categories";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.2ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (4.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.5ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8148"], ["name", "soluta"], ["vat_deductible", "t"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:12.425683"], ["date", "2015-02-19"], ["name", "In consequatur et et qui eum et est."], ["state", "new"], ["updated_at", "2015-02-19 15:45:12.425683"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3124"], ["name", "enim"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:45:12.437344"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Et natus pariatur nihil quis minima."], ["total_all_taxes", 456.0], ["updated_at", "2015-02-19 15:45:12.437344"], ["vat", 89.0]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7360"], ["name", "beatae"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:45:12.452172"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Explicabo tempore quis sunt ea."], ["total_all_taxes", 573.0], ["updated_at", "2015-02-19 15:45:12.452172"], ["vat", 52.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4815"], ["name", "corporis"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:12.460455"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Quos id et similique aut consequatur est."], ["total_all_taxes", 684.0], ["updated_at", "2015-02-19 15:45:12.460455"], ["vat", 99.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.7ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 15:45:12.660895"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.8ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.7ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2521"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:12.759507"], ["date", "2015-02-19"], ["name", "Temporibus tempore ratione soluta accusamus sint."], ["state", "new"], ["updated_at", "2015-02-19 15:45:12.759507"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6678"], ["name", "optio"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:12.766456"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Enim veritatis hic culpa minus nulla odit eos."], ["total_all_taxes", 748.0], ["updated_at", "2015-02-19 15:45:12.766456"], ["vat", 59.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8503"], ["name", "illum"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:12.773291"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Vitae omnis nisi sint quis fuga iure recusandae."], ["total_all_taxes", 667.0], ["updated_at", "2015-02-19 15:45:12.773291"], ["vat", 82.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7972"], ["name", "alias"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:12.779452"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Praesentium tenetur rem cumque possimus quod et consequatur."], ["total_all_taxes", 335.0], ["updated_at", "2015-02-19 15:45:12.779452"], ["vat", 18.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 16:45:12 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (71.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (76.3ms) Completed 200 OK in 81ms (Views: 78.8ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-30", "category_id"=>"2", "total_all_taxes"=>"748.0", "vat"=>"59.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 15:45:13.042975"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses/1 Completed 302 Found in 13ms (ActiveRecord: 3.5ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.7ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8643"], ["name", "at"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:13.138349"], ["date", "2015-02-19"], ["name", "Iste est ducimus sit."], ["state", "new"], ["updated_at", "2015-02-19 15:45:13.138349"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8845"], ["name", "quia"], ["vat_deductible", "t"]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.148748"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Cum natus eum quia consequuntur."], ["total_all_taxes", 224.0], ["updated_at", "2015-02-19 15:45:13.148748"], ["vat", 36.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3537"], ["name", "vitae"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.156411"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Et ut quis est dolores."], ["total_all_taxes", 260.0], ["updated_at", "2015-02-19 15:45:13.156411"], ["vat", 3.0]]  (1.4ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8514"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.166877"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Iusto iste assumenda voluptatem officiis consequuntur."], ["total_all_taxes", 113.0], ["updated_at", "2015-02-19 15:45:13.166877"], ["vat", 5.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4816"], ["name", "modi"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:45:13.174929"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Reprehenderit voluptas repudiandae repellendus et accusamus illo autem."], ["total_all_taxes", 559.0], ["updated_at", "2015-02-19 15:45:13.174929"], ["vat", 32.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.4ms) Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 2.3ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 15:45:13.279860"]]  (1.8ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.0ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 1.5ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6635"], ["name", "similique"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:13.375724"], ["date", "2015-02-19"], ["name", "Necessitatibus sit inventore labore consequatur quia adipisci."], ["state", "new"], ["updated_at", "2015-02-19 15:45:13.375724"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3268"], ["name", "facere"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:45:13.382090"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Culpa tempora sed nesciunt perferendis sint dolores."], ["total_all_taxes", 224.0], ["updated_at", "2015-02-19 15:45:13.382090"], ["vat", 37.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8464"], ["name", "minima"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.389014"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Quod inventore velit sunt ratione sit."], ["total_all_taxes", 757.0], ["updated_at", "2015-02-19 15:45:13.389014"], ["vat", 138.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 15:45:13.471364"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 1.4ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5175"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:13.561199"], ["date", "2015-02-19"], ["name", "Iste laborum architecto ad sunt sint labore iure."], ["state", "new"], ["updated_at", "2015-02-19 15:45:13.561199"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2465"], ["name", "ducimus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:13.567198"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Quae saepe sed quia."], ["total_all_taxes", 145.0], ["updated_at", "2015-02-19 15:45:13.567198"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9265"], ["name", "expedita"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.574253"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Assumenda odio officia iusto possimus voluptatem."], ["total_all_taxes", 822.0], ["updated_at", "2015-02-19 15:45:13.574253"], ["vat", 59.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.2ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.5ms)  (2.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8543"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4486"], ["name", "eos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7826"], ["name", "a"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:13.740070"], ["date", "2015-02-19"], ["name", "Et aliquid doloribus aperiam est voluptas qui."], ["state", "submited"], ["updated_at", "2015-02-19 15:45:13.740070"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7168"], ["name", "asperiores"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.750960"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Laborum non similique deleniti."], ["total_all_taxes", 926.0], ["updated_at", "2015-02-19 15:45:13.750960"], ["vat", 111.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8677"], ["name", "inventore"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:45:13.758516"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Vel nostrum aut aut quia sequi."], ["total_all_taxes", 586.0], ["updated_at", "2015-02-19 15:45:13.758516"], ["vat", 28.0]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0428"], ["name", "aut"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:13.770952"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Adipisci voluptates vel."], ["total_all_taxes", 291.0], ["updated_at", "2015-02-19 15:45:13.770952"], ["vat", 18.0]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5477"], ["name", "similique"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:13.784838"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Aut qui itaque dolorem quo aliquam."], ["total_all_taxes", 636.0], ["updated_at", "2015-02-19 15:45:13.784838"], ["vat", 101.0]]  (1.2ms) commit transaction  (0.3ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5842"], ["name", "ipsum"], ["vat_deductible", "t"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-19 15:45:13.798791"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Consequuntur magnam odio sunt sunt."], ["total_all_taxes", 660.0], ["updated_at", "2015-02-19 15:45:13.798791"], ["vat", 38.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (14.6ms) Completed 200 OK in 17ms (Views: 14.4ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 15:45:13.893039"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:45:13 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 1.0ms)  (0.8ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.5ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.4ms) DELETE FROM "expense_gun_expenses";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (2.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8236"], ["name", "dolores"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:45:13.992812"], ["date", "2015-02-19"], ["name", "Sint et maiores."], ["state", "submited"], ["updated_at", "2015-02-19 15:45:13.992812"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8346"], ["name", "vero"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:45:14.001845"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Laboriosam velit distinctio."], ["total_all_taxes", 977.0], ["updated_at", "2015-02-19 15:45:14.001845"], ["vat", 66.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1821"], ["name", "quas"], ["vat_deductible", "t"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:45:14.009803"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Esse quasi ducimus rerum fugiat quos molestias."], ["total_all_taxes", 639.0], ["updated_at", "2015-02-19 15:45:14.009803"], ["vat", 22.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:45:14 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.3ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.3ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 16:45:14 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 15:45:14.092209"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:62023/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:45:14 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:45:14 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.5ms) Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.8ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.4ms) DELETE FROM "expense_gun_expenses";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9743"], ["name", "sint"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2377"], ["name", "neque"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5207"], ["name", "molestiae"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4508"], ["name", "ut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8847"], ["name", "sed"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8718"], ["name", "velit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1935"], ["name", "assumenda"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7709"], ["name", "magnam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3285"], ["name", "porro"], ["vat_deductible", "t"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1112"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7960"], ["name", "odit"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2450"], ["name", "nisi"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0614"], ["name", "dolor"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3471"], ["name", "sint"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4344"], ["name", "sed"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:39.935006"], ["date", "2015-02-19"], ["name", "Saepe sit architecto tenetur quibusdam sint."], ["state", "new"], ["updated_at", "2015-02-19 15:56:39.935006"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2571"], ["name", "iure"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:39.941874"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Dignissimos odit rem et veniam et qui."], ["total_all_taxes", 537.0], ["updated_at", "2015-02-19 15:56:39.941874"], ["vat", 39.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7173"], ["name", "ut"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:39.946662"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Modi expedita ducimus accusamus qui architecto sit."], ["total_all_taxes", 364.0], ["updated_at", "2015-02-19 15:56:39.946662"], ["vat", 15.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1475"], ["name", "explicabo"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:39.952503"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Nemo quia recusandae placeat."], ["total_all_taxes", 783.0], ["updated_at", "2015-02-19 15:56:39.952503"], ["vat", 128.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0685"], ["name", "veritatis"], ["vat_deductible", "t"]]  (2.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (109.3ms) Completed 200 OK in 232ms (Views: 228.4ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 16:56:54 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (289.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (344.3ms) Completed 200 OK in 352ms (Views: 346.8ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:56:54 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:54.942693"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 15:56:54.942693"]]  (2.7ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (82.6ms) Completed 200 OK in 88ms (Views: 85.6ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 16:56:55 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (27.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (85.0ms) Completed 200 OK in 107ms (Views: 89.6ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 16:56:55 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:55.329348"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 15:56:55.329348"], ["vat", 20.0]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.1ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2321"], ["name", "nemo"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:57.446010"], ["date", "2015-02-19"], ["name", "Quam rerum voluptatem."], ["state", "new"], ["updated_at", "2015-02-19 15:56:57.446010"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6765"], ["name", "assumenda"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:57.453669"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Dolor vel blanditiis."], ["total_all_taxes", 726.0], ["updated_at", "2015-02-19 15:56:57.453669"], ["vat", 7.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8326"], ["name", "odit"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:57.461621"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Ut labore corrupti consequatur facere."], ["total_all_taxes", 184.0], ["updated_at", "2015-02-19 15:56:57.461621"], ["vat", 27.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0136"], ["name", "nisi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:57.467752"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Voluptas animi laboriosam numquam."], ["total_all_taxes", 259.0], ["updated_at", "2015-02-19 15:56:57.467752"], ["vat", 27.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.0ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.2ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 15:56:57.621904"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (60.8ms) Completed 200 OK in 63ms (Views: 61.6ms | ActiveRecord: 0.6ms)  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8492"], ["name", "vel"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:57.768338"], ["date", "2015-02-19"], ["name", "Quod voluptas quaerat nemo eius."], ["state", "new"], ["updated_at", "2015-02-19 15:56:57.768338"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7862"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:57.775353"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Voluptatum suscipit iure quisquam et."], ["total_all_taxes", 516.0], ["updated_at", "2015-02-19 15:56:57.775353"], ["vat", 102.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7470"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:57.781559"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Eos est saepe aut."], ["total_all_taxes", 633.0], ["updated_at", "2015-02-19 15:56:57.781559"], ["vat", 97.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.6ms) Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (15.1ms) Completed 200 OK in 20ms (Views: 17.4ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-13", "category_id"=>"2", "total_all_taxes"=>"516.0", "vat"=>"102.0", "company_part"=>"50.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 15:56:57.957661"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.6ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7437"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:58.047301"], ["date", "2015-02-19"], ["name", "Earum voluptatem aut praesentium aliquid veritatis."], ["state", "new"], ["updated_at", "2015-02-19 15:56:58.047301"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5223"], ["name", "nemo"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:58.053507"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Est officia nulla expedita."], ["total_all_taxes", 464.0], ["updated_at", "2015-02-19 15:56:58.053507"], ["vat", 9.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8312"], ["name", "esse"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:58.061742"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Enim sit laboriosam ipsa amet dolorem."], ["total_all_taxes", 875.0], ["updated_at", "2015-02-19 15:56:58.061742"], ["vat", 18.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5054"], ["name", "sequi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:58.067647"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ab hic quibusdam."], ["total_all_taxes", 857.0], ["updated_at", "2015-02-19 15:56:58.067647"], ["vat", 110.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8751"], ["name", "sunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:58.074293"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Ut id illum vitae officia eos."], ["total_all_taxes", 605.0], ["updated_at", "2015-02-19 15:56:58.074293"], ["vat", 49.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 15:56:58.157698"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62193/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 0.9ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5170"], ["name", "optio"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:58.250018"], ["date", "2015-02-19"], ["name", "Ratione omnis nobis ipsam amet molestiae odio rerum."], ["state", "new"], ["updated_at", "2015-02-19 15:56:58.250018"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8014"], ["name", "eaque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:58.256222"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Nemo odio debitis minus accusamus dolor."], ["total_all_taxes", 690.0], ["updated_at", "2015-02-19 15:56:58.256222"], ["vat", 46.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4074"], ["name", "aut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:58.263526"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Dignissimos voluptatem qui at tempora error voluptatem rerum."], ["total_all_taxes", 789.0], ["updated_at", "2015-02-19 15:56:58.263526"], ["vat", 131.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 15:56:58.346017"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62193/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.8ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5716"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:58.431626"], ["date", "2015-02-19"], ["name", "Atque sunt facere."], ["state", "new"], ["updated_at", "2015-02-19 15:56:58.431626"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7620"], ["name", "occaecati"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:58.497579"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Voluptatem harum eos impedit voluptatum."], ["total_all_taxes", 565.0], ["updated_at", "2015-02-19 15:56:58.497579"], ["vat", 62.0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6902"], ["name", "ipsam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:58.505082"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Eius nulla ut praesentium."], ["total_all_taxes", 360.0], ["updated_at", "2015-02-19 15:56:58.505082"], ["vat", 45.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2639"], ["name", "fugit"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:58.512020"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Adipisci non sunt nisi quia deserunt."], ["total_all_taxes", 704.0], ["updated_at", "2015-02-19 15:56:58.512020"], ["vat", 62.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3663"], ["name", "et"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-19 15:56:58.521087"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Qui tempore dicta est atque."], ["total_all_taxes", 249.0], ["updated_at", "2015-02-19 15:56:58.521087"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4631"], ["name", "enim"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:58.527794"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Est reiciendis at ut."], ["total_all_taxes", 166.0], ["updated_at", "2015-02-19 15:56:58.527794"], ["vat", 8.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.7ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3288"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9916"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.0ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.5ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1424"], ["name", "ea"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:58.633897"], ["date", "2015-02-19"], ["name", "At excepturi facere aspernatur quia."], ["state", "submited"], ["updated_at", "2015-02-19 15:56:58.633897"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3883"], ["name", "autem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:56:58.640111"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Eius qui dolorem accusamus nesciunt veniam."], ["total_all_taxes", 425.0], ["updated_at", "2015-02-19 15:56:58.640111"], ["vat", 62.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1284"], ["name", "quasi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:56:58.646435"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Temporibus dolor et tenetur iure ab reiciendis distinctio."], ["total_all_taxes", 856.0], ["updated_at", "2015-02-19 15:56:58.646435"], ["vat", 84.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 15:56:58.729547"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.5ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.9ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8071"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:56:58.810330"], ["date", "2015-02-19"], ["name", "Non quia est."], ["state", "submited"], ["updated_at", "2015-02-19 15:56:58.810330"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6725"], ["name", "maxime"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:58.816241"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Officiis non et exercitationem deserunt non."], ["total_all_taxes", 799.0], ["updated_at", "2015-02-19 15:56:58.816241"], ["vat", 124.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3653"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:56:58.823071"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Eum aut possimus veritatis nulla."], ["total_all_taxes", 291.0], ["updated_at", "2015-02-19 15:56:58.823071"], ["vat", 22.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 15:56:58.913910"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:62193/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62193/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:56:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4615"], ["name", "libero"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8045"], ["name", "fuga"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9742"], ["name", "facilis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7478"], ["name", "laborum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8178"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3445"], ["name", "suscipit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7453"], ["name", "modi"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5242"], ["name", "iusto"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6453"], ["name", "doloribus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0857"], ["name", "iste"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5140"], ["name", "sit"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4038"], ["name", "a"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4318"], ["name", "architecto"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7655"], ["name", "aut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2286"], ["name", "aperiam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:34.923517"], ["date", "2015-02-19"], ["name", "Culpa provident voluptates et voluptas repellendus maiores sequi."], ["state", "new"], ["updated_at", "2015-02-19 15:58:34.923517"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6870"], ["name", "est"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:34.929276"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Aut vero molestias tenetur aspernatur."], ["total_all_taxes", 518.0], ["updated_at", "2015-02-19 15:58:34.929276"], ["vat", 91.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4652"], ["name", "nobis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:34.934343"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Fugit fugiat maiores vel accusantium corporis quia."], ["total_all_taxes", 956.0], ["updated_at", "2015-02-19 15:58:34.934343"], ["vat", 7.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8153"], ["name", "praesentium"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:34.939979"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Sed aut expedita suscipit est."], ["total_all_taxes", 430.0], ["updated_at", "2015-02-19 15:58:34.939979"], ["vat", 72.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2040"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:34.944616"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Placeat sed fuga architecto eligendi."], ["total_all_taxes", 791.0], ["updated_at", "2015-02-19 15:58:34.944616"], ["vat", 131.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6177"], ["name", "vel"], ["vat_deductible", "f"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:58:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (106.3ms) Completed 200 OK in 224ms (Views: 220.2ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-19 16:58:49 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (305.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (311.1ms) Completed 200 OK in 320ms (Views: 314.0ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:58:49 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:49.729011"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-19 15:58:49.729011"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:49 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (88.9ms) Completed 200 OK in 94ms (Views: 92.1ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-19 16:58:49 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (68.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (74.4ms) Completed 200 OK in 100ms (Views: 79.6ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:50.116918"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 15:58:50.116918"], ["vat", 20.0]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1263"], ["name", "iure"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:50.209744"], ["date", "2015-02-19"], ["name", "Repudiandae consequatur accusantium aut voluptatem sit odit."], ["state", "new"], ["updated_at", "2015-02-19 15:58:50.209744"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7894"], ["name", "porro"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:50.216424"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Excepturi voluptate maxime."], ["total_all_taxes", 648.0], ["updated_at", "2015-02-19 15:58:50.216424"], ["vat", 86.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0225"], ["name", "sint"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:50.222847"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Natus rem ut nihil iure."], ["total_all_taxes", 815.0], ["updated_at", "2015-02-19 15:58:50.222847"], ["vat", 55.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7216"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:50.229067"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Et voluptate error ducimus porro."], ["total_all_taxes", 860.0], ["updated_at", "2015-02-19 15:58:50.229067"], ["vat", 17.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3055"], ["name", "sit"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:50.236352"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Dignissimos nostrum nesciunt aut."], ["total_all_taxes", 431.0], ["updated_at", "2015-02-19 15:58:50.236352"], ["vat", 49.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-19"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-19 15:58:50.392485"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.7ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5394"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:50.491189"], ["date", "2015-02-19"], ["name", "Ipsa nihil nam doloremque."], ["state", "new"], ["updated_at", "2015-02-19 15:58:50.491189"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4273"], ["name", "natus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:50.498016"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Iusto dolores sequi nam illum."], ["total_all_taxes", 630.0], ["updated_at", "2015-02-19 15:58:50.498016"], ["vat", 93.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3088"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:50.504569"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Aperiam ut ut."], ["total_all_taxes", 114.0], ["updated_at", "2015-02-19 15:58:50.504569"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7542"], ["name", "enim"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:50.511614"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Porro accusantium non et voluptas magni veritatis quia."], ["total_all_taxes", 892.0], ["updated_at", "2015-02-19 15:58:50.511614"], ["vat", 117.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4836"], ["name", "deserunt"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:50.518413"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Est optio aliquid ab non."], ["total_all_taxes", 499.0], ["updated_at", "2015-02-19 15:58:50.518413"], ["vat", 43.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9674"], ["name", "voluptates"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:50.524747"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Est laudantium et voluptates rerum incidunt cumque."], ["total_all_taxes", 503.0], ["updated_at", "2015-02-19 15:58:50.524747"], ["vat", 25.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.4ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.7ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (69.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (73.7ms) Completed 200 OK in 79ms (Views: 76.3ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-12", "category_id"=>"2", "total_all_taxes"=>"630.0", "vat"=>"93.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-19 15:58:50.760433"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.4ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.9ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4223"], ["name", "nobis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:50.857428"], ["date", "2015-02-19"], ["name", "Aut facilis autem veniam."], ["state", "new"], ["updated_at", "2015-02-19 15:58:50.857428"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5646"], ["name", "error"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:50.863818"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Est accusamus provident reprehenderit illo consequuntur."], ["total_all_taxes", 100.0], ["updated_at", "2015-02-19 15:58:50.863818"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4735"], ["name", "quis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:50.870315"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Sed omnis perspiciatis magnam animi sapiente."], ["total_all_taxes", 441.0], ["updated_at", "2015-02-19 15:58:50.870315"], ["vat", 87.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1655"], ["name", "amet"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:50.876187"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Minima exercitationem et laboriosam quasi deleniti possimus a."], ["total_all_taxes", 533.0], ["updated_at", "2015-02-19 15:58:50.876187"], ["vat", 71.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7255"], ["name", "labore"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:50.882865"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Tempore beatae ut ratione."], ["total_all_taxes", 621.0], ["updated_at", "2015-02-19 15:58:50.882865"], ["vat", 22.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-19 15:58:50.964187"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62245/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:58:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2318"], ["name", "et"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:51.055877"], ["date", "2015-02-19"], ["name", "Tempore debitis aut ea quo consequatur consequatur veritatis."], ["state", "new"], ["updated_at", "2015-02-19 15:58:51.055877"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6276"], ["name", "totam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:51.062199"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Commodi sed numquam enim nihil nihil doloribus qui."], ["total_all_taxes", 755.0], ["updated_at", "2015-02-19 15:58:51.062199"], ["vat", 66.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7758"], ["name", "a"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:51.068949"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Dolore eaque ea tenetur molestiae nisi officia."], ["total_all_taxes", 220.0], ["updated_at", "2015-02-19 15:58:51.068949"], ["vat", 9.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-19 15:58:51.152039"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62245/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (5.9ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8421"], ["name", "molestiae"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:51.237011"], ["date", "2015-02-19"], ["name", "Maiores porro est quia quibusdam."], ["state", "new"], ["updated_at", "2015-02-19 15:58:51.237011"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3677"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:51.243423"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Consequuntur quidem sint."], ["total_all_taxes", 849.0], ["updated_at", "2015-02-19 15:58:51.243423"], ["vat", 81.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6415"], ["name", "non"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:51.250595"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Expedita at excepturi nam tempore modi dignissimos reprehenderit."], ["total_all_taxes", 289.0], ["updated_at", "2015-02-19 15:58:51.250595"], ["vat", 31.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1167"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:51.257101"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Nemo aliquam error fuga."], ["total_all_taxes", 818.0], ["updated_at", "2015-02-19 15:58:51.257101"], ["vat", 89.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2231"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-19 15:58:51.263216"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Aliquid eligendi quibusdam."], ["total_all_taxes", 200.0], ["updated_at", "2015-02-19 15:58:51.263216"], ["vat", 2.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3547"], ["name", "quae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:51.269493"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Quis et quaerat."], ["total_all_taxes", 611.0], ["updated_at", "2015-02-19 15:58:51.269493"], ["vat", 31.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 1.0ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2487"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1723"], ["name", "ipsa"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5673"], ["name", "quia"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:51.427760"], ["date", "2015-02-19"], ["name", "Modi dignissimos totam earum distinctio et."], ["state", "submited"], ["updated_at", "2015-02-19 15:58:51.427760"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3619"], ["name", "facilis"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:51.434308"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Quisquam aspernatur vero."], ["total_all_taxes", 893.0], ["updated_at", "2015-02-19 15:58:51.434308"], ["vat", 51.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5738"], ["name", "doloremque"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:51.440827"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Voluptate numquam corrupti."], ["total_all_taxes", 524.0], ["updated_at", "2015-02-19 15:58:51.440827"], ["vat", 17.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-19 15:58:51.521649"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.5ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1414"], ["name", "facere"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-19 15:58:51.609948"], ["date", "2015-02-19"], ["name", "Eos rerum dolores repellendus est consequatur nemo recusandae."], ["state", "submited"], ["updated_at", "2015-02-19 15:58:51.609948"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2741"], ["name", "dolorem"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-19 15:58:51.617164"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Porro incidunt ea est et assumenda quibusdam ut."], ["total_all_taxes", 145.0], ["updated_at", "2015-02-19 15:58:51.617164"], ["vat", 17.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2885"], ["name", "modi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:51.624134"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Cum placeat tempore esse deleniti exercitationem."], ["total_all_taxes", 190.0], ["updated_at", "2015-02-19 15:58:51.624134"], ["vat", 37.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2255"], ["name", "veniam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:51.631799"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Rem voluptatem temporibus quo laborum cum at."], ["total_all_taxes", 351.0], ["updated_at", "2015-02-19 15:58:51.631799"], ["vat", 40.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7231"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-19 15:58:51.638333"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Aliquid suscipit deserunt culpa eos necessitatibus dolorem."], ["total_all_taxes", 199.0], ["updated_at", "2015-02-19 15:58:51.638333"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3974"], ["name", "tempore"], ["vat_deductible", "t"]]  (4.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-19 15:58:51.650879"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Ipsam sit omnis."], ["total_all_taxes", 746.0], ["updated_at", "2015-02-19 15:58:51.650879"], ["vat", 56.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-19 15:58:51.732788"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:62245/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:62245/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-19 16:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.5ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.7ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3366"], ["name", "doloribus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2337"], ["name", "enim"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5078"], ["name", "ut"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7751"], ["name", "laudantium"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8225"], ["name", "veniam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6863"], ["name", "quae"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7352"], ["name", "quasi"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8844"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0333"], ["name", "voluptates"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1195"], ["name", "illo"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8505"], ["name", "ullam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3624"], ["name", "dicta"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5243"], ["name", "inventore"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1240"], ["name", "sit"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8787"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:29.475071"], ["date", "2015-02-20"], ["name", "Sed commodi velit aliquam tempore corrupti magnam."], ["state", "new"], ["updated_at", "2015-02-20 07:27:29.475071"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2356"], ["name", "est"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 75.0], ["created_at", "2015-02-20 07:27:29.481258"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Soluta eaque in et."], ["total_all_taxes", 410.0], ["updated_at", "2015-02-20 07:27:29.481258"], ["vat", 57.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2242"], ["name", "sit"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:29.486934"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Cumque architecto nisi odio tempore."], ["total_all_taxes", 768.0], ["updated_at", "2015-02-20 07:27:29.486934"], ["vat", 150.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3356"], ["name", "quo"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:29.491562"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Et veritatis vero est totam."], ["total_all_taxes", 858.0], ["updated_at", "2015-02-20 07:27:29.491562"], ["vat", 160.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5320"], ["name", "nobis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:29.495629"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Ab dolorem beatae dolor doloribus repellat eos unde."], ["total_all_taxes", 844.0], ["updated_at", "2015-02-20 07:27:29.495629"], ["vat", 6.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7452"], ["name", "velit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:29.499737"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Placeat rerum commodi sed aut."], ["total_all_taxes", 844.0], ["updated_at", "2015-02-20 07:27:29.499737"], ["vat", 104.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.2ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2664"], ["name", "ipsa"], ["vat_deductible", "f"]]  (2.3ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:27:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (110.8ms) Completed 200 OK in 256ms (Views: 252.2ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:27:45 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (303.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (360.6ms) Completed 200 OK in 369ms (Views: 363.4ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:27:46 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:46.459229"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:27:46.459229"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (89.6ms) Completed 200 OK in 95ms (Views: 92.5ms | ActiveRecord: 0.6ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6769"], ["name", "rem"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:48.661287"], ["date", "2015-02-20"], ["name", "Hic aut ut."], ["state", "new"], ["updated_at", "2015-02-20 07:27:48.661287"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7517"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:48.688429"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Et ut eligendi aperiam quas necessitatibus voluptatum."], ["total_all_taxes", 542.0], ["updated_at", "2015-02-20 07:27:48.688429"], ["vat", 92.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3977"], ["name", "sed"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:27:48.695391"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Sint aut laudantium voluptatibus aut."], ["total_all_taxes", 400.0], ["updated_at", "2015-02-20 07:27:48.695391"], ["vat", 73.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5980"], ["name", "et"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:48.702093"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Facilis perspiciatis molestias accusamus quas voluptatibus veritatis."], ["total_all_taxes", 836.0], ["updated_at", "2015-02-20 07:27:48.702093"], ["vat", 128.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.9ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:27:48 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.5ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:48 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:27:48.865581"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2165"], ["name", "porro"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:48.955700"], ["date", "2015-02-20"], ["name", "Aut non dolorum et sunt fugit fuga omnis."], ["state", "new"], ["updated_at", "2015-02-20 07:27:48.955700"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8794"], ["name", "nobis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:48.962707"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Saepe atque eos excepturi."], ["total_all_taxes", 393.0], ["updated_at", "2015-02-20 07:27:48.962707"], ["vat", 53.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3698"], ["name", "atque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:48.970974"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Ea dolorem distinctio libero."], ["total_all_taxes", 894.0], ["updated_at", "2015-02-20 07:27:48.970974"], ["vat", 86.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2696"], ["name", "optio"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:48.977423"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Sed libero at et."], ["total_all_taxes", 112.0], ["updated_at", "2015-02-20 07:27:48.977423"], ["vat", 17.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2455"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:48.984122"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Eligendi at voluptate quo sequi sunt sed."], ["total_all_taxes", 794.0], ["updated_at", "2015-02-20 07:27:48.984122"], ["vat", 7.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1676"], ["name", "sed"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:48.990220"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Vel sed dolore blanditiis aperiam repellendus nobis exercitationem."], ["total_all_taxes", 204.0], ["updated_at", "2015-02-20 07:27:48.990220"], ["vat", 23.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (66.4ms) Completed 200 OK in 69ms (Views: 66.8ms | ActiveRecord: 0.9ms) ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (26.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (32.8ms) Completed 200 OK in 42ms (Views: 38.3ms | ActiveRecord: 0.7ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-13", "category_id"=>"2", "total_all_taxes"=>"393.0", "vat"=>"53.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:27:49.257276"]]  (0.7ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (16.7ms) Completed 200 OK in 21ms (Views: 17.4ms | ActiveRecord: 1.1ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6629"], ["name", "vel"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:49.362863"], ["date", "2015-02-20"], ["name", "Tenetur non mollitia et dolorem."], ["state", "new"], ["updated_at", "2015-02-20 07:27:49.362863"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3566"], ["name", "saepe"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:49.370664"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Et dolor nihil est."], ["total_all_taxes", 257.0], ["updated_at", "2015-02-20 07:27:49.370664"], ["vat", 33.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4884"], ["name", "ratione"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:49.378567"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Reiciendis veritatis temporibus rerum."], ["total_all_taxes", 229.0], ["updated_at", "2015-02-20 07:27:49.378567"], ["vat", 14.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3314"], ["name", "repellat"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:49.387460"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Recusandae temporibus error."], ["total_all_taxes", 340.0], ["updated_at", "2015-02-20 07:27:49.387460"], ["vat", 50.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7344"], ["name", "dolorum"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:49.393503"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Voluptate fuga commodi molestiae."], ["total_all_taxes", 386.0], ["updated_at", "2015-02-20 07:27:49.393503"], ["vat", 76.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.7ms) Completed 200 OK in 13ms (Views: 11.7ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:27:49.482649"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50601/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.4ms) Completed 200 OK in 15ms (Views: 13.1ms | ActiveRecord: 1.0ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5468"], ["name", "quaerat"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:49.587597"], ["date", "2015-02-20"], ["name", "A porro voluptas assumenda expedita."], ["state", "new"], ["updated_at", "2015-02-20 07:27:49.587597"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3127"], ["name", "cupiditate"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:49.594095"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Maxime nihil est quis illo."], ["total_all_taxes", 993.0], ["updated_at", "2015-02-20 07:27:49.594095"], ["vat", 38.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1143"], ["name", "sint"], ["vat_deductible", "t"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:27:49.603981"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Dolor odio ut nisi rerum aut laudantium porro."], ["total_all_taxes", 722.0], ["updated_at", "2015-02-20 07:27:49.603981"], ["vat", 130.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.1ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:27:49.692021"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50601/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 64ms (Views: 8.9ms | ActiveRecord: 1.0ms)  (2.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1431"], ["name", "aliquam"], ["vat_deductible", "f"]]  (5.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:49.848133"], ["date", "2015-02-20"], ["name", "Molestiae ad hic ea voluptatem molestias tenetur."], ["state", "new"], ["updated_at", "2015-02-20 07:27:49.848133"]]  (2.4ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5022"], ["name", "laborum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:49.858902"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Quae quia illo dolores omnis asperiores tempora."], ["total_all_taxes", 621.0], ["updated_at", "2015-02-20 07:27:49.858902"], ["vat", 118.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6829"], ["name", "animi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:27:49.866514"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Voluptatem dolor ullam."], ["total_all_taxes", 274.0], ["updated_at", "2015-02-20 07:27:49.866514"], ["vat", 19.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2929"], ["name", "quod"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:27:49.873168"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Soluta ea aut suscipit."], ["total_all_taxes", 758.0], ["updated_at", "2015-02-20 07:27:49.873168"], ["vat", 12.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9982"], ["name", "illo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:49.879803"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Nemo architecto aliquid."], ["total_all_taxes", 711.0], ["updated_at", "2015-02-20 07:27:49.879803"], ["vat", 1.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:49 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.6ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7279"], ["name", "sed"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4816"], ["name", "voluptate"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2484"], ["name", "nisi"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:49.988170"], ["date", "2015-02-20"], ["name", "Libero impedit non quis ut."], ["state", "submited"], ["updated_at", "2015-02-20 07:27:49.988170"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5547"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:49.994230"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Totam ut fugiat ducimus."], ["total_all_taxes", 850.0], ["updated_at", "2015-02-20 07:27:49.994230"], ["vat", 128.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4477"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:50.002419"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Quod et vel nihil dolore ad."], ["total_all_taxes", 158.0], ["updated_at", "2015-02-20 07:27:50.002419"], ["vat", 30.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.4ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 1.3ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:27:50.093444"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.9ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.6ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7328"], ["name", "animi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:27:50.179121"], ["date", "2015-02-20"], ["name", "Porro pariatur nostrum at dolorem."], ["state", "submited"], ["updated_at", "2015-02-20 07:27:50.179121"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4125"], ["name", "iusto"], ["vat_deductible", "f"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:50.186345"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Unde ut rerum possimus est laudantium omnis."], ["total_all_taxes", 355.0], ["updated_at", "2015-02-20 07:27:50.186345"], ["vat", 45.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9847"], ["name", "dicta"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:27:50.193031"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Quis modi ut reiciendis."], ["total_all_taxes", 531.0], ["updated_at", "2015-02-20 07:27:50.193031"], ["vat", 62.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1152"], ["name", "doloremque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:27:50.198984"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Rerum nostrum sed sunt."], ["total_all_taxes", 541.0], ["updated_at", "2015-02-20 07:27:50.198984"], ["vat", 55.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.9ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:27:50.292520"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50601/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50601/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:27:50 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.0ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 1.3ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4110"], ["name", "error"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4810"], ["name", "quos"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7726"], ["name", "quia"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7735"], ["name", "sit"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1597"], ["name", "nesciunt"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0416"], ["name", "qui"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1513"], ["name", "dolorem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9683"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3687"], ["name", "officia"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1248"], ["name", "facere"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3151"], ["name", "in"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4607"], ["name", "adipisci"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7686"], ["name", "rem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6722"], ["name", "possimus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5452"], ["name", "recusandae"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:01.664237"], ["date", "2015-02-20"], ["name", "Voluptatem quisquam aut rem ipsum."], ["state", "new"], ["updated_at", "2015-02-20 07:29:01.664237"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4054"], ["name", "et"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:01.674249"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Earum dignissimos eius temporibus voluptatem est."], ["total_all_taxes", 240.0], ["updated_at", "2015-02-20 07:29:01.674249"], ["vat", 34.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2248"], ["name", "sint"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:01.682246"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Delectus voluptates odit repudiandae laudantium commodi."], ["total_all_taxes", 806.0], ["updated_at", "2015-02-20 07:29:01.682246"], ["vat", 27.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7525"], ["name", "maiores"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:01.689745"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Beatae laboriosam rem dolorum mollitia amet consequuntur repudiandae."], ["total_all_taxes", 823.0], ["updated_at", "2015-02-20 07:29:01.689745"], ["vat", 38.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.2ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.2ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.2ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.2ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (4.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9391"], ["name", "aliquam"], ["vat_deductible", "f"]]  (1.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:29:15 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (102.7ms) Completed 200 OK in 218ms (Views: 213.9ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:29:15 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (323.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (328.6ms) Completed 200 OK in 336ms (Views: 331.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:29:15 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:15.722228"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:29:15.722228"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:15 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.5ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (85.2ms) Completed 200 OK in 91ms (Views: 88.5ms | ActiveRecord: 0.9ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8359"], ["name", "possimus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:15.894197"], ["date", "2015-02-20"], ["name", "Architecto eligendi quia eveniet."], ["state", "new"], ["updated_at", "2015-02-20 07:29:15.894197"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5214"], ["name", "iste"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:15.919053"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Et tempora at saepe."], ["total_all_taxes", 395.0], ["updated_at", "2015-02-20 07:29:15.919053"], ["vat", 47.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5932"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:15.926708"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Non est doloribus molestias explicabo soluta totam."], ["total_all_taxes", 715.0], ["updated_at", "2015-02-20 07:29:15.926708"], ["vat", 48.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3745"], ["name", "repellendus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:15.933802"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Ratione quod dolorem."], ["total_all_taxes", 692.0], ["updated_at", "2015-02-20 07:29:15.933802"], ["vat", 77.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:15 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.9ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:29:16.140862"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.4ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2251"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:16.228502"], ["date", "2015-02-20"], ["name", "Veritatis id consectetur sunt molestiae error quo."], ["state", "new"], ["updated_at", "2015-02-20 07:29:16.228502"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9664"], ["name", "veniam"], ["vat_deductible", "f"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:16.236362"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Explicabo earum reprehenderit."], ["total_all_taxes", 628.0], ["updated_at", "2015-02-20 07:29:16.236362"], ["vat", 99.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3485"], ["name", "est"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:29:16.245322"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Assumenda rerum dolorem molestiae et nostrum aut et."], ["total_all_taxes", 820.0], ["updated_at", "2015-02-20 07:29:16.245322"], ["vat", 123.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9670"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:16.253636"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Aperiam ullam rem minima fugiat."], ["total_all_taxes", 431.0], ["updated_at", "2015-02-20 07:29:16.253636"], ["vat", 38.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7334"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:16.259608"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Autem dolores et tempore doloremque."], ["total_all_taxes", 600.0], ["updated_at", "2015-02-20 07:29:16.259608"], ["vat", 87.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.4ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (24.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (30.4ms) Completed 200 OK in 37ms (Views: 34.6ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-08", "category_id"=>"2", "total_all_taxes"=>"628.0", "vat"=>"99.0", "company_part"=>"50.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:29:16.456706"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9070"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:16.549488"], ["date", "2015-02-20"], ["name", "Unde quia accusantium similique exercitationem magnam et."], ["state", "new"], ["updated_at", "2015-02-20 07:29:16.549488"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3475"], ["name", "omnis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:16.555812"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Pariatur quod qui esse quam nihil placeat."], ["total_all_taxes", 247.0], ["updated_at", "2015-02-20 07:29:16.555812"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8506"], ["name", "minus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:16.562542"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Enim ut deleniti dolores et at sapiente."], ["total_all_taxes", 472.0], ["updated_at", "2015-02-20 07:29:16.562542"], ["vat", 59.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8183"], ["name", "doloremque"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:16.570470"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Sed veritatis labore."], ["total_all_taxes", 376.0], ["updated_at", "2015-02-20 07:29:16.570470"], ["vat", 13.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.9ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:29:16.710451"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50643/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.1ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 1.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8465"], ["name", "qui"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:16.805962"], ["date", "2015-02-20"], ["name", "Qui sint omnis quod voluptas."], ["state", "new"], ["updated_at", "2015-02-20 07:29:16.805962"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7352"], ["name", "magni"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:16.812280"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Nesciunt occaecati vel deserunt accusantium ullam at ducimus."], ["total_all_taxes", 385.0], ["updated_at", "2015-02-20 07:29:16.812280"], ["vat", 39.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6833"], ["name", "consequuntur"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:16.819723"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Fuga quis perspiciatis dignissimos atque quo vel."], ["total_all_taxes", 704.0], ["updated_at", "2015-02-20 07:29:16.819723"], ["vat", 50.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2717"], ["name", "et"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:16.826187"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Sunt fugit reiciendis."], ["total_all_taxes", 894.0], ["updated_at", "2015-02-20 07:29:16.826187"], ["vat", 137.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:29:16.911037"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50643/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:29:16 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 1.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4527"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:16.997685"], ["date", "2015-02-20"], ["name", "Veritatis quos quia facilis voluptatem dolore sed et."], ["state", "new"], ["updated_at", "2015-02-20 07:29:16.997685"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9332"], ["name", "rem"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:29:17.004262"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Nulla aliquam voluptates id."], ["total_all_taxes", 561.0], ["updated_at", "2015-02-20 07:29:17.004262"], ["vat", 102.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5264"], ["name", "ratione"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:29:17.010744"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Facere quia et ab consequatur."], ["total_all_taxes", 307.0], ["updated_at", "2015-02-20 07:29:17.010744"], ["vat", 18.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.8ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1475"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4361"], ["name", "sit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1129"], ["name", "minima"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:17.110362"], ["date", "2015-02-20"], ["name", "Quam repudiandae facilis."], ["state", "submited"], ["updated_at", "2015-02-20 07:29:17.110362"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4224"], ["name", "sequi"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:17.118256"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Itaque et et labore aut unde pariatur."], ["total_all_taxes", 600.0], ["updated_at", "2015-02-20 07:29:17.118256"], ["vat", 92.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6268"], ["name", "aliquam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:17.124673"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Eum modi et non explicabo reiciendis ut."], ["total_all_taxes", 660.0], ["updated_at", "2015-02-20 07:29:17.124673"], ["vat", 51.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9796"], ["name", "iure"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:17.130463"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Voluptatem labore dolor velit dolorem ex sequi."], ["total_all_taxes", 778.0], ["updated_at", "2015-02-20 07:29:17.130463"], ["vat", 135.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2177"], ["name", "repellendus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:17.136854"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Tenetur quis blanditiis ut necessitatibus dolores."], ["total_all_taxes", 508.0], ["updated_at", "2015-02-20 07:29:17.136854"], ["vat", 89.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2878"], ["name", "laboriosam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:29:17.143339"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Voluptatibus porro unde."], ["total_all_taxes", 309.0], ["updated_at", "2015-02-20 07:29:17.143339"], ["vat", 59.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.1ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:29:17.228283"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.5ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8266"], ["name", "aut"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:29:17.377277"], ["date", "2015-02-20"], ["name", "Dolorem fugit laboriosam."], ["state", "submited"], ["updated_at", "2015-02-20 07:29:17.377277"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3079"], ["name", "asperiores"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:29:17.383546"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Qui deserunt dolores molestiae sed in."], ["total_all_taxes", 558.0], ["updated_at", "2015-02-20 07:29:17.383546"], ["vat", 73.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7052"], ["name", "asperiores"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:29:17.390074"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Autem mollitia et vel voluptas."], ["total_all_taxes", 364.0], ["updated_at", "2015-02-20 07:29:17.390074"], ["vat", 16.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:29:17.474764"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:50643/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50643/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:29:17 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.8ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6161"], ["name", "alias"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1884"], ["name", "praesentium"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4012"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0382"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2747"], ["name", "veritatis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6612"], ["name", "sed"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2342"], ["name", "corporis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3268"], ["name", "ipsum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2692"], ["name", "consequatur"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3583"], ["name", "ipsum"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4111"], ["name", "numquam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9125"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3886"], ["name", "ut"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7134"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6799"], ["name", "repudiandae"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:29.054739"], ["date", "2015-02-20"], ["name", "Officiis qui saepe."], ["state", "new"], ["updated_at", "2015-02-20 07:30:29.054739"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4934"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:29.060888"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Incidunt blanditiis hic ex eveniet voluptatem consequatur neque."], ["total_all_taxes", 167.0], ["updated_at", "2015-02-20 07:30:29.060888"], ["vat", 14.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7511"], ["name", "exercitationem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:29.065716"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Quia pariatur culpa."], ["total_all_taxes", 651.0], ["updated_at", "2015-02-20 07:30:29.065716"], ["vat", 9.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5046"], ["name", "consequuntur"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:29.070458"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Ex veritatis nobis reprehenderit provident."], ["total_all_taxes", 821.0], ["updated_at", "2015-02-20 07:30:29.070458"], ["vat", 90.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3933"], ["name", "tempora"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:29.074611"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Architecto tempore omnis nam consectetur aliquam."], ["total_all_taxes", 309.0], ["updated_at", "2015-02-20 07:30:29.074611"], ["vat", 54.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7655"], ["name", "explicabo"], ["vat_deductible", "t"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:30:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (106.8ms) Completed 200 OK in 220ms (Views: 216.4ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:30:42 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (308.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (314.6ms) Completed 200 OK in 323ms (Views: 318.0ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:30:43 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:43.140313"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:30:43.140313"]]  (4.9ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 5.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (82.5ms) Completed 200 OK in 89ms (Views: 86.4ms | ActiveRecord: 0.7ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0800"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:45.346952"], ["date", "2015-02-20"], ["name", "Ducimus pariatur possimus sit sed aspernatur numquam."], ["state", "new"], ["updated_at", "2015-02-20 07:30:45.346952"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5739"], ["name", "nulla"], ["vat_deductible", "f"]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:30:45.429475"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Error non esse reiciendis ex."], ["total_all_taxes", 855.0], ["updated_at", "2015-02-20 07:30:45.429475"], ["vat", 89.0]]  (3.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6143"], ["name", "libero"], ["vat_deductible", "t"]]  (5.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:45.444403"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Optio doloremque quasi laboriosam nostrum occaecati eveniet molestias."], ["total_all_taxes", 707.0], ["updated_at", "2015-02-20 07:30:45.444403"], ["vat", 114.0]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8185"], ["name", "totam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:45.454578"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Architecto omnis ut."], ["total_all_taxes", 734.0], ["updated_at", "2015-02-20 07:30:45.454578"], ["vat", 25.0]]  (7.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8763"], ["name", "est"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:45.469944"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Ut et explicabo voluptas repellendus quis."], ["total_all_taxes", 763.0], ["updated_at", "2015-02-20 07:30:45.469944"], ["vat", 79.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6410"], ["name", "qui"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:45.477337"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Et incidunt maiores."], ["total_all_taxes", 389.0], ["updated_at", "2015-02-20 07:30:45.477337"], ["vat", 72.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.0ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:30:45.644977"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6652"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:45.738563"], ["date", "2015-02-20"], ["name", "Numquam velit dolores culpa."], ["state", "new"], ["updated_at", "2015-02-20 07:30:45.738563"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5348"], ["name", "natus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:45.744883"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Eos eum in ullam a."], ["total_all_taxes", 455.0], ["updated_at", "2015-02-20 07:30:45.744883"], ["vat", 49.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4471"], ["name", "et"], ["vat_deductible", "f"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:45.752726"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Quisquam ipsa inventore voluptatem voluptas vel harum similique."], ["total_all_taxes", 294.0], ["updated_at", "2015-02-20 07:30:45.752726"], ["vat", 18.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1588"], ["name", "esse"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:45.758952"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Porro sequi nemo fuga eveniet error."], ["total_all_taxes", 541.0], ["updated_at", "2015-02-20 07:30:45.758952"], ["vat", 50.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1789"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:45.765117"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Ullam sit id."], ["total_all_taxes", 144.0], ["updated_at", "2015-02-20 07:30:45.765117"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5014"], ["name", "impedit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:45.771042"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Totam dolorem exercitationem rerum vero."], ["total_all_taxes", 588.0], ["updated_at", "2015-02-20 07:30:45.771042"], ["vat", 86.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.9ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.8ms) ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:30:45 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.9ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (79.7ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (85.4ms) Completed 200 OK in 92ms (Views: 88.9ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-23", "category_id"=>"2", "total_all_taxes"=>"455.0", "vat"=>"49.0", "company_part"=>"50.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:30:46.023445"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.2ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.8ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5588"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:46.117534"], ["date", "2015-02-20"], ["name", "Ullam et praesentium quia molestiae."], ["state", "new"], ["updated_at", "2015-02-20 07:30:46.117534"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1555"], ["name", "aliquam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.123609"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Iure culpa voluptatibus et quidem non."], ["total_all_taxes", 357.0], ["updated_at", "2015-02-20 07:30:46.123609"], ["vat", 53.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8698"], ["name", "provident"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.130333"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Dicta quia totam sit quis nemo velit."], ["total_all_taxes", 185.0], ["updated_at", "2015-02-20 07:30:46.130333"], ["vat", 7.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:30:46.215741"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.1ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50699/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.1ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 1.2ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3642"], ["name", "laborum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:46.312770"], ["date", "2015-02-20"], ["name", "Incidunt distinctio quaerat minus eligendi."], ["state", "new"], ["updated_at", "2015-02-20 07:30:46.312770"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8583"], ["name", "eveniet"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:30:46.318961"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Et officia temporibus libero cumque repellat ut dolorem."], ["total_all_taxes", 498.0], ["updated_at", "2015-02-20 07:30:46.318961"], ["vat", 94.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7563"], ["name", "laboriosam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.325388"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Sint qui voluptatem."], ["total_all_taxes", 972.0], ["updated_at", "2015-02-20 07:30:46.325388"], ["vat", 161.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:30:46.412046"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50699/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.8ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3140"], ["name", "animi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:46.502216"], ["date", "2015-02-20"], ["name", "Est nihil dolor qui velit."], ["state", "new"], ["updated_at", "2015-02-20 07:30:46.502216"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5683"], ["name", "non"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:46.508496"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Cumque modi ratione sed maxime."], ["total_all_taxes", 888.0], ["updated_at", "2015-02-20 07:30:46.508496"], ["vat", 139.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5588"], ["name", "officiis"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.515351"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Molestias a commodi et sunt soluta."], ["total_all_taxes", 726.0], ["updated_at", "2015-02-20 07:30:46.515351"], ["vat", 124.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6261"], ["name", "eum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:46.523409"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Ex ut quam et est."], ["total_all_taxes", 269.0], ["updated_at", "2015-02-20 07:30:46.523409"], ["vat", 14.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4481"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5203"], ["name", "qui"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6798"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:46.683007"], ["date", "2015-02-20"], ["name", "At omnis et qui totam quis quia."], ["state", "submited"], ["updated_at", "2015-02-20 07:30:46.683007"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3003"], ["name", "et"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.689756"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Reprehenderit qui delectus."], ["total_all_taxes", 382.0], ["updated_at", "2015-02-20 07:30:46.689756"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2627"], ["name", "similique"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.696021"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Ut ipsa magni tenetur est aut distinctio."], ["total_all_taxes", 323.0], ["updated_at", "2015-02-20 07:30:46.696021"], ["vat", 12.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3222"], ["name", "delectus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:30:46.702093"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Quis eum sapiente et."], ["total_all_taxes", 865.0], ["updated_at", "2015-02-20 07:30:46.702093"], ["vat", 80.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2637"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:46.709113"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Nihil sunt tempora et impedit."], ["total_all_taxes", 417.0], ["updated_at", "2015-02-20 07:30:46.709113"], ["vat", 20.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.8ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:30:46.794339"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.4ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8648"], ["name", "est"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:30:46.882898"], ["date", "2015-02-20"], ["name", "Quam laborum sed facere."], ["state", "submited"], ["updated_at", "2015-02-20 07:30:46.882898"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6542"], ["name", "atque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:30:46.889505"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Eos ut est."], ["total_all_taxes", 501.0], ["updated_at", "2015-02-20 07:30:46.889505"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0318"], ["name", "iusto"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:30:46.895915"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Et adipisci dolore."], ["total_all_taxes", 193.0], ["updated_at", "2015-02-20 07:30:46.895915"], ["vat", 13.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6194"], ["name", "cum"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:46.901615"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Voluptatem eum minima autem consequuntur in exercitationem eius."], ["total_all_taxes", 440.0], ["updated_at", "2015-02-20 07:30:46.901615"], ["vat", 66.0]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4564"], ["name", "id"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:30:46.909808"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Totam dicta earum libero veniam accusamus ut."], ["total_all_taxes", 783.0], ["updated_at", "2015-02-20 07:30:46.909808"], ["vat", 118.0]]  (0.6ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:30:46 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:30:46.993470"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50699/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:30:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50699/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:30:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 1.0ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8289"], ["name", "occaecati"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3260"], ["name", "omnis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6312"], ["name", "mollitia"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1727"], ["name", "exercitationem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2707"], ["name", "numquam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3683"], ["name", "eligendi"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8015"], ["name", "exercitationem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2858"], ["name", "vel"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4034"], ["name", "velit"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7353"], ["name", "rem"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2685"], ["name", "incidunt"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5466"], ["name", "aut"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8379"], ["name", "modi"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1946"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6538"], ["name", "magni"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:04.771116"], ["date", "2015-02-20"], ["name", "Aliquam veniam id ut tenetur architecto saepe."], ["state", "new"], ["updated_at", "2015-02-20 07:31:04.771116"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2681"], ["name", "a"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:04.777061"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Occaecati ut ratione."], ["total_all_taxes", 541.0], ["updated_at", "2015-02-20 07:31:04.777061"], ["vat", 31.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7706"], ["name", "sed"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:04.781991"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Cum perspiciatis dolor odit laudantium aut."], ["total_all_taxes", 913.0], ["updated_at", "2015-02-20 07:31:04.781991"], ["vat", 131.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5726"], ["name", "accusantium"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:04.787949"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Excepturi vel et distinctio atque."], ["total_all_taxes", 900.0], ["updated_at", "2015-02-20 07:31:04.787949"], ["vat", 29.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2833"], ["name", "amet"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:04.793210"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Consequatur sit ut culpa."], ["total_all_taxes", 937.0], ["updated_at", "2015-02-20 07:31:04.793210"], ["vat", 6.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5877"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:04.799256"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Perspiciatis et illo reiciendis dolorum."], ["total_all_taxes", 473.0], ["updated_at", "2015-02-20 07:31:04.799256"], ["vat", 34.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) [1mRELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (2.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6027"], ["name", "dolor"], ["vat_deductible", "t"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:31:17 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (99.5ms) Completed 200 OK in 208ms (Views: 203.9ms | ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:31:17 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (302.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (307.3ms) Completed 200 OK in 315ms (Views: 309.8ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:31:17 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:17.995370"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:31:17.995370"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (82.3ms) Completed 200 OK in 87ms (Views: 85.6ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (70.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (76.3ms) Completed 200 OK in 102ms (Views: 82.7ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:31:18.374150"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:31:18.374150"], ["vat", 20.0]]  (0.7ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.9ms) Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)  (1.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3687"], ["name", "architecto"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:18.466061"], ["date", "2015-02-20"], ["name", "Magni nemo consectetur aperiam sit sapiente."], ["state", "new"], ["updated_at", "2015-02-20 07:31:18.466061"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1268"], ["name", "facere"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:18.474633"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Alias rerum blanditiis saepe sed corrupti ut possimus."], ["total_all_taxes", 669.0], ["updated_at", "2015-02-20 07:31:18.474633"], ["vat", 69.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6965"], ["name", "iusto"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:31:18.480779"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Animi necessitatibus velit quae rerum qui suscipit ullam."], ["total_all_taxes", 661.0], ["updated_at", "2015-02-20 07:31:18.480779"], ["vat", 38.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1734"], ["name", "veritatis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:18.486447"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Dolor nihil aliquam optio distinctio iste."], ["total_all_taxes", 134.0], ["updated_at", "2015-02-20 07:31:18.486447"], ["vat", 16.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3215"], ["name", "asperiores"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:18.493512"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Quos quam rerum sed vitae ex excepturi dignissimos."], ["total_all_taxes", 499.0], ["updated_at", "2015-02-20 07:31:18.493512"], ["vat", 19.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.3ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:31:18.649691"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.7ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6675"], ["name", "debitis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:18.738322"], ["date", "2015-02-20"], ["name", "Sed et inventore ut omnis vitae rerum magni."], ["state", "new"], ["updated_at", "2015-02-20 07:31:18.738322"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2088"], ["name", "nesciunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:18.744933"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Est sunt aut nam eum omnis quia."], ["total_all_taxes", 109.0], ["updated_at", "2015-02-20 07:31:18.744933"], ["vat", 19.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7653"], ["name", "quia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:18.751737"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Sequi sed et magni."], ["total_all_taxes", 283.0], ["updated_at", "2015-02-20 07:31:18.751737"], ["vat", 5.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7228"], ["name", "est"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:18.759447"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Quibusdam et aut."], ["total_all_taxes", 767.0], ["updated_at", "2015-02-20 07:31:18.759447"], ["vat", 71.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (12.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (16.6ms) Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.4ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-22", "category_id"=>"2", "total_all_taxes"=>"109.0", "vat"=>"19.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:31:18.989255"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:18 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9220"], ["name", "esse"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:19.079283"], ["date", "2015-02-20"], ["name", "Amet accusantium quia distinctio consequatur quaerat iste."], ["state", "new"], ["updated_at", "2015-02-20 07:31:19.079283"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4121"], ["name", "enim"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:19.085947"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Deserunt quas tempora autem dolor."], ["total_all_taxes", 134.0], ["updated_at", "2015-02-20 07:31:19.085947"], ["vat", 3.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4744"], ["name", "qui"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.093984"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Aut iure voluptate non magni qui."], ["total_all_taxes", 851.0], ["updated_at", "2015-02-20 07:31:19.093984"], ["vat", 165.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.7ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:31:19.178871"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50724/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.8ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5213"], ["name", "quidem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:19.269624"], ["date", "2015-02-20"], ["name", "Ab dolores ducimus autem consequatur ullam accusamus dolorum."], ["state", "new"], ["updated_at", "2015-02-20 07:31:19.269624"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8784"], ["name", "quia"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:19.275954"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Omnis ut commodi iure eligendi."], ["total_all_taxes", 477.0], ["updated_at", "2015-02-20 07:31:19.275954"], ["vat", 80.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7144"], ["name", "harum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.282712"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Facere repellat alias doloremque beatae qui."], ["total_all_taxes", 813.0], ["updated_at", "2015-02-20 07:31:19.282712"], ["vat", 60.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1553"], ["name", "sint"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:19.288441"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Fuga soluta molestias tempora accusantium."], ["total_all_taxes", 347.0], ["updated_at", "2015-02-20 07:31:19.288441"], ["vat", 35.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0832"], ["name", "consequatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.296462"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Ut necessitatibus perspiciatis."], ["total_all_taxes", 695.0], ["updated_at", "2015-02-20 07:31:19.296462"], ["vat", 54.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6136"], ["name", "sit"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.302281"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Omnis adipisci dolor."], ["total_all_taxes", 652.0], ["updated_at", "2015-02-20 07:31:19.302281"], ["vat", 53.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:31:19.383223"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50724/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.7ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.8ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1157"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:19.470373"], ["date", "2015-02-20"], ["name", "Beatae dolorem quae in est aperiam vero."], ["state", "new"], ["updated_at", "2015-02-20 07:31:19.470373"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1411"], ["name", "dicta"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.476435"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Ut incidunt neque temporibus est."], ["total_all_taxes", 506.0], ["updated_at", "2015-02-20 07:31:19.476435"], ["vat", 3.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3889"], ["name", "sed"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:19.483320"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Totam sit pariatur doloribus a adipisci."], ["total_all_taxes", 545.0], ["updated_at", "2015-02-20 07:31:19.483320"], ["vat", 91.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.9ms) Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.4ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2488"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2880"], ["name", "soluta"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8383"], ["name", "neque"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:19.642414"], ["date", "2015-02-20"], ["name", "Est deleniti nostrum sit."], ["state", "submited"], ["updated_at", "2015-02-20 07:31:19.642414"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5715"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.649320"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Ut quam natus delectus rem sint alias."], ["total_all_taxes", 401.0], ["updated_at", "2015-02-20 07:31:19.649320"], ["vat", 41.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1814"], ["name", "minus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:19.657104"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Soluta eius repellendus in sapiente qui vitae tenetur."], ["total_all_taxes", 573.0], ["updated_at", "2015-02-20 07:31:19.657104"], ["vat", 82.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.4ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:31:19.740349"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.3ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8545"], ["name", "ea"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:31:19.819986"], ["date", "2015-02-20"], ["name", "Doloremque quas atque iure."], ["state", "submited"], ["updated_at", "2015-02-20 07:31:19.819986"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1223"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:31:19.826003"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Est ipsum reprehenderit."], ["total_all_taxes", 703.0], ["updated_at", "2015-02-20 07:31:19.826003"], ["vat", 28.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3676"], ["name", "eum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:31:19.832929"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Iste vero ex necessitatibus veniam adipisci odio voluptatibus."], ["total_all_taxes", 487.0], ["updated_at", "2015-02-20 07:31:19.832929"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3326"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:19.838682"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Et nemo quibusdam blanditiis."], ["total_all_taxes", 442.0], ["updated_at", "2015-02-20 07:31:19.838682"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7426"], ["name", "laboriosam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:31:19.846923"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Enim dolorum suscipit nihil itaque."], ["total_all_taxes", 472.0], ["updated_at", "2015-02-20 07:31:19.846923"], ["vat", 46.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5161"], ["name", "sit"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:31:19.852771"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Sed assumenda suscipit."], ["total_all_taxes", 762.0], ["updated_at", "2015-02-20 07:31:19.852771"], ["vat", 75.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:31:19.936106"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50724/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50724/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:31:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.4ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2558"], ["name", "laborum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7049"], ["name", "aliquid"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8527"], ["name", "aliquid"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4952"], ["name", "ipsam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4627"], ["name", "qui"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5087"], ["name", "iure"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3883"], ["name", "similique"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3782"], ["name", "commodi"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6786"], ["name", "ea"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3820"], ["name", "ab"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1128"], ["name", "qui"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7867"], ["name", "est"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2760"], ["name", "et"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4633"], ["name", "ea"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2264"], ["name", "praesentium"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:28.054958"], ["date", "2015-02-20"], ["name", "Corporis quos eveniet laboriosam ex perspiciatis cum."], ["state", "new"], ["updated_at", "2015-02-20 07:53:28.054958"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5425"], ["name", "aliquam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:28.062620"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "At consectetur architecto quas repudiandae aliquid possimus."], ["total_all_taxes", 183.0], ["updated_at", "2015-02-20 07:53:28.062620"], ["vat", 1.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4582"], ["name", "itaque"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:53:28.069094"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Porro facere est et dolores assumenda autem et."], ["total_all_taxes", 494.0], ["updated_at", "2015-02-20 07:53:28.069094"], ["vat", 67.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3868"], ["name", "possimus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:28.075030"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Rerum deleniti facere porro et pariatur a sunt."], ["total_all_taxes", 522.0], ["updated_at", "2015-02-20 07:53:28.075030"], ["vat", 71.0]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1294"], ["name", "suscipit"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:53:28.081677"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Vitae dolore et velit perspiciatis."], ["total_all_taxes", 858.0], ["updated_at", "2015-02-20 07:53:28.081677"], ["vat", 81.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5719"], ["name", "atque"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:28.086181"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Excepturi explicabo assumenda deserunt cumque."], ["total_all_taxes", 120.0], ["updated_at", "2015-02-20 07:53:28.086181"], ["vat", 22.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (4.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7662"], ["name", "distinctio"], ["vat_deductible", "t"]]  (0.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:53:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (114.5ms) Completed 200 OK in 249ms (Views: 244.2ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:53:44 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (272.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (327.7ms) Completed 200 OK in 335ms (Views: 330.3ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:45.332817"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:53:45.332817"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (88.2ms) Completed 200 OK in 94ms (Views: 92.2ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (24.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (78.1ms) Completed 200 OK in 99ms (Views: 83.2ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:45.728551"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:53:45.728551"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3323"], ["name", "sit"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:45.822950"], ["date", "2015-02-20"], ["name", "Accusantium dolores nam possimus inventore."], ["state", "new"], ["updated_at", "2015-02-20 07:53:45.822950"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5565"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:45.829609"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Vero enim beatae quas."], ["total_all_taxes", 613.0], ["updated_at", "2015-02-20 07:53:45.829609"], ["vat", 121.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2733"], ["name", "sed"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:45.836146"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Quidem quo repellendus."], ["total_all_taxes", 253.0], ["updated_at", "2015-02-20 07:53:45.836146"], ["vat", 23.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7092"], ["name", "dignissimos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:45.842003"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Dolor ut quae quibusdam sed."], ["total_all_taxes", 709.0], ["updated_at", "2015-02-20 07:53:45.842003"], ["vat", 28.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.0ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.9ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 16ms (Views: 14.3ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:45 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:53:46.002547"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3822"], ["name", "dolore"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:46.093338"], ["date", "2015-02-20"], ["name", "Temporibus quisquam aspernatur ratione odit sunt tempora."], ["state", "new"], ["updated_at", "2015-02-20 07:53:46.093338"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4042"], ["name", "fuga"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:46.100139"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "At atque iste rem repellendus officia."], ["total_all_taxes", 899.0], ["updated_at", "2015-02-20 07:53:46.100139"], ["vat", 27.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4183"], ["name", "ad"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:53:46.106678"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Quis nesciunt sunt ad incidunt sint."], ["total_all_taxes", 802.0], ["updated_at", "2015-02-20 07:53:46.106678"], ["vat", 37.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.8ms) Completed 200 OK in 10ms (Views: 7.5ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (87.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (93.3ms) Completed 200 OK in 100ms (Views: 96.9ms | ActiveRecord: 0.6ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-13", "category_id"=>"2", "total_all_taxes"=>"899.0", "vat"=>"27.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.4ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:53:46.385860"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses/1 Completed 302 Found in 14ms (ActiveRecord: 3.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.7ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.7ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.2ms) Completed 200 OK in 20ms (Views: 14.8ms | ActiveRecord: 2.1ms)  (3.3ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.4ms) DELETE FROM "expense_gun_expense_lines";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.4ms) DELETE FROM "expense_gun_expenses";  (0.9ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3376"], ["name", "delectus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:46.527517"], ["date", "2015-02-20"], ["name", "Molestiae corporis alias ea harum veniam."], ["state", "new"], ["updated_at", "2015-02-20 07:53:46.527517"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8436"], ["name", "ut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:53:46.534009"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Commodi quam cumque laborum magnam."], ["total_all_taxes", 949.0], ["updated_at", "2015-02-20 07:53:46.534009"], ["vat", 172.0]]  (0.8ms) commit transaction  (0.4ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4621"], ["name", "aut"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:53:46.546019"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Quo ea voluptates aut sint vel voluptatem vitae."], ["total_all_taxes", 771.0], ["updated_at", "2015-02-20 07:53:46.546019"], ["vat", 82.0]]  (1.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (25.0ms) Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 2.7ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:53:46.729209"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses Completed 302 Found in 9ms (ActiveRecord: 3.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50853/expense_gun/expenses/state/submited Completed 302 Found in 2ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.7ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (30.8ms) Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 3.2ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8038"], ["name", "qui"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:46.906303"], ["date", "2015-02-20"], ["name", "Sint quia aperiam."], ["state", "new"], ["updated_at", "2015-02-20 07:53:46.906303"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8156"], ["name", "est"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:46.914404"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Architecto vel excepturi deleniti corrupti."], ["total_all_taxes", 152.0], ["updated_at", "2015-02-20 07:53:46.914404"], ["vat", 7.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5388"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:46.922788"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Nihil sunt et quos distinctio blanditiis."], ["total_all_taxes", 895.0], ["updated_at", "2015-02-20 07:53:46.922788"], ["vat", 158.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:53:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.5ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (22.3ms) Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 2.0ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:53:47.020450"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50853/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 1.3ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8483"], ["name", "numquam"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:47.108201"], ["date", "2015-02-20"], ["name", "Aut rem nihil."], ["state", "new"], ["updated_at", "2015-02-20 07:53:47.108201"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2835"], ["name", "quasi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:53:47.114336"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Neque et cumque occaecati."], ["total_all_taxes", 249.0], ["updated_at", "2015-02-20 07:53:47.114336"], ["vat", 23.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6889"], ["name", "sit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:47.123246"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Ea dolor et minima illo aut aliquid sed."], ["total_all_taxes", 199.0], ["updated_at", "2015-02-20 07:53:47.123246"], ["vat", 6.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4155"], ["name", "laborum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:47.129380"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Rerum id nemo fuga."], ["total_all_taxes", 648.0], ["updated_at", "2015-02-20 07:53:47.129380"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2508"], ["name", "perferendis"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:47.136488"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Doloremque mollitia accusantium sed qui cupiditate."], ["total_all_taxes", 850.0], ["updated_at", "2015-02-20 07:53:47.136488"], ["vat", 59.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3086"], ["name", "debitis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3695"], ["name", "in"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3214"], ["name", "molestias"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:47.301251"], ["date", "2015-02-20"], ["name", "Voluptas placeat possimus natus non ut necessitatibus."], ["state", "submited"], ["updated_at", "2015-02-20 07:53:47.301251"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4296"], ["name", "minima"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:53:47.307521"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Natus voluptas perspiciatis corrupti perferendis qui."], ["total_all_taxes", 103.0], ["updated_at", "2015-02-20 07:53:47.307521"], ["vat", 8.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3688"], ["name", "molestiae"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:47.313575"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Sed cum sunt enim repellat totam at."], ["total_all_taxes", 767.0], ["updated_at", "2015-02-20 07:53:47.313575"], ["vat", 144.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1348"], ["name", "rem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:53:47.319505"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Et velit ut nesciunt iusto."], ["total_all_taxes", 432.0], ["updated_at", "2015-02-20 07:53:47.319505"], ["vat", 35.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5618"], ["name", "est"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:47.325997"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Nobis vero optio sunt est consequuntur."], ["total_all_taxes", 990.0], ["updated_at", "2015-02-20 07:53:47.325997"], ["vat", 86.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8470"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 07:53:47.331748"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Perspiciatis fugit voluptatem et vel accusamus saepe."], ["total_all_taxes", 377.0], ["updated_at", "2015-02-20 07:53:47.331748"], ["vat", 44.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.6ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:53:47.416121"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.1ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 1.1ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3546"], ["name", "consequatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:53:47.512425"], ["date", "2015-02-20"], ["name", "Omnis est necessitatibus aperiam et et."], ["state", "submited"], ["updated_at", "2015-02-20 07:53:47.512425"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5373"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:53:47.522054"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Quisquam placeat explicabo non sint aspernatur."], ["total_all_taxes", 348.0], ["updated_at", "2015-02-20 07:53:47.522054"], ["vat", 69.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7202"], ["name", "sit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:53:47.529999"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Sit officiis quisquam et."], ["total_all_taxes", 136.0], ["updated_at", "2015-02-20 07:53:47.529999"], ["vat", 11.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:53:47.618125"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:50853/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50853/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:53:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.7ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.5ms) Completed 200 OK in 12ms (Views: 9.4ms | ActiveRecord: 1.5ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.0ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6978"], ["name", "molestias"], ["vat_deductible", "t"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:54:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (107.2ms) Completed 200 OK in 224ms (Views: 219.9ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (314.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (320.1ms) Completed 200 OK in 329ms (Views: 323.4ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:55.530454"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:54:55.530454"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (85.9ms) Completed 200 OK in 91ms (Views: 88.6ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (73.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.9ms) Completed 200 OK in 108ms (Views: 84.9ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:54:55.921469"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:54:55.921469"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.5ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5726"], ["name", "repellat"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:56.013017"], ["date", "2015-02-20"], ["name", "Illum quia ipsum nesciunt laboriosam rerum quisquam at."], ["state", "new"], ["updated_at", "2015-02-20 07:54:56.013017"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1351"], ["name", "quasi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:56.019469"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Laborum non perferendis facere doloribus."], ["total_all_taxes", 932.0], ["updated_at", "2015-02-20 07:54:56.019469"], ["vat", 164.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7673"], ["name", "non"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.028077"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "A corporis dolore id."], ["total_all_taxes", 724.0], ["updated_at", "2015-02-20 07:54:56.028077"], ["vat", 132.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1735"], ["name", "quas"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.035025"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Architecto repudiandae id."], ["total_all_taxes", 422.0], ["updated_at", "2015-02-20 07:54:56.035025"], ["vat", 37.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.7ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.3ms) Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:54:56.191764"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.7ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8891"], ["name", "eaque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:56.282077"], ["date", "2015-02-20"], ["name", "Dolor laudantium delectus nihil aperiam dolores."], ["state", "new"], ["updated_at", "2015-02-20 07:54:56.282077"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9957"], ["name", "consequatur"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.288828"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Magnam dolorem esse."], ["total_all_taxes", 830.0], ["updated_at", "2015-02-20 07:54:56.288828"], ["vat", 72.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1683"], ["name", "occaecati"], ["vat_deductible", "f"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:56.299172"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Et et et voluptas ullam est facere."], ["total_all_taxes", 795.0], ["updated_at", "2015-02-20 07:54:56.299172"], ["vat", 90.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0712"], ["name", "ipsam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.305662"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Libero sit architecto expedita officia."], ["total_all_taxes", 944.0], ["updated_at", "2015-02-20 07:54:56.305662"], ["vat", 91.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8296"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.312707"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Et eius cupiditate qui pariatur enim sed eum."], ["total_all_taxes", 600.0], ["updated_at", "2015-02-20 07:54:56.312707"], ["vat", 15.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.8ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (12.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (17.3ms) Completed 200 OK in 23ms (Views: 20.2ms | ActiveRecord: 0.6ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-05", "category_id"=>"2", "total_all_taxes"=>"830.0", "vat"=>"72.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:54:56.488794"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7598"], ["name", "non"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:56.584478"], ["date", "2015-02-20"], ["name", "Labore voluptates enim et."], ["state", "new"], ["updated_at", "2015-02-20 07:54:56.584478"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4248"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.648693"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Iure placeat at amet eveniet libero minus."], ["total_all_taxes", 243.0], ["updated_at", "2015-02-20 07:54:56.648693"], ["vat", 36.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8456"], ["name", "incidunt"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.654586"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Exercitationem quia vel omnis nihil cupiditate."], ["total_all_taxes", 526.0], ["updated_at", "2015-02-20 07:54:56.654586"], ["vat", 103.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3406"], ["name", "reprehenderit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.661256"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Aliquam in quasi praesentium facilis aperiam."], ["total_all_taxes", 349.0], ["updated_at", "2015-02-20 07:54:56.661256"], ["vat", 63.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0358"], ["name", "sed"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.667442"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "At quo quia."], ["total_all_taxes", 227.0], ["updated_at", "2015-02-20 07:54:56.667442"], ["vat", 33.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5132"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.673600"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Pariatur magni voluptate recusandae ullam dolorum est at."], ["total_all_taxes", 475.0], ["updated_at", "2015-02-20 07:54:56.673600"], ["vat", 47.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.9ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:54:56.761649"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50894/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.0ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 1.2ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8185"], ["name", "repellat"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:56.854173"], ["date", "2015-02-20"], ["name", "Eaque sit iusto illo quis."], ["state", "new"], ["updated_at", "2015-02-20 07:54:56.854173"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5115"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:56.860226"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Est eum repudiandae dolorum quas."], ["total_all_taxes", 150.0], ["updated_at", "2015-02-20 07:54:56.860226"], ["vat", 20.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9233"], ["name", "suscipit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:56.867303"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Sunt accusantium ut vitae consequuntur."], ["total_all_taxes", 176.0], ["updated_at", "2015-02-20 07:54:56.867303"], ["vat", 9.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1738"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:56.873078"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Aperiam dolorem labore non blanditiis nihil sapiente impedit."], ["total_all_taxes", 715.0], ["updated_at", "2015-02-20 07:54:56.873078"], ["vat", 139.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1584"], ["name", "ipsa"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:54:56.882139"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Atque assumenda et aliquid eum autem cupiditate et."], ["total_all_taxes", 745.0], ["updated_at", "2015-02-20 07:54:56.882139"], ["vat", 10.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.9ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:54:56.968284"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50894/expense_gun/expenses/state/submited Completed 302 Found in 2ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:54:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3694"], ["name", "quam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:57.056857"], ["date", "2015-02-20"], ["name", "Enim reprehenderit porro ipsum quia."], ["state", "new"], ["updated_at", "2015-02-20 07:54:57.056857"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1542"], ["name", "quo"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:57.063625"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Nulla rerum accusamus sit ut autem velit eaque."], ["total_all_taxes", 631.0], ["updated_at", "2015-02-20 07:54:57.063625"], ["vat", 30.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8144"], ["name", "modi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:54:57.071812"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Error libero non consequuntur cumque."], ["total_all_taxes", 437.0], ["updated_at", "2015-02-20 07:54:57.071812"], ["vat", 56.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3487"], ["name", "quam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:57.078638"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Reiciendis quia quibusdam rerum qui."], ["total_all_taxes", 927.0], ["updated_at", "2015-02-20 07:54:57.078638"], ["vat", 2.0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8467"], ["name", "maxime"], ["vat_deductible", "f"]]  (1.7ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:57.092328"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Et laudantium et nobis est voluptatibus sit dolores."], ["total_all_taxes", 740.0], ["updated_at", "2015-02-20 07:54:57.092328"], ["vat", 4.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4884"], ["name", "itaque"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5724"], ["name", "ratione"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.5ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (2.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.4ms) DELETE FROM "expense_gun_expense_lines";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.2ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5713"], ["name", "inventore"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:57.245638"], ["date", "2015-02-20"], ["name", "Tempora deserunt hic reprehenderit provident dolorum possimus."], ["state", "submited"], ["updated_at", "2015-02-20 07:54:57.245638"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1539"], ["name", "accusamus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:57.251443"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Numquam perspiciatis non magni."], ["total_all_taxes", 198.0], ["updated_at", "2015-02-20 07:54:57.251443"], ["vat", 35.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3421"], ["name", "repudiandae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:57.257800"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Quia nihil esse."], ["total_all_taxes", 680.0], ["updated_at", "2015-02-20 07:54:57.257800"], ["vat", 50.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0240"], ["name", "ducimus"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:57.266267"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Vero saepe quia tempora."], ["total_all_taxes", 579.0], ["updated_at", "2015-02-20 07:54:57.266267"], ["vat", 4.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.6ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (89.9ms) Completed 200 OK in 92ms (Views: 88.8ms | ActiveRecord: 2.4ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:54:57.435617"]]  (0.7ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 1.0ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0029"], ["name", "saepe"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:54:57.542539"], ["date", "2015-02-20"], ["name", "Maiores enim velit vel est quas."], ["state", "submited"], ["updated_at", "2015-02-20 07:54:57.542539"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8611"], ["name", "vel"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:57.549491"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Iusto qui dolorem cum."], ["total_all_taxes", 184.0], ["updated_at", "2015-02-20 07:54:57.549491"], ["vat", 18.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9067"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:54:57.557014"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Repellat ut iure officia."], ["total_all_taxes", 950.0], ["updated_at", "2015-02-20 07:54:57.557014"], ["vat", 169.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0383"], ["name", "magni"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:54:57.564417"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Adipisci et cum non ipsum."], ["total_all_taxes", 130.0], ["updated_at", "2015-02-20 07:54:57.564417"], ["vat", 13.0]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4958"], ["name", "libero"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:54:57.575864"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Asperiores consequatur dolorum et occaecati."], ["total_all_taxes", 613.0], ["updated_at", "2015-02-20 07:54:57.575864"], ["vat", 79.0]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6447"], ["name", "molestiae"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:54:57.587420"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Repudiandae hic illum illo itaque ad."], ["total_all_taxes", 995.0], ["updated_at", "2015-02-20 07:54:57.587420"], ["vat", 48.0]]  (1.3ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.4ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:54:57.685253"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:50894/expense_gun/expenses Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50894/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:54:57 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 1.3ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8894"], ["name", "et"], ["vat_deductible", "f"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:56:52 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (98.3ms) Completed 200 OK in 205ms (Views: 201.8ms | ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:56:52 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (314.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (320.6ms) Completed 200 OK in 328ms (Views: 323.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:53.299975"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:56:53.299975"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (84.2ms) Completed 200 OK in 89ms (Views: 86.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (78.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (86.3ms) Completed 200 OK in 110ms (Views: 90.8ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:53.713619"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:56:53.713619"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.9ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2793"], ["name", "non"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:53.807142"], ["date", "2015-02-20"], ["name", "Et et nemo."], ["state", "new"], ["updated_at", "2015-02-20 07:56:53.807142"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5921"], ["name", "facere"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:53.815803"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Velit quia tempora pariatur iusto porro ducimus aut."], ["total_all_taxes", 178.0], ["updated_at", "2015-02-20 07:56:53.815803"], ["vat", 34.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1225"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.3ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:53.824619"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Ut ea et."], ["total_all_taxes", 699.0], ["updated_at", "2015-02-20 07:56:53.824619"], ["vat", 121.0]]  (2.1ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.7ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.6ms) Completed 200 OK in 20ms (Views: 16.8ms | ActiveRecord: 0.3ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:53 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:56:53.999485"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.8ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3233"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:54.084244"], ["date", "2015-02-20"], ["name", "Dolor voluptates quisquam distinctio ad dignissimos."], ["state", "new"], ["updated_at", "2015-02-20 07:56:54.084244"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5357"], ["name", "qui"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:56:54.090593"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Necessitatibus cumque culpa exercitationem pariatur nemo et aut."], ["total_all_taxes", 264.0], ["updated_at", "2015-02-20 07:56:54.090593"], ["vat", 3.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7289"], ["name", "sed"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:54.098339"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Impedit illo eos neque blanditiis atque eum."], ["total_all_taxes", 123.0], ["updated_at", "2015-02-20 07:56:54.098339"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5796"], ["name", "id"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:56:54.106476"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Nobis et molestiae fuga non quia."], ["total_all_taxes", 113.0], ["updated_at", "2015-02-20 07:56:54.106476"], ["vat", 14.0]]  (1.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.0ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (15.8ms) Completed 200 OK in 24ms (Views: 18.2ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-22", "category_id"=>"2", "total_all_taxes"=>"264.0", "vat"=>"3.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:56:54.311420"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9443"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:54.410817"], ["date", "2015-02-20"], ["name", "Saepe ut aliquid eaque et."], ["state", "new"], ["updated_at", "2015-02-20 07:56:54.410817"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3671"], ["name", "rem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:54.417722"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Sequi ut omnis consectetur inventore nisi eos laborum."], ["total_all_taxes", 443.0], ["updated_at", "2015-02-20 07:56:54.417722"], ["vat", 38.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6527"], ["name", "sit"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:54.425162"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Molestiae commodi accusantium explicabo."], ["total_all_taxes", 465.0], ["updated_at", "2015-02-20 07:56:54.425162"], ["vat", 2.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8971"], ["name", "aut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:54.431644"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Quis voluptatem est ad ducimus."], ["total_all_taxes", 966.0], ["updated_at", "2015-02-20 07:56:54.431644"], ["vat", 121.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8314"], ["name", "delectus"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:54.508931"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Nihil non aut corporis qui."], ["total_all_taxes", 1000.0], ["updated_at", "2015-02-20 07:56:54.508931"], ["vat", 16.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7738"], ["name", "quos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:54.514835"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Illo aut nobis."], ["total_all_taxes", 159.0], ["updated_at", "2015-02-20 07:56:54.514835"], ["vat", 6.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:56:54.608473"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50912/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.3ms) Completed 200 OK in 16ms (Views: 13.5ms | ActiveRecord: 1.3ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1332"], ["name", "asperiores"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:54.714044"], ["date", "2015-02-20"], ["name", "Incidunt molestiae voluptates earum amet dolor."], ["state", "new"], ["updated_at", "2015-02-20 07:56:54.714044"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2684"], ["name", "quibusdam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:54.720241"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Sed est repudiandae."], ["total_all_taxes", 917.0], ["updated_at", "2015-02-20 07:56:54.720241"], ["vat", 168.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1857"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:54.728234"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Cumque neque corrupti nesciunt quas."], ["total_all_taxes", 997.0], ["updated_at", "2015-02-20 07:56:54.728234"], ["vat", 164.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2841"], ["name", "sapiente"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:54.735007"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Esse magnam consequatur rerum necessitatibus ducimus aliquid a."], ["total_all_taxes", 546.0], ["updated_at", "2015-02-20 07:56:54.735007"], ["vat", 41.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.2ms) Completed 200 OK in 19ms (Views: 15.6ms | ActiveRecord: 1.6ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:56:54.840239"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50912/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 1.2ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2751"], ["name", "et"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:54.939088"], ["date", "2015-02-20"], ["name", "Itaque optio culpa rerum necessitatibus ab inventore nulla."], ["state", "new"], ["updated_at", "2015-02-20 07:56:54.939088"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1595"], ["name", "veritatis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:54.945273"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Modi voluptatem quae dolor."], ["total_all_taxes", 333.0], ["updated_at", "2015-02-20 07:56:54.945273"], ["vat", 31.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7844"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:54.952760"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Ad expedita quis est deleniti."], ["total_all_taxes", 465.0], ["updated_at", "2015-02-20 07:56:54.952760"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0292"], ["name", "ut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:54.960341"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Ipsa tempore omnis corrupti ut."], ["total_all_taxes", 986.0], ["updated_at", "2015-02-20 07:56:54.960341"], ["vat", 173.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8386"], ["name", "tempore"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:54.966948"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "At voluptas optio doloribus."], ["total_all_taxes", 474.0], ["updated_at", "2015-02-20 07:56:54.966948"], ["vat", 83.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.9ms) Completed 200 OK in 19ms (Views: 15.2ms | ActiveRecord: 1.2ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8302"], ["name", "adipisci"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1740"], ["name", "accusamus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (1.5ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.3ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0136"], ["name", "eveniet"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:55.137977"], ["date", "2015-02-20"], ["name", "Nesciunt debitis porro voluptatum aperiam quasi."], ["state", "submited"], ["updated_at", "2015-02-20 07:56:55.137977"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5162"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:55.145192"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ut est magni tempora et iste."], ["total_all_taxes", 514.0], ["updated_at", "2015-02-20 07:56:55.145192"], ["vat", 65.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2717"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:55.151150"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Dicta aspernatur quasi qui asperiores."], ["total_all_taxes", 803.0], ["updated_at", "2015-02-20 07:56:55.151150"], ["vat", 111.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3411"], ["name", "nisi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:56:55.157945"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Recusandae asperiores unde et deleniti est porro."], ["total_all_taxes", 190.0], ["updated_at", "2015-02-20 07:56:55.157945"], ["vat", 27.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4634"], ["name", "unde"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:56:55.165184"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Qui quaerat culpa sunt."], ["total_all_taxes", 996.0], ["updated_at", "2015-02-20 07:56:55.165184"], ["vat", 74.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1727"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:55.172413"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Dignissimos temporibus eaque et labore."], ["total_all_taxes", 927.0], ["updated_at", "2015-02-20 07:56:55.172413"], ["vat", 50.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.0ms) Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 1.5ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:56:55.326419"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 1.0ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9181"], ["name", "eum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:56:55.427900"], ["date", "2015-02-20"], ["name", "Et velit nam laudantium ratione quo."], ["state", "submited"], ["updated_at", "2015-02-20 07:56:55.427900"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7874"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:56:55.434353"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Doloribus quibusdam nihil itaque culpa."], ["total_all_taxes", 561.0], ["updated_at", "2015-02-20 07:56:55.434353"], ["vat", 49.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3356"], ["name", "necessitatibus"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:56:55.445265"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Et sint a sunt animi fuga."], ["total_all_taxes", 608.0], ["updated_at", "2015-02-20 07:56:55.445265"], ["vat", 9.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4559"], ["name", "esse"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:56:55.451827"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Dolores cupiditate quod aut veritatis consectetur quis molestiae."], ["total_all_taxes", 250.0], ["updated_at", "2015-02-20 07:56:55.451827"], ["vat", 49.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0430"], ["name", "ipsam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:55.457808"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Est consequatur veniam a."], ["total_all_taxes", 657.0], ["updated_at", "2015-02-20 07:56:55.457808"], ["vat", 7.0]]  (1.3ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6715"], ["name", "sed"], ["vat_deductible", "f"]]  (2.5ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 07:56:55.476876"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Labore et libero et necessitatibus nihil."], ["total_all_taxes", 596.0], ["updated_at", "2015-02-20 07:56:55.476876"], ["vat", 21.0]]  (2.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.7ms) Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:56:55.575729"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50912/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50912/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:56:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 1.2ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5174"], ["name", "similique"], ["vat_deductible", "t"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:57:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (98.5ms) Completed 200 OK in 207ms (Views: 203.2ms | ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:57:40 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (310.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (317.1ms) Completed 200 OK in 324ms (Views: 319.7ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:57:40 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:40.979544"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:57:40.979544"]]  (3.2ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses/1 Completed 302 Found in 14ms (ActiveRecord: 4.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:40 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (83.5ms) Completed 200 OK in 89ms (Views: 87.0ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (73.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.3ms) Completed 200 OK in 115ms (Views: 87.6ms | ActiveRecord: 0.8ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:41.395696"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:57:41.395696"], ["vat", 20.0]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.7ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1165"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:41.494608"], ["date", "2015-02-20"], ["name", "Laborum atque natus accusantium porro cum ut."], ["state", "new"], ["updated_at", "2015-02-20 07:57:41.494608"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1618"], ["name", "ipsum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:41.502538"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Magni et eos repellendus culpa."], ["total_all_taxes", 664.0], ["updated_at", "2015-02-20 07:57:41.502538"], ["vat", 29.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0763"], ["name", "eum"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:57:41.513698"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Aliquid voluptas quis eos aperiam."], ["total_all_taxes", 890.0], ["updated_at", "2015-02-20 07:57:41.513698"], ["vat", 149.0]]  (1.9ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9348"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:57:41.528610"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Qui numquam maxime et expedita inventore."], ["total_all_taxes", 426.0], ["updated_at", "2015-02-20 07:57:41.528610"], ["vat", 12.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2545"], ["name", "ab"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:41.534695"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Tempore deserunt aut porro."], ["total_all_taxes", 241.0], ["updated_at", "2015-02-20 07:57:41.534695"], ["vat", 37.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.5ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:57:41.704561"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.8ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8285"], ["name", "similique"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:41.794939"], ["date", "2015-02-20"], ["name", "Harum et qui dolorem odit."], ["state", "new"], ["updated_at", "2015-02-20 07:57:41.794939"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8254"], ["name", "nam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:57:41.801266"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Ut atque voluptates."], ["total_all_taxes", 435.0], ["updated_at", "2015-02-20 07:57:41.801266"], ["vat", 77.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2561"], ["name", "id"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:41.809138"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Itaque sit in neque."], ["total_all_taxes", 246.0], ["updated_at", "2015-02-20 07:57:41.809138"], ["vat", 20.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6306"], ["name", "cum"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:41.816040"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Esse qui at perspiciatis incidunt."], ["total_all_taxes", 441.0], ["updated_at", "2015-02-20 07:57:41.816040"], ["vat", 85.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5025"], ["name", "sed"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:57:41.822296"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Et distinctio ab quia tenetur quia."], ["total_all_taxes", 169.0], ["updated_at", "2015-02-20 07:57:41.822296"], ["vat", 22.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 16ms (Views: 10.4ms | ActiveRecord: 0.9ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:57:41 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (19.1ms) Completed 200 OK in 28ms (Views: 22.3ms | ActiveRecord: 0.8ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-16", "category_id"=>"2", "total_all_taxes"=>"435.0", "vat"=>"77.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:57:42.030509"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5442"], ["name", "et"], ["vat_deductible", "t"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:42.190032"], ["date", "2015-02-20"], ["name", "Id ea ducimus quidem."], ["state", "new"], ["updated_at", "2015-02-20 07:57:42.190032"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2546"], ["name", "tenetur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.196751"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Neque doloremque aut ipsum sunt reiciendis quisquam eum."], ["total_all_taxes", 407.0], ["updated_at", "2015-02-20 07:57:42.196751"], ["vat", 77.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6658"], ["name", "quis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.203621"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Soluta minima dicta error et quod enim nulla."], ["total_all_taxes", 270.0], ["updated_at", "2015-02-20 07:57:42.203621"], ["vat", 19.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1141"], ["name", "quia"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.209619"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Dolor sit est rerum earum et ut ad."], ["total_all_taxes", 284.0], ["updated_at", "2015-02-20 07:57:42.209619"], ["vat", 45.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8794"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.215828"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Maiores et et autem similique recusandae architecto."], ["total_all_taxes", 247.0], ["updated_at", "2015-02-20 07:57:42.215828"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2656"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.222232"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Similique dicta assumenda."], ["total_all_taxes", 928.0], ["updated_at", "2015-02-20 07:57:42.222232"], ["vat", 164.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:57:42.314195"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50935/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.3ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 1.3ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5724"], ["name", "fugiat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:42.416398"], ["date", "2015-02-20"], ["name", "Ratione dolore enim inventore qui tempore."], ["state", "new"], ["updated_at", "2015-02-20 07:57:42.416398"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6659"], ["name", "hic"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:42.422784"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Hic quia vel."], ["total_all_taxes", 671.0], ["updated_at", "2015-02-20 07:57:42.422784"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8860"], ["name", "fugit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.431232"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Veritatis numquam iure et ea voluptas deserunt."], ["total_all_taxes", 110.0], ["updated_at", "2015-02-20 07:57:42.431232"], ["vat", 13.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7226"], ["name", "in"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.438188"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Aut enim aspernatur porro quidem aperiam nobis eaque."], ["total_all_taxes", 125.0], ["updated_at", "2015-02-20 07:57:42.438188"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7218"], ["name", "accusantium"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.445226"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Earum placeat deserunt."], ["total_all_taxes", 655.0], ["updated_at", "2015-02-20 07:57:42.445226"], ["vat", 125.0]]  (1.1ms) commit transaction  (0.3ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2249"], ["name", "ut"], ["vat_deductible", "t"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.459645"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Ut non earum tempore unde nihil."], ["total_all_taxes", 752.0], ["updated_at", "2015-02-20 07:57:42.459645"], ["vat", 54.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:57:42.552883"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50935/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.2ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 1.0ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5476"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:42.651838"], ["date", "2015-02-20"], ["name", "Qui aliquid harum sed."], ["state", "new"], ["updated_at", "2015-02-20 07:57:42.651838"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0764"], ["name", "assumenda"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:57:42.658035"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Qui repellendus porro nostrum sed assumenda."], ["total_all_taxes", 403.0], ["updated_at", "2015-02-20 07:57:42.658035"], ["vat", 62.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7463"], ["name", "soluta"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.665591"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Ducimus quia dolorem magnam."], ["total_all_taxes", 396.0], ["updated_at", "2015-02-20 07:57:42.665591"], ["vat", 54.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7364"], ["name", "ipsa"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:42.672872"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Qui numquam quod sint."], ["total_all_taxes", 447.0], ["updated_at", "2015-02-20 07:57:42.672872"], ["vat", 44.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5431"], ["name", "repellendus"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:42.682040"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Qui alias magni eaque."], ["total_all_taxes", 857.0], ["updated_at", "2015-02-20 07:57:42.682040"], ["vat", 4.0]]  (1.3ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8016"], ["name", "est"], ["vat_deductible", "t"]]  (1.3ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.697093"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Corrupti et dolor in adipisci omnis."], ["total_all_taxes", 291.0], ["updated_at", "2015-02-20 07:57:42.697093"], ["vat", 11.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3980"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5372"], ["name", "et"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (2.4ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.4ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6061"], ["name", "expedita"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:42.860058"], ["date", "2015-02-20"], ["name", "Voluptatum ipsa ullam repellat."], ["state", "submited"], ["updated_at", "2015-02-20 07:57:42.860058"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6845"], ["name", "ex"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:42.866143"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Est amet reiciendis ad."], ["total_all_taxes", 612.0], ["updated_at", "2015-02-20 07:57:42.866143"], ["vat", 112.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7781"], ["name", "ratione"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:42.872171"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Enim aut odio."], ["total_all_taxes", 816.0], ["updated_at", "2015-02-20 07:57:42.872171"], ["vat", 84.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9289"], ["name", "tempora"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:42.878845"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Qui qui vero aut excepturi laborum voluptas molestias."], ["total_all_taxes", 402.0], ["updated_at", "2015-02-20 07:57:42.878845"], ["vat", 29.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:57:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6950"], ["name", "nostrum"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:57:45.046837"], ["date", "2015-02-20"], ["name", "Aspernatur quia et aut."], ["state", "submited"], ["updated_at", "2015-02-20 07:57:45.046837"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9852"], ["name", "voluptates"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:57:45.057528"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Sapiente expedita officiis."], ["total_all_taxes", 467.0], ["updated_at", "2015-02-20 07:57:45.057528"], ["vat", 76.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7001"], ["name", "perferendis"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:45.066050"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Quos placeat tempora voluptas deserunt."], ["total_all_taxes", 764.0], ["updated_at", "2015-02-20 07:57:45.066050"], ["vat", 84.0]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2882"], ["name", "nobis"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:45.076656"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Iusto accusantium sit sed."], ["total_all_taxes", 964.0], ["updated_at", "2015-02-20 07:57:45.076656"], ["vat", 178.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9143"], ["name", "et"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 07:57:45.087366"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Rerum est aspernatur."], ["total_all_taxes", 800.0], ["updated_at", "2015-02-20 07:57:45.087366"], ["vat", 62.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4528"], ["name", "enim"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:57:45.096561"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Ullam autem velit quae eius."], ["total_all_taxes", 383.0], ["updated_at", "2015-02-20 07:57:45.096561"], ["vat", 24.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:57:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:57:45 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:57:45.187654"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50935/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:57:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50935/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:57:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 1.2ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6288"], ["name", "magni"], ["vat_deductible", "f"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (108.8ms) Completed 200 OK in 229ms (Views: 225.2ms | ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (307.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (314.8ms) Completed 200 OK in 322ms (Views: 317.3ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:22.585017"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:58:22.585017"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (84.4ms) Completed 200 OK in 90ms (Views: 87.6ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (74.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (82.4ms) Completed 200 OK in 106ms (Views: 87.3ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:22.969496"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:58:22.969496"], ["vat", 20.0]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:22 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.8ms) Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1042"], ["name", "optio"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:23.063421"], ["date", "2015-02-20"], ["name", "Voluptatem aut non qui inventore quia magnam."], ["state", "new"], ["updated_at", "2015-02-20 07:58:23.063421"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5164"], ["name", "ullam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:23.070091"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Et voluptate eos numquam."], ["total_all_taxes", 824.0], ["updated_at", "2015-02-20 07:58:23.070091"], ["vat", 54.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4864"], ["name", "et"], ["vat_deductible", "t"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:23.078778"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Aut et commodi ipsam voluptate."], ["total_all_taxes", 763.0], ["updated_at", "2015-02-20 07:58:23.078778"], ["vat", 115.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8646"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:23.085119"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Laudantium unde nostrum ut."], ["total_all_taxes", 907.0], ["updated_at", "2015-02-20 07:58:23.085119"], ["vat", 125.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6778"], ["name", "aut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:23.091278"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Ut aperiam hic."], ["total_all_taxes", 349.0], ["updated_at", "2015-02-20 07:58:23.091278"], ["vat", 37.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:58:23.252686"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.2ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5157"], ["name", "id"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:23.345986"], ["date", "2015-02-20"], ["name", "Aut harum ad."], ["state", "new"], ["updated_at", "2015-02-20 07:58:23.345986"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0524"], ["name", "eveniet"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:23.352979"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Dolores fugit in."], ["total_all_taxes", 868.0], ["updated_at", "2015-02-20 07:58:23.352979"], ["vat", 37.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6662"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:23.361224"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Illum ut fugit illo aut voluptates id sequi."], ["total_all_taxes", 364.0], ["updated_at", "2015-02-20 07:58:23.361224"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6136"], ["name", "temporibus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:23.369344"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Temporibus rerum rerum et dolorum."], ["total_all_taxes", 655.0], ["updated_at", "2015-02-20 07:58:23.369344"], ["vat", 25.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (18.6ms) Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-14", "category_id"=>"2", "total_all_taxes"=>"868.0", "vat"=>"37.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:58:23.545965"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 2.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2336"], ["name", "minima"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:23.640560"], ["date", "2015-02-20"], ["name", "Odit suscipit et dolores molestiae unde omnis."], ["state", "new"], ["updated_at", "2015-02-20 07:58:23.640560"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6546"], ["name", "placeat"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:23.647575"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Omnis vel ut doloremque et."], ["total_all_taxes", 253.0], ["updated_at", "2015-02-20 07:58:23.647575"], ["vat", 1.0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2515"], ["name", "pariatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:23.712598"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Facere asperiores doloribus magnam sit."], ["total_all_taxes", 773.0], ["updated_at", "2015-02-20 07:58:23.712598"], ["vat", 65.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2185"], ["name", "molestias"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:23.718673"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Error dolorem ducimus culpa exercitationem aspernatur quae doloribus."], ["total_all_taxes", 484.0], ["updated_at", "2015-02-20 07:58:23.718673"], ["vat", 72.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2200"], ["name", "sed"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:23.724745"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Dicta maiores dolores."], ["total_all_taxes", 399.0], ["updated_at", "2015-02-20 07:58:23.724745"], ["vat", 38.0]]  (1.0ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.2ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:58:23.809946"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50958/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.7ms) Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 1.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4885"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:23.901912"], ["date", "2015-02-20"], ["name", "Aut et aut autem officiis et et."], ["state", "new"], ["updated_at", "2015-02-20 07:58:23.901912"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8563"], ["name", "culpa"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:23.908136"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Perferendis aut qui est dolorem nemo quidem quisquam."], ["total_all_taxes", 401.0], ["updated_at", "2015-02-20 07:58:23.908136"], ["vat", 24.0]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7295"], ["name", "incidunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:23.917849"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Optio ut sit corporis qui modi nulla dicta."], ["total_all_taxes", 237.0], ["updated_at", "2015-02-20 07:58:23.917849"], ["vat", 16.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:58:23 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:58:24.000878"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.2ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50958/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.4ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6828"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:24.089315"], ["date", "2015-02-20"], ["name", "Cupiditate perspiciatis voluptatem."], ["state", "new"], ["updated_at", "2015-02-20 07:58:24.089315"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1837"], ["name", "tempora"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:24.095805"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Dicta ut quo ducimus ut."], ["total_all_taxes", 246.0], ["updated_at", "2015-02-20 07:58:24.095805"], ["vat", 15.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0643"], ["name", "ea"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:24.103516"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Id non voluptatem veniam."], ["total_all_taxes", 642.0], ["updated_at", "2015-02-20 07:58:24.103516"], ["vat", 26.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1892"], ["name", "est"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:24.110856"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Animi voluptas asperiores nobis et excepturi voluptatem dolores."], ["total_all_taxes", 193.0], ["updated_at", "2015-02-20 07:58:24.110856"], ["vat", 31.0]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4046"], ["name", "et"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:24.128315"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Aut exercitationem quas quaerat quibusdam sapiente dolor."], ["total_all_taxes", 393.0], ["updated_at", "2015-02-20 07:58:24.128315"], ["vat", 29.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9835"], ["name", "praesentium"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:24.136239"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Sunt soluta architecto molestiae et ullam."], ["total_all_taxes", 480.0], ["updated_at", "2015-02-20 07:58:24.136239"], ["vat", 32.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.5ms) Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.9ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4547"], ["name", "vitae"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8215"], ["name", "deserunt"], ["vat_deductible", "t"]]  (1.4ms) commit transaction  (2.0ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3807"], ["name", "tempora"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:24.292295"], ["date", "2015-02-20"], ["name", "Vel occaecati suscipit exercitationem aut voluptates sint."], ["state", "submited"], ["updated_at", "2015-02-20 07:58:24.292295"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6737"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:24.298316"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Consequuntur praesentium atque voluptas."], ["total_all_taxes", 606.0], ["updated_at", "2015-02-20 07:58:24.298316"], ["vat", 13.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5658"], ["name", "atque"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:24.304707"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Eum consequatur qui vitae."], ["total_all_taxes", 924.0], ["updated_at", "2015-02-20 07:58:24.304707"], ["vat", 71.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6828"], ["name", "quo"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:24.315069"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Voluptatibus tempore nisi eius id saepe expedita id."], ["total_all_taxes", 936.0], ["updated_at", "2015-02-20 07:58:24.315069"], ["vat", 26.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.8ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (24.1ms) Completed 200 OK in 26ms (Views: 21.9ms | ActiveRecord: 3.3ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:58:24.487851"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.7ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5131"], ["name", "neque"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:24.585445"], ["date", "2015-02-20"], ["name", "Non accusamus officiis ad."], ["state", "submited"], ["updated_at", "2015-02-20 07:58:24.585445"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4335"], ["name", "ut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:24.592499"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Expedita facilis sint iusto nesciunt cumque provident."], ["total_all_taxes", 219.0], ["updated_at", "2015-02-20 07:58:24.592499"], ["vat", 22.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2417"], ["name", "facilis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:24.600506"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Similique tempora incidunt sint voluptatem a qui."], ["total_all_taxes", 370.0], ["updated_at", "2015-02-20 07:58:24.600506"], ["vat", 43.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4443"], ["name", "aut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:24.607230"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Explicabo ut sunt et consequatur voluptatem."], ["total_all_taxes", 568.0], ["updated_at", "2015-02-20 07:58:24.607230"], ["vat", 13.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8754"], ["name", "laboriosam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:24.613581"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Aut perferendis minus."], ["total_all_taxes", 479.0], ["updated_at", "2015-02-20 07:58:24.613581"], ["vat", 24.0]]  (1.5ms) commit transaction  (0.2ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5693"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (1.3ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:24.629602"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Repudiandae autem exercitationem iure."], ["total_all_taxes", 399.0], ["updated_at", "2015-02-20 07:58:24.629602"], ["vat", 5.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.4ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:58:24.732455"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50958/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50958/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 1.3ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.0ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7248"], ["name", "quo"], ["vat_deductible", "t"]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (108.8ms) Completed 200 OK in 228ms (Views: 224.1ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 08:58:49 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (375.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (383.4ms) Completed 200 OK in 395ms (Views: 387.5ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:49 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:49.776472"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 07:58:49.776472"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:49 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.5ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (119.0ms) Completed 200 OK in 131ms (Views: 124.7ms | ActiveRecord: 1.0ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 08:58:49 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (85.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (93.1ms) Completed 200 OK in 128ms (Views: 98.6ms | ActiveRecord: 0.9ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:50.253267"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 07:58:50.253267"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses/1 Completed 302 Found in 12ms (ActiveRecord: 3.5ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.9ms) Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.6ms)  (2.3ms) DELETE FROM "expense_gun_categories";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.1ms) DELETE FROM "expense_gun_expenses";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2612"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:50.373928"], ["date", "2015-02-20"], ["name", "Expedita odit voluptas qui."], ["state", "new"], ["updated_at", "2015-02-20 07:58:50.373928"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7850"], ["name", "ea"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:50.381086"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Dolores ut quia sint."], ["total_all_taxes", 397.0], ["updated_at", "2015-02-20 07:58:50.381086"], ["vat", 34.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0737"], ["name", "consequatur"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:50.391407"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Rem error earum quia."], ["total_all_taxes", 938.0], ["updated_at", "2015-02-20 07:58:50.391407"], ["vat", 159.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3313"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:50.398735"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Dolores porro dolorem provident error quidem."], ["total_all_taxes", 730.0], ["updated_at", "2015-02-20 07:58:50.398735"], ["vat", 104.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1327"], ["name", "rem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:50.406791"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Qui deserunt aut vitae et."], ["total_all_taxes", 213.0], ["updated_at", "2015-02-20 07:58:50.406791"], ["vat", 12.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.7ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (6.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 15ms (Views: 13.4ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 07:58:50.576443"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.7ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.5ms)  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3515"], ["name", "soluta"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:50.680512"], ["date", "2015-02-20"], ["name", "Ea ut error aut molestiae."], ["state", "new"], ["updated_at", "2015-02-20 07:58:50.680512"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2632"], ["name", "soluta"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:50.689169"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Sequi voluptatibus facilis omnis qui occaecati quisquam."], ["total_all_taxes", 375.0], ["updated_at", "2015-02-20 07:58:50.689169"], ["vat", 68.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9563"], ["name", "asperiores"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:50.697108"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Assumenda autem qui dolorem."], ["total_all_taxes", 947.0], ["updated_at", "2015-02-20 07:58:50.697108"], ["vat", 161.0]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8887"], ["name", "eligendi"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:50.706669"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Vitae repellendus eum incidunt dicta."], ["total_all_taxes", 353.0], ["updated_at", "2015-02-20 07:58:50.706669"], ["vat", 42.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.7ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (13.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (20.5ms) Completed 200 OK in 26ms (Views: 23.4ms | ActiveRecord: 0.6ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-29", "category_id"=>"2", "total_all_taxes"=>"375.0", "vat"=>"68.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 07:58:50.966043"]]  (1.9ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:50 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.3ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.8ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9556"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:51.065415"], ["date", "2015-02-20"], ["name", "Maxime voluptas qui nisi ut nesciunt."], ["state", "new"], ["updated_at", "2015-02-20 07:58:51.065415"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8353"], ["name", "inventore"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:51.072774"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Reiciendis facilis dolor."], ["total_all_taxes", 591.0], ["updated_at", "2015-02-20 07:58:51.072774"], ["vat", 112.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5432"], ["name", "explicabo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.078927"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Facilis aut vel ab aut dolor odit."], ["total_all_taxes", 866.0], ["updated_at", "2015-02-20 07:58:51.078927"], ["vat", 100.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3684"], ["name", "numquam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.085213"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Quia quia quia placeat maiores et deleniti."], ["total_all_taxes", 163.0], ["updated_at", "2015-02-20 07:58:51.085213"], ["vat", 15.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6782"], ["name", "iste"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:51.092854"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Qui ratione facilis pariatur excepturi et sunt."], ["total_all_taxes", 288.0], ["updated_at", "2015-02-20 07:58:51.092854"], ["vat", 39.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8862"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:51.101505"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Illo accusamus repellat officia veniam quod."], ["total_all_taxes", 113.0], ["updated_at", "2015-02-20 07:58:51.101505"], ["vat", 2.0]]  (1.3ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.0ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 07:58:51.195833"]]  (1.2ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50973/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.2ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 1.2ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.2ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8872"], ["name", "cumque"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:51.302698"], ["date", "2015-02-20"], ["name", "Soluta rem dolorem sit consequatur."], ["state", "new"], ["updated_at", "2015-02-20 07:58:51.302698"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6284"], ["name", "vero"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:51.310267"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Debitis perspiciatis ducimus atque animi molestiae."], ["total_all_taxes", 278.0], ["updated_at", "2015-02-20 07:58:51.310267"], ["vat", 30.0]]  (2.5ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2272"], ["name", "qui"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 07:58:51.323996"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Dicta eum laudantium voluptatibus sed aut."], ["total_all_taxes", 154.0], ["updated_at", "2015-02-20 07:58:51.323996"], ["vat", 21.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.2ms) Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 1.7ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 07:58:51.421114"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50973/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 1.1ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1505"], ["name", "commodi"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:51.524630"], ["date", "2015-02-20"], ["name", "Eum incidunt et provident ipsa quam."], ["state", "new"], ["updated_at", "2015-02-20 07:58:51.524630"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2584"], ["name", "doloremque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:51.532032"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Molestiae beatae sed laudantium."], ["total_all_taxes", 991.0], ["updated_at", "2015-02-20 07:58:51.532032"], ["vat", 196.0]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4410"], ["name", "magnam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:51.543231"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Nam sit odio nobis vitae qui quia necessitatibus."], ["total_all_taxes", 408.0], ["updated_at", "2015-02-20 07:58:51.543231"], ["vat", 42.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2035"], ["name", "modi"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.2ms) DELETE FROM "expense_gun_expenses";  (0.5ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5222"], ["name", "sed"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.2ms) DELETE FROM "expense_gun_expenses";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2712"], ["name", "dolorem"], ["vat_deductible", "f"]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:51.743218"], ["date", "2015-02-20"], ["name", "Facilis ea quis quaerat."], ["state", "submited"], ["updated_at", "2015-02-20 07:58:51.743218"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8566"], ["name", "facere"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:51.752328"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Dolores temporibus et repellat."], ["total_all_taxes", 611.0], ["updated_at", "2015-02-20 07:58:51.752328"], ["vat", 20.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5745"], ["name", "illum"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.759684"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Ad nisi qui perspiciatis."], ["total_all_taxes", 207.0], ["updated_at", "2015-02-20 07:58:51.759684"], ["vat", 37.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3143"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.766479"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Aut nostrum porro itaque sed ut."], ["total_all_taxes", 993.0], ["updated_at", "2015-02-20 07:58:51.766479"], ["vat", 41.0]]  (1.0ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.6ms) Completed 200 OK in 15ms (Views: 12.7ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 07:58:51.866073"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.6ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7685"], ["name", "dolor"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 07:58:51.957192"], ["date", "2015-02-20"], ["name", "Id ducimus voluptate sit in quaerat iste deleniti."], ["state", "submited"], ["updated_at", "2015-02-20 07:58:51.957192"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2231"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 07:58:51.964500"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Voluptatem modi officia perferendis omnis ea cupiditate voluptas."], ["total_all_taxes", 148.0], ["updated_at", "2015-02-20 07:58:51.964500"], ["vat", 21.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7345"], ["name", "officia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 07:58:51.972298"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Dicta perspiciatis qui porro suscipit repellendus."], ["total_all_taxes", 812.0], ["updated_at", "2015-02-20 07:58:51.972298"], ["vat", 16.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2482"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.978638"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Sapiente nihil quis rerum est."], ["total_all_taxes", 524.0], ["updated_at", "2015-02-20 07:58:51.978638"], ["vat", 73.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4445"], ["name", "minima"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 07:58:51.985385"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Officia maiores facilis."], ["total_all_taxes", 273.0], ["updated_at", "2015-02-20 07:58:51.985385"], ["vat", 9.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 08:58:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 08:58:52 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 07:58:52.070766"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:50973/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 08:58:52 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:50973/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 08:58:52 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.2ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 1.1ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7853"], ["name", "omnis"], ["vat_deductible", "f"]]  (2.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:03:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (106.7ms) Completed 200 OK in 223ms (Views: 219.1ms | ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:03:54 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (339.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (345.9ms) Completed 200 OK in 353ms (Views: 348.5ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:03:54 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.2ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:03:54.762581"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:03:54.762581"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 2.5ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (83.2ms) Completed 200 OK in 88ms (Views: 86.4ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:03:54 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (78.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (90.2ms) Completed 200 OK in 115ms (Views: 95.2ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:03:55.181378"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:03:55.181378"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.4ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7371"], ["name", "reprehenderit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:03:55.273413"], ["date", "2015-02-20"], ["name", "Nihil qui ut quia magni."], ["state", "new"], ["updated_at", "2015-02-20 08:03:55.273413"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0254"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:03:55.281920"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Tempora fuga enim nobis."], ["total_all_taxes", 346.0], ["updated_at", "2015-02-20 08:03:55.281920"], ["vat", 7.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4068"], ["name", "ut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:03:55.289018"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Odio et rerum quasi vel officiis."], ["total_all_taxes", 433.0], ["updated_at", "2015-02-20 08:03:55.289018"], ["vat", 21.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.4ms) Completed 200 OK in 17ms (Views: 12.3ms | ActiveRecord: 1.1ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (9.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (16.3ms) Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:03:55.482643"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.2ms) Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5685"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:03:55.568980"], ["date", "2015-02-20"], ["name", "Vitae enim nihil et ipsam beatae."], ["state", "new"], ["updated_at", "2015-02-20 08:03:55.568980"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7944"], ["name", "atque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:03:55.575934"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Nihil minima doloribus ipsa."], ["total_all_taxes", 519.0], ["updated_at", "2015-02-20 08:03:55.575934"], ["vat", 31.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4236"], ["name", "delectus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:03:55.583735"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Placeat quibusdam eum necessitatibus."], ["total_all_taxes", 577.0], ["updated_at", "2015-02-20 08:03:55.583735"], ["vat", 88.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9742"], ["name", "aliquam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:03:55.590449"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Necessitatibus possimus facilis eos id."], ["total_all_taxes", 349.0], ["updated_at", "2015-02-20 08:03:55.590449"], ["vat", 47.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (13.1ms) Completed 200 OK in 18ms (Views: 14.2ms | ActiveRecord: 0.9ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (13.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (20.5ms) Completed 200 OK in 29ms (Views: 25.5ms | ActiveRecord: 0.7ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-03", "category_id"=>"2", "total_all_taxes"=>"519.0", "vat"=>"31.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:03:55.798892"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.7ms) Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.5ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1761"], ["name", "enim"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:03:55.890627"], ["date", "2015-02-20"], ["name", "Ut facilis soluta perferendis nemo placeat."], ["state", "new"], ["updated_at", "2015-02-20 08:03:55.890627"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3666"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:03:55.897811"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Ad esse maiores sint culpa."], ["total_all_taxes", 592.0], ["updated_at", "2015-02-20 08:03:55.897811"], ["vat", 95.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7237"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:03:55.905538"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Nesciunt non omnis aut."], ["total_all_taxes", 112.0], ["updated_at", "2015-02-20 08:03:55.905538"], ["vat", 1.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9777"], ["name", "qui"], ["vat_deductible", "f"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:03:55.978478"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Sit aspernatur qui quia similique sint beatae eos."], ["total_all_taxes", 569.0], ["updated_at", "2015-02-20 08:03:55.978478"], ["vat", 102.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:03:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.9ms) Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:03:56 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:03:56.077857"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:03:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:03:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (20.5ms) Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 2.2ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6216"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:03:58.190635"], ["date", "2015-02-20"], ["name", "Velit doloribus quis."], ["state", "new"], ["updated_at", "2015-02-20 08:03:58.190635"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2576"], ["name", "deserunt"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:03:58.196671"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Corporis non et."], ["total_all_taxes", 472.0], ["updated_at", "2015-02-20 08:03:58.196671"], ["vat", 76.0]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4811"], ["name", "placeat"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:03:58.204702"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Impedit illum ut consequuntur dolores eos rerum."], ["total_all_taxes", 153.0], ["updated_at", "2015-02-20 08:03:58.204702"], ["vat", 19.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:03:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.0ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 1.4ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:03:58 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:03:58.311989"]]  (2.0ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses Completed 302 Found in 8ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:03:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:03:58 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 1.1ms)  (2.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6828"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:04:00.441069"], ["date", "2015-02-20"], ["name", "Est ea et et culpa."], ["state", "new"], ["updated_at", "2015-02-20 08:04:00.441069"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8187"], ["name", "porro"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:04:00.450316"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Officia quia et nihil molestiae in ullam."], ["total_all_taxes", 359.0], ["updated_at", "2015-02-20 08:04:00.450316"], ["vat", 46.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3054"], ["name", "magni"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:04:00.458309"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Molestiae numquam sequi labore alias necessitatibus hic."], ["total_all_taxes", 610.0], ["updated_at", "2015-02-20 08:04:00.458309"], ["vat", 79.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1194"], ["name", "consequuntur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:04:00.466093"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Eaque quae hic ex architecto."], ["total_all_taxes", 235.0], ["updated_at", "2015-02-20 08:04:00.466093"], ["vat", 31.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2857"], ["name", "atque"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:04:00.472841"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Enim ut necessitatibus suscipit et ut non dignissimos."], ["total_all_taxes", 130.0], ["updated_at", "2015-02-20 08:04:00.472841"], ["vat", 19.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:04:00 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (16.5ms) Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 1.4ms)  (2.5ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1646"], ["name", "aut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6233"], ["name", "impedit"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (1.8ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.5ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.1ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8521"], ["name", "debitis"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:04:00.643870"], ["date", "2015-02-20"], ["name", "Eos reprehenderit atque."], ["state", "submited"], ["updated_at", "2015-02-20 08:04:00.643870"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0653"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:04:00.651908"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "At temporibus aliquam ullam."], ["total_all_taxes", 133.0], ["updated_at", "2015-02-20 08:04:00.651908"], ["vat", 6.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1642"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:04:00.659065"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Et consequuntur rem iste beatae sequi eum."], ["total_all_taxes", 982.0], ["updated_at", "2015-02-20 08:04:00.659065"], ["vat", 146.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:04:00 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.4ms) Completed 200 OK in 19ms (Views: 16.4ms | ActiveRecord: 1.6ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:04:00 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:04:00.765924"]]  (2.0ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:04:00 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.1ms) Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.6ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8583"], ["name", "fugit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:04:02.904068"], ["date", "2015-02-20"], ["name", "Et et perferendis autem."], ["state", "submited"], ["updated_at", "2015-02-20 08:04:02.904068"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2159"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:04:02.910578"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Blanditiis quo rerum error."], ["total_all_taxes", 491.0], ["updated_at", "2015-02-20 08:04:02.910578"], ["vat", 19.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1201"], ["name", "iure"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:04:02.918137"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Possimus beatae reprehenderit quia odio."], ["total_all_taxes", 122.0], ["updated_at", "2015-02-20 08:04:02.918137"], ["vat", 3.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2131"], ["name", "reiciendis"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:04:02.926059"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Deserunt esse est velit."], ["total_all_taxes", 375.0], ["updated_at", "2015-02-20 08:04:02.926059"], ["vat", 35.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:04:02 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.5ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (20.5ms) Completed 200 OK in 23ms (Views: 19.8ms | ActiveRecord: 2.5ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:04:03 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:04:03.037418"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51023/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:04:03 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51023/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:04:03 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 1.2ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8241"], ["name", "sapiente"], ["vat_deductible", "t"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:05:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (100.7ms) Completed 200 OK in 211ms (Views: 207.3ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:05:42 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (311.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (317.3ms) Completed 200 OK in 324ms (Views: 319.8ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:05:42 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:42.760635"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:05:42.760635"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:42 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (81.3ms) Completed 200 OK in 87ms (Views: 84.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:05:42 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (71.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (78.6ms) Completed 200 OK in 102ms (Views: 84.8ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:05:43.138120"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:05:43.138120"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1437"], ["name", "consequatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:43.231843"], ["date", "2015-02-20"], ["name", "Veniam officia dolorem consectetur dolores nemo tenetur."], ["state", "new"], ["updated_at", "2015-02-20 08:05:43.231843"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8672"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:43.238391"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Libero porro quia iure vero."], ["total_all_taxes", 526.0], ["updated_at", "2015-02-20 08:05:43.238391"], ["vat", 4.0]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8633"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:43.247214"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Et qui error molestiae odit voluptate eos."], ["total_all_taxes", 951.0], ["updated_at", "2015-02-20 08:05:43.247214"], ["vat", 6.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.7ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 14ms (Views: 12.9ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:05:43.400199"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.6ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0660"], ["name", "minima"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:43.488210"], ["date", "2015-02-20"], ["name", "Quo non quo ea expedita."], ["state", "new"], ["updated_at", "2015-02-20 08:05:43.488210"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2136"], ["name", "animi"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:43.495082"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Minima nobis et similique."], ["total_all_taxes", 723.0], ["updated_at", "2015-02-20 08:05:43.495082"], ["vat", 116.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6505"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:05:43.501633"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Alias ut optio et dolores facilis nostrum mollitia."], ["total_all_taxes", 638.0], ["updated_at", "2015-02-20 08:05:43.501633"], ["vat", 109.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7502"], ["name", "tempore"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:43.507723"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Dolore libero unde."], ["total_all_taxes", 741.0], ["updated_at", "2015-02-20 08:05:43.507723"], ["vat", 72.0]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3235"], ["name", "quia"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:43.517558"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Minima aut voluptas repellendus dolorem et neque."], ["total_all_taxes", 849.0], ["updated_at", "2015-02-20 08:05:43.517558"], ["vat", 13.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.0ms) Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (15.6ms) Completed 200 OK in 20ms (Views: 17.9ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-25", "category_id"=>"2", "total_all_taxes"=>"723.0", "vat"=>"116.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:05:43.695840"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.7ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1287"], ["name", "cumque"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:43.786913"], ["date", "2015-02-20"], ["name", "Nobis inventore voluptas."], ["state", "new"], ["updated_at", "2015-02-20 08:05:43.786913"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6473"], ["name", "ullam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:43.795552"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Laborum delectus in repellat est id harum ut."], ["total_all_taxes", 276.0], ["updated_at", "2015-02-20 08:05:43.795552"], ["vat", 35.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5687"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:43.802703"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Officia veniam animi."], ["total_all_taxes", 744.0], ["updated_at", "2015-02-20 08:05:43.802703"], ["vat", 51.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2637"], ["name", "ex"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:43.865700"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Et excepturi sapiente adipisci molestiae rerum quia voluptatem."], ["total_all_taxes", 106.0], ["updated_at", "2015-02-20 08:05:43.865700"], ["vat", 17.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5881"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:05:43.871539"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Enim et a ducimus harum debitis voluptates incidunt."], ["total_all_taxes", 928.0], ["updated_at", "2015-02-20 08:05:43.871539"], ["vat", 19.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8385"], ["name", "voluptate"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:43.878539"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Mollitia aperiam nesciunt ea doloribus."], ["total_all_taxes", 969.0], ["updated_at", "2015-02-20 08:05:43.878539"], ["vat", 94.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:05:43.966891"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51044/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:05:43 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.9ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5693"], ["name", "eligendi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:46.115687"], ["date", "2015-02-20"], ["name", "Facilis dolor rerum."], ["state", "new"], ["updated_at", "2015-02-20 08:05:46.115687"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6822"], ["name", "ad"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:46.123814"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Cupiditate sapiente dolorum aut mollitia."], ["total_all_taxes", 683.0], ["updated_at", "2015-02-20 08:05:46.123814"], ["vat", 103.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2557"], ["name", "id"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:46.129884"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Omnis libero quo culpa non."], ["total_all_taxes", 813.0], ["updated_at", "2015-02-20 08:05:46.129884"], ["vat", 140.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2975"], ["name", "vel"], ["vat_deductible", "t"]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:46.139005"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Aut laboriosam cupiditate reprehenderit quam."], ["total_all_taxes", 999.0], ["updated_at", "2015-02-20 08:05:46.139005"], ["vat", 110.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:05:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.1ms) Completed 200 OK in 13ms (Views: 11.1ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:05:46 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:05:46.224152"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:05:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51044/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:05:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4466"], ["name", "dolorem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:48.362962"], ["date", "2015-02-20"], ["name", "Consequatur non molestiae unde voluptatem ipsa."], ["state", "new"], ["updated_at", "2015-02-20 08:05:48.362962"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4636"], ["name", "repellat"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:48.370620"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Repellendus nulla accusamus ullam doloremque facilis voluptatem at."], ["total_all_taxes", 680.0], ["updated_at", "2015-02-20 08:05:48.370620"], ["vat", 130.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4581"], ["name", "veritatis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:48.378343"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Odit et praesentium suscipit iure nobis adipisci."], ["total_all_taxes", 764.0], ["updated_at", "2015-02-20 08:05:48.378343"], ["vat", 52.0]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2828"], ["name", "quod"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:05:48.451045"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Nulla neque similique omnis."], ["total_all_taxes", 645.0], ["updated_at", "2015-02-20 08:05:48.451045"], ["vat", 31.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7228"], ["name", "provident"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:48.458043"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Quae est qui rerum vel consequatur sed."], ["total_all_taxes", 316.0], ["updated_at", "2015-02-20 08:05:48.458043"], ["vat", 61.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 13ms (Views: 10.2ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.3ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1737"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1577"], ["name", "eius"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.6ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.5ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.8ms) DELETE FROM "expense_gun_expense_lines";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7379"], ["name", "minima"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:48.622215"], ["date", "2015-02-20"], ["name", "Autem ullam rerum dolorem delectus."], ["state", "submited"], ["updated_at", "2015-02-20 08:05:48.622215"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3442"], ["name", "ducimus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:48.629828"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Aut temporibus reprehenderit distinctio at illum."], ["total_all_taxes", 214.0], ["updated_at", "2015-02-20 08:05:48.629828"], ["vat", 2.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6685"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:48.636914"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Odio dignissimos qui aperiam velit numquam quaerat."], ["total_all_taxes", 430.0], ["updated_at", "2015-02-20 08:05:48.636914"], ["vat", 8.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.3ms) Completed 200 OK in 15ms (Views: 13.0ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:05:48.739991"]]  (2.9ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.7ms) Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.4ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9755"], ["name", "a"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:05:48.834421"], ["date", "2015-02-20"], ["name", "Dolor assumenda qui in."], ["state", "submited"], ["updated_at", "2015-02-20 08:05:48.834421"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0528"], ["name", "quis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:48.840598"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Explicabo recusandae eos aut dolore voluptatem quasi veniam."], ["total_all_taxes", 151.0], ["updated_at", "2015-02-20 08:05:48.840598"], ["vat", 17.0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7971"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:48.849332"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Qui magnam sit quia qui ex at."], ["total_all_taxes", 540.0], ["updated_at", "2015-02-20 08:05:48.849332"], ["vat", 77.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6862"], ["name", "quia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:05:48.856575"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Voluptate omnis aut."], ["total_all_taxes", 519.0], ["updated_at", "2015-02-20 08:05:48.856575"], ["vat", 82.0]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2816"], ["name", "labore"], ["vat_deductible", "t"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:05:48.867624"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Pariatur praesentium nesciunt quod architecto."], ["total_all_taxes", 862.0], ["updated_at", "2015-02-20 08:05:48.867624"], ["vat", 117.0]]  (1.4ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:05:48.971736"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51044/expense_gun/expenses Completed 302 Found in 8ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51044/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:05:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (16.7ms) Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 2.1ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.0ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4134"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:24 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (101.0ms) Completed 200 OK in 214ms (Views: 210.3ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:07:24 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (316.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (322.3ms) Completed 200 OK in 331ms (Views: 325.6ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:25.416380"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:07:25.416380"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (91.4ms) Completed 200 OK in 98ms (Views: 94.8ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (75.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (81.7ms) Completed 200 OK in 107ms (Views: 86.3ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:25.810566"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:07:25.810566"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.1ms) Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8137"], ["name", "doloribus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:25.905797"], ["date", "2015-02-20"], ["name", "Non qui doloribus voluptatem eligendi asperiores dignissimos enim."], ["state", "new"], ["updated_at", "2015-02-20 08:07:25.905797"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7114"], ["name", "sint"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:25.912515"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Nostrum accusantium quia tempora sit quia est."], ["total_all_taxes", 403.0], ["updated_at", "2015-02-20 08:07:25.912515"], ["vat", 37.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8771"], ["name", "dolorum"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:25.918937"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Aspernatur corporis beatae delectus porro enim eius."], ["total_all_taxes", 259.0], ["updated_at", "2015-02-20 08:07:25.918937"], ["vat", 7.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.5ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:07:25 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:07:26.082254"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.3ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6657"], ["name", "dicta"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:26.168770"], ["date", "2015-02-20"], ["name", "Sit voluptatem reiciendis rem qui."], ["state", "new"], ["updated_at", "2015-02-20 08:07:26.168770"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2793"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:26.175131"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Qui autem et mollitia architecto consequatur laudantium."], ["total_all_taxes", 661.0], ["updated_at", "2015-02-20 08:07:26.175131"], ["vat", 74.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2185"], ["name", "dolore"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:26.182502"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Non aliquam amet omnis modi provident explicabo perspiciatis."], ["total_all_taxes", 688.0], ["updated_at", "2015-02-20 08:07:26.182502"], ["vat", 110.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9477"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:26.189251"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Adipisci qui quia sed iure nostrum dolores numquam."], ["total_all_taxes", 772.0], ["updated_at", "2015-02-20 08:07:26.189251"], ["vat", 4.0]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5537"], ["name", "ea"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:26.198433"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Quam vel magni fugiat maxime."], ["total_all_taxes", 938.0], ["updated_at", "2015-02-20 08:07:26.198433"], ["vat", 114.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8316"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:26.204917"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Enim aut quod totam est dolorum alias."], ["total_all_taxes", 349.0], ["updated_at", "2015-02-20 08:07:26.204917"], ["vat", 6.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.7ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (15.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (19.6ms) Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-01", "category_id"=>"2", "total_all_taxes"=>"661.0", "vat"=>"74.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:07:26.384176"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.1ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3635"], ["name", "modi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:26.539265"], ["date", "2015-02-20"], ["name", "Qui velit et ea."], ["state", "new"], ["updated_at", "2015-02-20 08:07:26.539265"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5104"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:26.547315"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Consequatur voluptatum eveniet quas."], ["total_all_taxes", 743.0], ["updated_at", "2015-02-20 08:07:26.547315"], ["vat", 132.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3170"], ["name", "quasi"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:26.554341"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Distinctio omnis molestias enim aut nihil."], ["total_all_taxes", 993.0], ["updated_at", "2015-02-20 08:07:26.554341"], ["vat", 138.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4237"], ["name", "perferendis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:26.561183"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Repudiandae ipsum dolore labore quaerat suscipit inventore quam."], ["total_all_taxes", 106.0], ["updated_at", "2015-02-20 08:07:26.561183"], ["vat", 12.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.7ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:07:26.645996"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51068/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.9ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4390"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:26.735102"], ["date", "2015-02-20"], ["name", "Odio iusto vero."], ["state", "new"], ["updated_at", "2015-02-20 08:07:26.735102"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1691"], ["name", "doloribus"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:26.741236"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Quo et libero sapiente quo nulla."], ["total_all_taxes", 665.0], ["updated_at", "2015-02-20 08:07:26.741236"], ["vat", 130.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6344"], ["name", "minima"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:26.748653"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Hic molestiae qui at in velit ea exercitationem."], ["total_all_taxes", 386.0], ["updated_at", "2015-02-20 08:07:26.748653"], ["vat", 49.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:07:26.833537"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51068/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:26 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 1.3ms)  (3.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4665"], ["name", "autem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:28.966379"], ["date", "2015-02-20"], ["name", "Quis sunt laudantium hic quibusdam voluptatem minima."], ["state", "new"], ["updated_at", "2015-02-20 08:07:28.966379"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6687"], ["name", "soluta"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:28.975841"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Quasi quam rem suscipit."], ["total_all_taxes", 340.0], ["updated_at", "2015-02-20 08:07:28.975841"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2423"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:28.984339"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Voluptates ab earum aut."], ["total_all_taxes", 909.0], ["updated_at", "2015-02-20 08:07:28.984339"], ["vat", 172.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:28 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.7ms)  (2.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2863"], ["name", "ratione"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9773"], ["name", "harum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.3ms) DELETE FROM "expense_gun_categories";  (0.6ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.1ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.1ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2386"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:29.230081"], ["date", "2015-02-20"], ["name", "Sed et dolorem ut voluptas nulla tenetur a."], ["state", "submited"], ["updated_at", "2015-02-20 08:07:29.230081"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2912"], ["name", "et"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:29.236085"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Consequatur nihil corporis eum beatae."], ["total_all_taxes", 197.0], ["updated_at", "2015-02-20 08:07:29.236085"], ["vat", 36.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7611"], ["name", "incidunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:29.242392"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Voluptas in porro."], ["total_all_taxes", 532.0], ["updated_at", "2015-02-20 08:07:29.242392"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1660"], ["name", "aut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:29.250121"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Quam adipisci repellat."], ["total_all_taxes", 188.0], ["updated_at", "2015-02-20 08:07:29.250121"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3185"], ["name", "ut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:29.257853"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Fugit voluptates a facilis veritatis suscipit."], ["total_all_taxes", 368.0], ["updated_at", "2015-02-20 08:07:29.257853"], ["vat", 26.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1870"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:29.265136"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Ratione est et voluptatem placeat iusto."], ["total_all_taxes", 913.0], ["updated_at", "2015-02-20 08:07:29.265136"], ["vat", 134.0]]  (1.3ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.5ms) Completed 200 OK in 18ms (Views: 14.9ms | ActiveRecord: 1.8ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:07:29.371692"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.2ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 1.0ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7441"], ["name", "et"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:29.475890"], ["date", "2015-02-20"], ["name", "Recusandae rerum illum soluta cumque deserunt provident."], ["state", "submited"], ["updated_at", "2015-02-20 08:07:29.475890"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7198"], ["name", "est"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:29.485167"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Commodi maxime suscipit veniam illum officiis nam."], ["total_all_taxes", 527.0], ["updated_at", "2015-02-20 08:07:29.485167"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6728"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:29.492591"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Necessitatibus sunt placeat molestias harum asperiores voluptatem."], ["total_all_taxes", 918.0], ["updated_at", "2015-02-20 08:07:29.492591"], ["vat", 4.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (19.1ms) Completed 200 OK in 22ms (Views: 18.6ms | ActiveRecord: 2.3ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:07:29.601483"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:51068/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51068/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.3ms) Completed 200 OK in 13ms (Views: 10.5ms | ActiveRecord: 1.4ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6313"], ["name", "esse"], ["vat_deductible", "t"]]  (2.5ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (104.5ms) Completed 200 OK in 225ms (Views: 220.9ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:07:54 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (315.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (321.7ms) Completed 200 OK in 329ms (Views: 324.3ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:55.192549"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:07:55.192549"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (84.1ms) Completed 200 OK in 90ms (Views: 87.3ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (76.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (83.9ms) Completed 200 OK in 109ms (Views: 89.5ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:55.586351"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:07:55.586351"], ["vat", 20.0]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.5ms) Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5863"], ["name", "provident"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:55.679837"], ["date", "2015-02-20"], ["name", "Omnis earum labore quia."], ["state", "new"], ["updated_at", "2015-02-20 08:07:55.679837"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5492"], ["name", "odit"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:55.689324"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Nihil dolorem iusto repudiandae porro est."], ["total_all_taxes", 556.0], ["updated_at", "2015-02-20 08:07:55.689324"], ["vat", 12.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1711"], ["name", "fuga"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:55.695555"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Ad quo voluptatem ab."], ["total_all_taxes", 945.0], ["updated_at", "2015-02-20 08:07:55.695555"], ["vat", 120.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.7ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.2ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:07:55.851247"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8398"], ["name", "in"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:55.939748"], ["date", "2015-02-20"], ["name", "Tempore eum accusamus tempora ab dolore."], ["state", "new"], ["updated_at", "2015-02-20 08:07:55.939748"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7493"], ["name", "tempore"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:55.946204"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Blanditiis nemo ea eum."], ["total_all_taxes", 988.0], ["updated_at", "2015-02-20 08:07:55.946204"], ["vat", 170.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4301"], ["name", "consequatur"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:55.956710"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Repellendus labore debitis."], ["total_all_taxes", 812.0], ["updated_at", "2015-02-20 08:07:55.956710"], ["vat", 2.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8575"], ["name", "ad"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:55.963252"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Dolor quis natus non doloremque voluptas veritatis odit."], ["total_all_taxes", 398.0], ["updated_at", "2015-02-20 08:07:55.963252"], ["vat", 19.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2030"], ["name", "ipsum"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:55.969955"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "In minus id illum."], ["total_all_taxes", 144.0], ["updated_at", "2015-02-20 08:07:55.969955"], ["vat", 1.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:55 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.1ms) Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.7ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (15.2ms) Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-16", "category_id"=>"2", "total_all_taxes"=>"988.0", "vat"=>"170.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:07:56.147041"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5162"], ["name", "non"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:56.240129"], ["date", "2015-02-20"], ["name", "Doloribus totam deserunt velit minima."], ["state", "new"], ["updated_at", "2015-02-20 08:07:56.240129"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7308"], ["name", "excepturi"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:56.248201"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Porro saepe aut omnis."], ["total_all_taxes", 855.0], ["updated_at", "2015-02-20 08:07:56.248201"], ["vat", 147.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1367"], ["name", "a"], ["vat_deductible", "t"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:56.256765"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Beatae et esse non."], ["total_all_taxes", 774.0], ["updated_at", "2015-02-20 08:07:56.256765"], ["vat", 138.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3361"], ["name", "sed"], ["vat_deductible", "t"]]  (2.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:56.323373"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Dolorem laudantium voluptatem eius aliquam eum ea."], ["total_all_taxes", 183.0], ["updated_at", "2015-02-20 08:07:56.323373"], ["vat", 25.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7544"], ["name", "iusto"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:56.329478"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Sunt voluptas aut voluptatibus excepturi."], ["total_all_taxes", 911.0], ["updated_at", "2015-02-20 08:07:56.329478"], ["vat", 20.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.5ms) Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:07:56.415799"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51087/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.6ms) Completed 200 OK in 15ms (Views: 12.9ms | ActiveRecord: 0.9ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8783"], ["name", "neque"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:56.508595"], ["date", "2015-02-20"], ["name", "Consequuntur et beatae magnam reprehenderit amet veritatis."], ["state", "new"], ["updated_at", "2015-02-20 08:07:56.508595"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6104"], ["name", "modi"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:56.514481"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Aliquid asperiores id laboriosam quae."], ["total_all_taxes", 154.0], ["updated_at", "2015-02-20 08:07:56.514481"], ["vat", 2.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7710"], ["name", "quos"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:07:56.521866"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Et ullam nostrum non quo asperiores eos aut."], ["total_all_taxes", 425.0], ["updated_at", "2015-02-20 08:07:56.521866"], ["vat", 68.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7568"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:56.527942"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Eum doloremque sed neque dicta a pariatur in."], ["total_all_taxes", 448.0], ["updated_at", "2015-02-20 08:07:56.527942"], ["vat", 7.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2627"], ["name", "non"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:56.534268"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Sed sit quo nulla et neque ullam omnis."], ["total_all_taxes", 812.0], ["updated_at", "2015-02-20 08:07:56.534268"], ["vat", 6.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:07:56.622881"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51087/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:56 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 10ms (Views: 8.0ms | ActiveRecord: 0.9ms)  (2.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0695"], ["name", "esse"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:58.765123"], ["date", "2015-02-20"], ["name", "At aliquid velit sapiente quos non commodi voluptatem."], ["state", "new"], ["updated_at", "2015-02-20 08:07:58.765123"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3481"], ["name", "modi"], ["vat_deductible", "t"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:58.775380"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Praesentium molestiae tempore eveniet qui qui iste."], ["total_all_taxes", 523.0], ["updated_at", "2015-02-20 08:07:58.775380"], ["vat", 48.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3768"], ["name", "voluptates"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:58.783316"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Et ex neque fugiat recusandae officia sint."], ["total_all_taxes", 451.0], ["updated_at", "2015-02-20 08:07:58.783316"], ["vat", 88.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:58 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.7ms) Completed 200 OK in 18ms (Views: 15.4ms | ActiveRecord: 0.9ms)  (2.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2612"], ["name", "dolorum"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.7ms) DELETE FROM "expense_gun_expenses";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5651"], ["name", "deleniti"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.6ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.2ms) DELETE FROM "expense_gun_expense_lines";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.2ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6543"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:59.025355"], ["date", "2015-02-20"], ["name", "Repellat dignissimos in velit rem iusto saepe hic."], ["state", "submited"], ["updated_at", "2015-02-20 08:07:59.025355"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1686"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:59.031411"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Laboriosam nihil ipsa inventore temporibus voluptate."], ["total_all_taxes", 167.0], ["updated_at", "2015-02-20 08:07:59.031411"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9860"], ["name", "ea"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:59.037681"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Voluptatum accusantium cupiditate tenetur."], ["total_all_taxes", 762.0], ["updated_at", "2015-02-20 08:07:59.037681"], ["vat", 152.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5271"], ["name", "rem"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:59.045533"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Accusamus ducimus sed officiis possimus sequi officia."], ["total_all_taxes", 240.0], ["updated_at", "2015-02-20 08:07:59.045533"], ["vat", 31.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2483"], ["name", "sunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:59.053455"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Quod dolorum ratione suscipit."], ["total_all_taxes", 978.0], ["updated_at", "2015-02-20 08:07:59.053455"], ["vat", 85.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (20.8ms) Completed 200 OK in 24ms (Views: 19.6ms | ActiveRecord: 2.7ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:07:59.159566"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.9ms) Completed 200 OK in 10ms (Views: 7.8ms | ActiveRecord: 0.8ms)  (1.5ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5466"], ["name", "eaque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:07:59.257615"], ["date", "2015-02-20"], ["name", "Expedita voluptatum optio est pariatur ipsam nihil."], ["state", "submited"], ["updated_at", "2015-02-20 08:07:59.257615"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5165"], ["name", "quos"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:59.264098"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Ut blanditiis libero fugiat."], ["total_all_taxes", 566.0], ["updated_at", "2015-02-20 08:07:59.264098"], ["vat", 54.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7474"], ["name", "totam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:07:59.273310"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Minima ut aut officia ut magnam eaque est."], ["total_all_taxes", 995.0], ["updated_at", "2015-02-20 08:07:59.273310"], ["vat", 106.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8916"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:07:59.281766"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Quidem dolorum assumenda ipsam quia nobis beatae."], ["total_all_taxes", 414.0], ["updated_at", "2015-02-20 08:07:59.281766"], ["vat", 66.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0292"], ["name", "non"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:07:59.287716"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Et ea deleniti qui."], ["total_all_taxes", 446.0], ["updated_at", "2015-02-20 08:07:59.287716"], ["vat", 30.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (18.9ms) Completed 200 OK in 22ms (Views: 18.5ms | ActiveRecord: 2.1ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:07:59.390259"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:51087/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51087/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:07:59 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.9ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.8ms)  (3.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8518"], ["name", "quo"], ["vat_deductible", "f"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:08:32 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (105.6ms) Completed 200 OK in 212ms (Views: 208.0ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:08:32 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (308.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (315.9ms) Completed 200 OK in 323ms (Views: 318.5ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:08:32 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:32.817902"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:08:32.817902"]]  (3.1ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:32 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (80.7ms) Completed 200 OK in 85ms (Views: 83.2ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:08:32 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (74.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (85.0ms) Completed 200 OK in 105ms (Views: 89.5ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:33.197075"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:08:33.197075"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8851"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:33.290490"], ["date", "2015-02-20"], ["name", "Pariatur distinctio error consectetur omnis necessitatibus."], ["state", "new"], ["updated_at", "2015-02-20 08:08:33.290490"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8744"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:33.297149"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Quo dicta delectus in aut illum."], ["total_all_taxes", 903.0], ["updated_at", "2015-02-20 08:08:33.297149"], ["vat", 24.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8725"], ["name", "illo"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:08:33.303399"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Maxime debitis sit qui."], ["total_all_taxes", 681.0], ["updated_at", "2015-02-20 08:08:33.303399"], ["vat", 54.0]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3878"], ["name", "qui"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:33.311917"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Ut et aut recusandae hic."], ["total_all_taxes", 710.0], ["updated_at", "2015-02-20 08:08:33.311917"], ["vat", 117.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5212"], ["name", "aut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:33.317660"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "In rem laborum."], ["total_all_taxes", 941.0], ["updated_at", "2015-02-20 08:08:33.317660"], ["vat", 26.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:08:33.475677"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.8ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.6ms)  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8901"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:33.567646"], ["date", "2015-02-20"], ["name", "Est aspernatur quia vel dolor."], ["state", "new"], ["updated_at", "2015-02-20 08:08:33.567646"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3410"], ["name", "tenetur"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:33.574138"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Et velit ut."], ["total_all_taxes", 846.0], ["updated_at", "2015-02-20 08:08:33.574138"], ["vat", 162.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6712"], ["name", "quia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:08:33.580780"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Ut dolor iusto."], ["total_all_taxes", 862.0], ["updated_at", "2015-02-20 08:08:33.580780"], ["vat", 39.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9549"], ["name", "quidem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:33.586763"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Quo qui reprehenderit eaque quidem possimus dolor et."], ["total_all_taxes", 594.0], ["updated_at", "2015-02-20 08:08:33.586763"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1867"], ["name", "autem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:08:33.597023"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Ipsum dolor perferendis mollitia consectetur itaque."], ["total_all_taxes", 229.0], ["updated_at", "2015-02-20 08:08:33.597023"], ["vat", 41.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (12.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (16.6ms) Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.6ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-17", "category_id"=>"2", "total_all_taxes"=>"846.0", "vat"=>"162.0", "company_part"=>"50.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:08:33.781152"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8552"], ["name", "qui"], ["vat_deductible", "f"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:33.929857"], ["date", "2015-02-20"], ["name", "Aut doloremque sint."], ["state", "new"], ["updated_at", "2015-02-20 08:08:33.929857"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6595"], ["name", "unde"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:33.935813"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Dolores est explicabo sint sed similique quo."], ["total_all_taxes", 886.0], ["updated_at", "2015-02-20 08:08:33.935813"], ["vat", 115.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5952"], ["name", "nisi"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:08:33.942034"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Sunt accusamus sint voluptas."], ["total_all_taxes", 309.0], ["updated_at", "2015-02-20 08:08:33.942034"], ["vat", 58.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6853"], ["name", "velit"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:33.948001"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Delectus porro dolorem et cumque aliquid veritatis."], ["total_all_taxes", 181.0], ["updated_at", "2015-02-20 08:08:33.948001"], ["vat", 23.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:08:33 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.6ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:08:34.033024"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.1ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51102/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.8ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3831"], ["name", "et"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:34.126056"], ["date", "2015-02-20"], ["name", "Aliquid expedita id voluptatibus iure iusto."], ["state", "new"], ["updated_at", "2015-02-20 08:08:34.126056"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2322"], ["name", "quisquam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:34.132280"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Dolor ex et veritatis autem ut neque."], ["total_all_taxes", 444.0], ["updated_at", "2015-02-20 08:08:34.132280"], ["vat", 26.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4145"], ["name", "ut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:34.139192"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Recusandae pariatur quisquam."], ["total_all_taxes", 835.0], ["updated_at", "2015-02-20 08:08:34.139192"], ["vat", 89.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:08:34.222304"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51102/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:08:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 1.0ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3796"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:36.316810"], ["date", "2015-02-20"], ["name", "Dolor sunt fugit adipisci soluta sit qui."], ["state", "new"], ["updated_at", "2015-02-20 08:08:36.316810"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2169"], ["name", "sed"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:36.326233"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Mollitia sit natus veritatis."], ["total_all_taxes", 491.0], ["updated_at", "2015-02-20 08:08:36.326233"], ["vat", 25.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2755"], ["name", "provident"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:08:36.333822"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Voluptatum qui quia vel aut."], ["total_all_taxes", 851.0], ["updated_at", "2015-02-20 08:08:36.333822"], ["vat", 161.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1112"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:36.340972"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Qui et nisi saepe sit tempore non vero."], ["total_all_taxes", 572.0], ["updated_at", "2015-02-20 08:08:36.340972"], ["vat", 60.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.5ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.8ms) Completed 200 OK in 18ms (Views: 13.3ms | ActiveRecord: 1.1ms)  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2389"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6577"], ["name", "temporibus"], ["vat_deductible", "t"]]  (1.2ms) commit transaction  (1.4ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (2.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9511"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:36.577305"], ["date", "2015-02-20"], ["name", "Cum quia voluptas."], ["state", "submited"], ["updated_at", "2015-02-20 08:08:36.577305"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7440"], ["name", "officiis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:08:36.583366"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Iste exercitationem doloribus sed consequatur neque."], ["total_all_taxes", 209.0], ["updated_at", "2015-02-20 08:08:36.583366"], ["vat", 19.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3717"], ["name", "beatae"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:08:36.589926"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Vel sit voluptatem facere cum quis."], ["total_all_taxes", 197.0], ["updated_at", "2015-02-20 08:08:36.589926"], ["vat", 37.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8773"], ["name", "ea"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:08:36.596061"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Tenetur et qui veniam sit minima."], ["total_all_taxes", 451.0], ["updated_at", "2015-02-20 08:08:36.596061"], ["vat", 83.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.0ms) Completed 200 OK in 19ms (Views: 16.6ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:08:36.703640"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.6ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6324"], ["name", "illum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:08:36.816685"], ["date", "2015-02-20"], ["name", "Saepe vel rem aut quaerat id eum."], ["state", "submited"], ["updated_at", "2015-02-20 08:08:36.816685"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3873"], ["name", "eligendi"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:08:36.827021"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Eveniet nihil cumque esse neque rerum modi."], ["total_all_taxes", 828.0], ["updated_at", "2015-02-20 08:08:36.827021"], ["vat", 62.0]]  (3.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3849"], ["name", "est"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:08:36.837927"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Repellendus facere rerum itaque corporis."], ["total_all_taxes", 671.0], ["updated_at", "2015-02-20 08:08:36.837927"], ["vat", 9.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.6ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (22.4ms) Completed 200 OK in 25ms (Views: 20.8ms | ActiveRecord: 3.0ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:08:36.941319"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51102/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51102/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:08:36 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.9ms) Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.8ms)  (3.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2451"], ["name", "quasi"], ["vat_deductible", "f"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (101.1ms) Completed 200 OK in 209ms (Views: 204.7ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:10:06 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (298.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (305.7ms) Completed 200 OK in 313ms (Views: 308.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:06 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:06.982601"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:10:06.982601"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:06 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (85.0ms) Completed 200 OK in 90ms (Views: 88.1ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (81.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (91.3ms) Completed 200 OK in 113ms (Views: 96.3ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:07.377955"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:10:07.377955"], ["vat", 20.0]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.0ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8377"], ["name", "odio"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:07.475441"], ["date", "2015-02-20"], ["name", "Quisquam et ut qui nam minus sit sit."], ["state", "new"], ["updated_at", "2015-02-20 08:10:07.475441"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6564"], ["name", "quod"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:07.484090"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Soluta earum voluptas."], ["total_all_taxes", 166.0], ["updated_at", "2015-02-20 08:10:07.484090"], ["vat", 29.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3553"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:07.490235"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Facilis non incidunt blanditiis omnis ullam."], ["total_all_taxes", 904.0], ["updated_at", "2015-02-20 08:10:07.490235"], ["vat", 46.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.4ms) Completed 200 OK in 9ms (Views: 6.5ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.4ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:10:07.646240"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.5ms) Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.4ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4222"], ["name", "adipisci"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:07.733164"], ["date", "2015-02-20"], ["name", "Voluptatem blanditiis modi doloremque earum."], ["state", "new"], ["updated_at", "2015-02-20 08:10:07.733164"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6617"], ["name", "voluptas"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:07.739314"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Sit vel aut qui."], ["total_all_taxes", 566.0], ["updated_at", "2015-02-20 08:10:07.739314"], ["vat", 29.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3822"], ["name", "autem"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:07.749700"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Est temporibus provident eum quis quas tempore."], ["total_all_taxes", 585.0], ["updated_at", "2015-02-20 08:10:07.749700"], ["vat", 41.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9132"], ["name", "rem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:07.755629"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Molestias atque perspiciatis et."], ["total_all_taxes", 235.0], ["updated_at", "2015-02-20 08:10:07.755629"], ["vat", 18.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.7ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (18.7ms) Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.4ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-30", "category_id"=>"2", "total_all_taxes"=>"566.0", "vat"=>"29.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:10:07.929944"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:07 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.0ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9672"], ["name", "dolorem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:08.021226"], ["date", "2015-02-20"], ["name", "Praesentium at tempore officia."], ["state", "new"], ["updated_at", "2015-02-20 08:10:08.021226"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5701"], ["name", "assumenda"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:08.030514"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Qui dolor officia dolore dolorem magnam perspiciatis beatae."], ["total_all_taxes", 569.0], ["updated_at", "2015-02-20 08:10:08.030514"], ["vat", 12.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2238"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:08.037185"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Non nesciunt quis."], ["total_all_taxes", 945.0], ["updated_at", "2015-02-20 08:10:08.037185"], ["vat", 111.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.2ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:10:08.178212"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51136/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.2ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 0.9ms)  (1.1ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3346"], ["name", "ut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:08.271766"], ["date", "2015-02-20"], ["name", "Libero reiciendis est aliquam."], ["state", "new"], ["updated_at", "2015-02-20 08:10:08.271766"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2556"], ["name", "aut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:08.277944"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Ducimus consectetur accusantium sit incidunt cupiditate."], ["total_all_taxes", 607.0], ["updated_at", "2015-02-20 08:10:08.277944"], ["vat", 44.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3370"], ["name", "accusamus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:08.284858"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Eos neque eveniet."], ["total_all_taxes", 254.0], ["updated_at", "2015-02-20 08:10:08.284858"], ["vat", 19.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.1ms) Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:10:08.369577"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51136/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.7ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3235"], ["name", "sed"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:08.457908"], ["date", "2015-02-20"], ["name", "Dolorum et nihil ab a provident laborum aspernatur."], ["state", "new"], ["updated_at", "2015-02-20 08:10:08.457908"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6157"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:08.464200"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Modi non quos."], ["total_all_taxes", 452.0], ["updated_at", "2015-02-20 08:10:08.464200"], ["vat", 38.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0673"], ["name", "ea"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:08.472053"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Eius molestias culpa."], ["total_all_taxes", 322.0], ["updated_at", "2015-02-20 08:10:08.472053"], ["vat", 20.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8133"], ["name", "adipisci"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:08.482036"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Sed qui et error."], ["total_all_taxes", 390.0], ["updated_at", "2015-02-20 08:10:08.482036"], ["vat", 6.0]]  (1.6ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7652"], ["name", "ipsam"], ["vat_deductible", "f"]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:08.498559"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Nostrum velit inventore explicabo suscipit facere voluptatem."], ["total_all_taxes", 469.0], ["updated_at", "2015-02-20 08:10:08.498559"], ["vat", 8.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8921"], ["name", "voluptatibus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:08.504416"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Alias omnis blanditiis sed magnam aut."], ["total_all_taxes", 269.0], ["updated_at", "2015-02-20 08:10:08.504416"], ["vat", 18.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.4ms) Completed 200 OK in 17ms (Views: 14.4ms | ActiveRecord: 1.2ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.5ms) DELETE FROM "expense_gun_expenses";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4141"], ["name", "perferendis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4396"], ["name", "impedit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.6ms) DELETE FROM "expense_gun_categories";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.5ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6247"], ["name", "id"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:08.658011"], ["date", "2015-02-20"], ["name", "Qui rerum quae consequatur eveniet."], ["state", "submited"], ["updated_at", "2015-02-20 08:10:08.658011"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3563"], ["name", "ut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:08.665772"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Quis fuga nisi."], ["total_all_taxes", 819.0], ["updated_at", "2015-02-20 08:10:08.665772"], ["vat", 88.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5129"], ["name", "animi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:08.672000"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Rerum tempora sint quis quo eos quis."], ["total_all_taxes", 921.0], ["updated_at", "2015-02-20 08:10:08.672000"], ["vat", 168.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0574"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:08.680966"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Repellat omnis quas."], ["total_all_taxes", 935.0], ["updated_at", "2015-02-20 08:10:08.680966"], ["vat", 147.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8639"], ["name", "perferendis"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:08.688589"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Nisi quas velit maxime voluptatem."], ["total_all_taxes", 941.0], ["updated_at", "2015-02-20 08:10:08.688589"], ["vat", 143.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6617"], ["name", "qui"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:08.698011"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Voluptatem sit voluptatem."], ["total_all_taxes", 772.0], ["updated_at", "2015-02-20 08:10:08.698011"], ["vat", 46.0]]  (1.5ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:10:08.875409"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:08 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 1.0ms)  (2.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1666"], ["name", "in"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:10.999049"], ["date", "2015-02-20"], ["name", "Deserunt quia repudiandae mollitia."], ["state", "submited"], ["updated_at", "2015-02-20 08:10:10.999049"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4174"], ["name", "dolor"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:11.005835"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Perspiciatis provident inventore itaque."], ["total_all_taxes", 119.0], ["updated_at", "2015-02-20 08:10:11.005835"], ["vat", 7.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2257"], ["name", "facere"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:11.013178"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Vel sit quia nostrum itaque."], ["total_all_taxes", 465.0], ["updated_at", "2015-02-20 08:10:11.013178"], ["vat", 37.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4672"], ["name", "vel"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:11.020218"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Numquam temporibus totam vel nostrum."], ["total_all_taxes", 316.0], ["updated_at", "2015-02-20 08:10:11.020218"], ["vat", 63.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8151"], ["name", "sequi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:11.026971"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Aut explicabo sit repudiandae quidem dolorum nisi."], ["total_all_taxes", 550.0], ["updated_at", "2015-02-20 08:10:11.026971"], ["vat", 91.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8740"], ["name", "eos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:11.033430"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Praesentium beatae saepe."], ["total_all_taxes", 396.0], ["updated_at", "2015-02-20 08:10:11.033430"], ["vat", 20.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:10:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (15.4ms) Completed 200 OK in 18ms (Views: 14.8ms | ActiveRecord: 1.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:10:11 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:10:11.967286"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51136/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51136/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:11 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.7ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.8ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9228"], ["name", "qui"], ["vat_deductible", "f"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:32 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (110.0ms) Completed 200 OK in 220ms (Views: 216.3ms | ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:10:32 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (314.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (320.1ms) Completed 200 OK in 329ms (Views: 322.9ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:33.186980"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:10:33.186980"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (82.3ms) Completed 200 OK in 87ms (Views: 85.0ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (73.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (80.3ms) Completed 200 OK in 104ms (Views: 84.8ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:33.564733"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:10:33.564733"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.7ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1441"], ["name", "quibusdam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:33.660271"], ["date", "2015-02-20"], ["name", "Consequatur rerum ipsa expedita."], ["state", "new"], ["updated_at", "2015-02-20 08:10:33.660271"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3425"], ["name", "eum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:33.666785"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Sint iure aut perferendis."], ["total_all_taxes", 954.0], ["updated_at", "2015-02-20 08:10:33.666785"], ["vat", 107.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6683"], ["name", "quo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:33.672827"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Necessitatibus optio voluptate."], ["total_all_taxes", 760.0], ["updated_at", "2015-02-20 08:10:33.672827"], ["vat", 27.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.8ms) Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:10:33.824474"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.5ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8592"], ["name", "perspiciatis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:33.909019"], ["date", "2015-02-20"], ["name", "Corporis aut est cupiditate eligendi iste."], ["state", "new"], ["updated_at", "2015-02-20 08:10:33.909019"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4367"], ["name", "quia"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:33.915905"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Culpa tempore possimus dolor."], ["total_all_taxes", 289.0], ["updated_at", "2015-02-20 08:10:33.915905"], ["vat", 42.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3909"], ["name", "impedit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:33.922242"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Cupiditate et consequuntur distinctio qui autem."], ["total_all_taxes", 189.0], ["updated_at", "2015-02-20 08:10:33.922242"], ["vat", 2.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7223"], ["name", "blanditiis"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:33.931763"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Quia et ratione ut temporibus quos quidem."], ["total_all_taxes", 207.0], ["updated_at", "2015-02-20 08:10:33.931763"], ["vat", 27.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2151"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:33.938020"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Ea sunt sit tempore."], ["total_all_taxes", 301.0], ["updated_at", "2015-02-20 08:10:33.938020"], ["vat", 4.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:33 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (16.0ms) Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-07", "category_id"=>"2", "total_all_taxes"=>"289.0", "vat"=>"42.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:10:34.117011"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.5ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.6ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9245"], ["name", "dignissimos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:34.208884"], ["date", "2015-02-20"], ["name", "Sint inventore esse."], ["state", "new"], ["updated_at", "2015-02-20 08:10:34.208884"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7177"], ["name", "consectetur"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:34.215791"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Quia facere tenetur."], ["total_all_taxes", 524.0], ["updated_at", "2015-02-20 08:10:34.215791"], ["vat", 22.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5697"], ["name", "sit"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:34.222280"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Vel iure deserunt."], ["total_all_taxes", 716.0], ["updated_at", "2015-02-20 08:10:34.222280"], ["vat", 69.0]]  (2.3ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.0ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:10:34.368013"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51156/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.9ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1881"], ["name", "ea"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:34.460852"], ["date", "2015-02-20"], ["name", "Ratione vitae non velit eos sit voluptas rerum."], ["state", "new"], ["updated_at", "2015-02-20 08:10:34.460852"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8795"], ["name", "molestiae"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.467442"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Aliquam assumenda non et et at culpa in."], ["total_all_taxes", 845.0], ["updated_at", "2015-02-20 08:10:34.467442"], ["vat", 78.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6671"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.474567"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Quia facere illo non est."], ["total_all_taxes", 335.0], ["updated_at", "2015-02-20 08:10:34.474567"], ["vat", 40.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:10:34.558199"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51156/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.8ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8558"], ["name", "quo"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:34.648765"], ["date", "2015-02-20"], ["name", "Aliquid culpa tempora provident quia."], ["state", "new"], ["updated_at", "2015-02-20 08:10:34.648765"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7816"], ["name", "vel"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:34.658744"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Possimus excepturi non expedita qui sit qui dicta."], ["total_all_taxes", 654.0], ["updated_at", "2015-02-20 08:10:34.658744"], ["vat", 70.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4534"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:10:34.667717"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Ea dolor nemo qui est et modi voluptas."], ["total_all_taxes", 828.0], ["updated_at", "2015-02-20 08:10:34.667717"], ["vat", 131.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9833"], ["name", "ut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.673956"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Et exercitationem iusto autem ut."], ["total_all_taxes", 546.0], ["updated_at", "2015-02-20 08:10:34.673956"], ["vat", 24.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7507"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.682613"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Laboriosam possimus aut corrupti consequatur eligendi."], ["total_all_taxes", 149.0], ["updated_at", "2015-02-20 08:10:34.682613"], ["vat", 6.0]]  (1.2ms) commit transaction  (0.3ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4119"], ["name", "praesentium"], ["vat_deductible", "t"]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.699650"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Est quia aut est iure sed."], ["total_all_taxes", 935.0], ["updated_at", "2015-02-20 08:10:34.699650"], ["vat", 22.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6160"], ["name", "ea"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0365"], ["name", "iusto"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (2.2ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4145"], ["name", "velit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:34.859281"], ["date", "2015-02-20"], ["name", "Sed libero blanditiis placeat est ullam aspernatur laudantium."], ["state", "submited"], ["updated_at", "2015-02-20 08:10:34.859281"]]  (0.9ms) commit transaction  (0.3ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7832"], ["name", "maxime"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.867021"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Cumque voluptatum dolor earum in numquam."], ["total_all_taxes", 807.0], ["updated_at", "2015-02-20 08:10:34.867021"], ["vat", 119.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6777"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:10:34.873347"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Nobis eum sint illum soluta."], ["total_all_taxes", 147.0], ["updated_at", "2015-02-20 08:10:34.873347"], ["vat", 17.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.0ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:10:34 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:10:35.051183"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses/1 Completed 302 Found in 78ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:10:35 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (3.8ms) Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9798"], ["name", "incidunt"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:10:35.133686"], ["date", "2015-02-20"], ["name", "Sint aut laudantium repudiandae voluptates voluptas."], ["state", "submited"], ["updated_at", "2015-02-20 08:10:35.133686"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1516"], ["name", "sed"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:10:35.140259"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Animi aut quod quia."], ["total_all_taxes", 681.0], ["updated_at", "2015-02-20 08:10:35.140259"], ["vat", 79.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6451"], ["name", "vel"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:10:35.150550"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Ad sed non dolor."], ["total_all_taxes", 584.0], ["updated_at", "2015-02-20 08:10:35.150550"], ["vat", 85.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:10:35 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.6ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (21.3ms) Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 2.4ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:10:35 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:10:35.256120"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51156/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:10:35 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51156/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:10:35 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.9ms) Completed 200 OK in 9ms (Views: 7.5ms | ActiveRecord: 0.8ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3072"], ["name", "quo"], ["vat_deductible", "f"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:19 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (110.4ms) Completed 200 OK in 228ms (Views: 222.8ms | ActiveRecord: 2.2ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:11:19 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (307.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (313.0ms) Completed 200 OK in 321ms (Views: 315.6ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:20.028081"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:11:20.028081"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (81.6ms) Completed 200 OK in 87ms (Views: 84.4ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (68.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (76.0ms) Completed 200 OK in 103ms (Views: 83.8ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:20.409091"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:11:20.409091"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 3.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.6ms) Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0357"], ["name", "accusamus"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:20.506184"], ["date", "2015-02-20"], ["name", "Et a mollitia."], ["state", "new"], ["updated_at", "2015-02-20 08:11:20.506184"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7208"], ["name", "odit"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:20.515426"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Consequatur nobis ullam laudantium mollitia."], ["total_all_taxes", 349.0], ["updated_at", "2015-02-20 08:11:20.515426"], ["vat", 29.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2773"], ["name", "nisi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:20.521850"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Qui id recusandae."], ["total_all_taxes", 370.0], ["updated_at", "2015-02-20 08:11:20.521850"], ["vat", 11.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.3ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 14ms (Views: 12.4ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:11:20.677657"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1764"], ["name", "reiciendis"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:20.768883"], ["date", "2015-02-20"], ["name", "Eligendi vel repellendus."], ["state", "new"], ["updated_at", "2015-02-20 08:11:20.768883"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0718"], ["name", "blanditiis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:20.775894"], ["date", "2015-01-21"], ["expense_id", 1], ["name", "Possimus perspiciatis harum qui alias qui et commodi."], ["total_all_taxes", 622.0], ["updated_at", "2015-02-20 08:11:20.775894"], ["vat", 88.0]]  (1.1ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1508"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:20.785514"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Perspiciatis adipisci facilis in omnis et."], ["total_all_taxes", 153.0], ["updated_at", "2015-02-20 08:11:20.785514"], ["vat", 30.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8894"], ["name", "laboriosam"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:20.791906"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Labore dolor totam."], ["total_all_taxes", 107.0], ["updated_at", "2015-02-20 08:11:20.791906"], ["vat", 20.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.0ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (12.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (18.2ms) Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-01-21", "category_id"=>"2", "total_all_taxes"=>"622.0", "vat"=>"88.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:11:20.967467"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:20 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.4ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9971"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:21.058319"], ["date", "2015-02-20"], ["name", "Quidem id et facere corporis qui ipsa."], ["state", "new"], ["updated_at", "2015-02-20 08:11:21.058319"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5095"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:21.064902"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Sunt aliquid et molestiae."], ["total_all_taxes", 372.0], ["updated_at", "2015-02-20 08:11:21.064902"], ["vat", 70.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0233"], ["name", "soluta"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:21.071704"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Doloribus accusamus porro laudantium eum."], ["total_all_taxes", 573.0], ["updated_at", "2015-02-20 08:11:21.071704"], ["vat", 36.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2404"], ["name", "quaerat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:21.077713"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Placeat nihil qui quia nesciunt maiores quo excepturi."], ["total_all_taxes", 774.0], ["updated_at", "2015-02-20 08:11:21.077713"], ["vat", 50.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9777"], ["name", "molestiae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:21.086298"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Possimus ab unde molestiae iusto et reprehenderit."], ["total_all_taxes", 745.0], ["updated_at", "2015-02-20 08:11:21.086298"], ["vat", 42.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7854"], ["name", "aspernatur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:21.149469"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Nostrum est non minus atque nihil nemo."], ["total_all_taxes", 369.0], ["updated_at", "2015-02-20 08:11:21.149469"], ["vat", 46.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.3ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:11:21.236312"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51175/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.8ms) Completed 200 OK in 13ms (Views: 11.2ms | ActiveRecord: 0.9ms)  (1.0ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6327"], ["name", "eos"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:21.333709"], ["date", "2015-02-20"], ["name", "Voluptatem aliquam optio."], ["state", "new"], ["updated_at", "2015-02-20 08:11:21.333709"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8853"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:21.340800"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Expedita quae quia."], ["total_all_taxes", 829.0], ["updated_at", "2015-02-20 08:11:21.340800"], ["vat", 115.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0265"], ["name", "ea"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:21.348366"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Est non perspiciatis vero architecto perferendis."], ["total_all_taxes", 189.0], ["updated_at", "2015-02-20 08:11:21.348366"], ["vat", 32.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6046"], ["name", "unde"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:21.354674"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Modi consequatur blanditiis corporis possimus ad expedita."], ["total_all_taxes", 875.0], ["updated_at", "2015-02-20 08:11:21.354674"], ["vat", 121.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (20.6ms) Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 2.6ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:11:21.469054"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51175/expense_gun/expenses/state/submited Completed 302 Found in 2ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.1ms) Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6257"], ["name", "earum"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:21.571501"], ["date", "2015-02-20"], ["name", "Et minus sed dicta nisi."], ["state", "new"], ["updated_at", "2015-02-20 08:11:21.571501"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4366"], ["name", "ducimus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:21.577909"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Quis labore modi vero."], ["total_all_taxes", 480.0], ["updated_at", "2015-02-20 08:11:21.577909"], ["vat", 14.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5755"], ["name", "eos"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:21.586077"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Velit ut non provident sed."], ["total_all_taxes", 684.0], ["updated_at", "2015-02-20 08:11:21.586077"], ["vat", 83.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.4ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (15.0ms) Completed 200 OK in 19ms (Views: 16.2ms | ActiveRecord: 1.1ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.6ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8875"], ["name", "necessitatibus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.9ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2838"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (1.5ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9219"], ["name", "vero"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:21.759339"], ["date", "2015-02-20"], ["name", "Quos repellat et reprehenderit accusamus."], ["state", "submited"], ["updated_at", "2015-02-20 08:11:21.759339"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5783"], ["name", "debitis"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:21.766979"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Ullam non eum quibusdam omnis illo odit vero."], ["total_all_taxes", 835.0], ["updated_at", "2015-02-20 08:11:21.766979"], ["vat", 87.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2868"], ["name", "harum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:21.773417"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Voluptatem modi minima qui rerum."], ["total_all_taxes", 567.0], ["updated_at", "2015-02-20 08:11:21.773417"], ["vat", 46.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4713"], ["name", "rem"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:21.781588"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Id facilis suscipit eos."], ["total_all_taxes", 347.0], ["updated_at", "2015-02-20 08:11:21.781588"], ["vat", 43.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2476"], ["name", "non"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:21.789137"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Dolor ex fuga."], ["total_all_taxes", 284.0], ["updated_at", "2015-02-20 08:11:21.789137"], ["vat", 31.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0185"], ["name", "ut"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:21.795626"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Voluptas ea itaque accusantium commodi rerum."], ["total_all_taxes", 308.0], ["updated_at", "2015-02-20 08:11:21.795626"], ["vat", 20.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.2ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:11:21.958714"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:21 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 1.0ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7899"], ["name", "cupiditate"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:22.062310"], ["date", "2015-02-20"], ["name", "Quae labore hic voluptatem."], ["state", "submited"], ["updated_at", "2015-02-20 08:11:22.062310"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9958"], ["name", "sed"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:22.069176"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Porro commodi sint in aspernatur quia."], ["total_all_taxes", 594.0], ["updated_at", "2015-02-20 08:11:22.069176"], ["vat", 18.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7511"], ["name", "veritatis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:22.076770"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Ut dignissimos vel."], ["total_all_taxes", 240.0], ["updated_at", "2015-02-20 08:11:22.076770"], ["vat", 27.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1112"], ["name", "quis"], ["vat_deductible", "t"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:22.085981"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Vel molestias qui sit sed voluptates qui vel."], ["total_all_taxes", 639.0], ["updated_at", "2015-02-20 08:11:22.085981"], ["vat", 118.0]]  (1.4ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6376"], ["name", "tempore"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:22.100751"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Ut laborum aut."], ["total_all_taxes", 359.0], ["updated_at", "2015-02-20 08:11:22.100751"], ["vat", 50.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4378"], ["name", "quia"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:22.108371"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Adipisci sed consequatur aut dicta."], ["total_all_taxes", 273.0], ["updated_at", "2015-02-20 08:11:22.108371"], ["vat", 7.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:11:22 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:11:22 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:11:22.202378"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51175/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:22 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51175/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:22 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.0ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 1.2ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (4.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8876"], ["name", "optio"], ["vat_deductible", "t"]]  (2.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:52 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (109.2ms) Completed 200 OK in 223ms (Views: 218.7ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:11:52 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (304.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (310.2ms) Completed 200 OK in 318ms (Views: 312.8ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:52 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:52.945642"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:11:52.945642"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:52 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.5ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (87.7ms) Completed 200 OK in 94ms (Views: 91.0ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (72.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.0ms) Completed 200 OK in 104ms (Views: 83.8ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:53.345122"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:11:53.345122"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.5ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5902"], ["name", "atque"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:53.437754"], ["date", "2015-02-20"], ["name", "Numquam veniam sint."], ["state", "new"], ["updated_at", "2015-02-20 08:11:53.437754"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5222"], ["name", "sint"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:53.444682"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Facilis in autem voluptatem id."], ["total_all_taxes", 808.0], ["updated_at", "2015-02-20 08:11:53.444682"], ["vat", 141.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0759"], ["name", "tempora"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:53.453515"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Est harum est quae ad eius quibusdam ratione."], ["total_all_taxes", 865.0], ["updated_at", "2015-02-20 08:11:53.453515"], ["vat", 134.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7174"], ["name", "nisi"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:53.460155"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Et quod nemo saepe tenetur."], ["total_all_taxes", 562.0], ["updated_at", "2015-02-20 08:11:53.460155"], ["vat", 59.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.9ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.5ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 12ms (Views: 10.6ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:11:53.614332"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.4ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1976"], ["name", "minus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:53.704943"], ["date", "2015-02-20"], ["name", "Porro vitae reprehenderit."], ["state", "new"], ["updated_at", "2015-02-20 08:11:53.704943"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0481"], ["name", "esse"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:53.711273"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Architecto molestias fugit quasi."], ["total_all_taxes", 173.0], ["updated_at", "2015-02-20 08:11:53.711273"], ["vat", 30.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7257"], ["name", "modi"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:53.721254"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Doloribus veritatis in provident."], ["total_all_taxes", 535.0], ["updated_at", "2015-02-20 08:11:53.721254"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7268"], ["name", "est"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:53.727746"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Fugit ducimus ut libero cupiditate nobis."], ["total_all_taxes", 143.0], ["updated_at", "2015-02-20 08:11:53.727746"], ["vat", 8.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (13.1ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (17.3ms) Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-15", "category_id"=>"2", "total_all_taxes"=>"173.0", "vat"=>"30.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:11:53.901104"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 10ms (Views: 7.9ms | ActiveRecord: 0.5ms)  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4746"], ["name", "ex"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:53.992163"], ["date", "2015-02-20"], ["name", "Praesentium vel maxime."], ["state", "new"], ["updated_at", "2015-02-20 08:11:53.992163"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3481"], ["name", "tempora"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:53.998806"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Dolores totam delectus vitae assumenda sint nisi autem."], ["total_all_taxes", 921.0], ["updated_at", "2015-02-20 08:11:53.998806"], ["vat", 41.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5108"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.008182"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Eaque voluptatibus quis quas eos voluptas similique harum."], ["total_all_taxes", 122.0], ["updated_at", "2015-02-20 08:11:54.008182"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4012"], ["name", "laborum"], ["vat_deductible", "f"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.073470"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Aliquid assumenda ullam temporibus."], ["total_all_taxes", 823.0], ["updated_at", "2015-02-20 08:11:54.073470"], ["vat", 78.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.8ms) Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:11:54.162581"]]  (1.1ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51190/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.2ms) Completed 200 OK in 14ms (Views: 12.7ms | ActiveRecord: 0.9ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0511"], ["name", "nostrum"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:54.261581"], ["date", "2015-02-20"], ["name", "Non modi corporis fugit rem quo."], ["state", "new"], ["updated_at", "2015-02-20 08:11:54.261581"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5176"], ["name", "impedit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:54.267787"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Ipsum molestias voluptatem."], ["total_all_taxes", 291.0], ["updated_at", "2015-02-20 08:11:54.267787"], ["vat", 6.0]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2288"], ["name", "doloribus"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.277048"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Dignissimos praesentium quis."], ["total_all_taxes", 263.0], ["updated_at", "2015-02-20 08:11:54.277048"], ["vat", 7.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:11:54.359606"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51190/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 9ms (Views: 7.9ms | ActiveRecord: 0.8ms)  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3418"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:54.446895"], ["date", "2015-02-20"], ["name", "Molestiae consequatur est voluptates vel."], ["state", "new"], ["updated_at", "2015-02-20 08:11:54.446895"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1636"], ["name", "in"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.453196"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Dolor qui cumque atque."], ["total_all_taxes", 165.0], ["updated_at", "2015-02-20 08:11:54.453196"], ["vat", 18.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9694"], ["name", "libero"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.460910"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Alias aperiam omnis."], ["total_all_taxes", 534.0], ["updated_at", "2015-02-20 08:11:54.460910"], ["vat", 93.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3262"], ["name", "cupiditate"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:11:54.467798"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Aperiam sed pariatur quia ut corporis nihil."], ["total_all_taxes", 157.0], ["updated_at", "2015-02-20 08:11:54.467798"], ["vat", 20.0]]  (1.6ms) commit transaction  (0.2ms) begin transaction SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7811"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (2.2ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.485321"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Sit vero dolorum autem iure deleniti."], ["total_all_taxes", 148.0], ["updated_at", "2015-02-20 08:11:54.485321"], ["vat", 12.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 13ms (Views: 10.6ms | ActiveRecord: 0.8ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9133"], ["name", "ab"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (1.9ms) DELETE FROM "expense_gun_categories";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7750"], ["name", "ut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8213"], ["name", "magnam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:54.644360"], ["date", "2015-02-20"], ["name", "Voluptatem iure soluta."], ["state", "submited"], ["updated_at", "2015-02-20 08:11:54.644360"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8168"], ["name", "aut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.650835"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Repudiandae omnis voluptas neque culpa id dolor quam."], ["total_all_taxes", 959.0], ["updated_at", "2015-02-20 08:11:54.650835"], ["vat", 41.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6859"], ["name", "fugiat"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.659600"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Esse placeat officiis."], ["total_all_taxes", 240.0], ["updated_at", "2015-02-20 08:11:54.659600"], ["vat", 35.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6338"], ["name", "quae"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:54.667147"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Aut nihil placeat qui deserunt et."], ["total_all_taxes", 376.0], ["updated_at", "2015-02-20 08:11:54.667147"], ["vat", 60.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4501"], ["name", "nulla"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.680365"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Unde cum qui sunt."], ["total_all_taxes", 327.0], ["updated_at", "2015-02-20 08:11:54.680365"], ["vat", 21.0]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8022"], ["name", "nostrum"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.751853"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Ad quidem accusantium blanditiis deleniti corporis aut."], ["total_all_taxes", 784.0], ["updated_at", "2015-02-20 08:11:54.751853"], ["vat", 22.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:11:54.845976"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.4ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.8ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.3ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1328"], ["name", "accusantium"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:11:54.944655"], ["date", "2015-02-20"], ["name", "Voluptatibus vitae ex rem repudiandae ducimus aperiam."], ["state", "submited"], ["updated_at", "2015-02-20 08:11:54.944655"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7367"], ["name", "ipsam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:11:54.951547"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Ullam itaque officia."], ["total_all_taxes", 449.0], ["updated_at", "2015-02-20 08:11:54.951547"], ["vat", 13.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6548"], ["name", "tenetur"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.959343"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Aliquid iste animi ea perspiciatis sit."], ["total_all_taxes", 870.0], ["updated_at", "2015-02-20 08:11:54.959343"], ["vat", 62.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0406"], ["name", "repudiandae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:11:54.966366"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Voluptatibus debitis hic."], ["total_all_taxes", 369.0], ["updated_at", "2015-02-20 08:11:54.966366"], ["vat", 5.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0708"], ["name", "illo"], ["vat_deductible", "t"]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.975402"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Consectetur qui eum dolor dolores sit atque."], ["total_all_taxes", 294.0], ["updated_at", "2015-02-20 08:11:54.975402"], ["vat", 49.0]]  (1.6ms) commit transaction  (0.2ms) begin transaction SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1358"], ["name", "et"], ["vat_deductible", "t"]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 08:11:54.991014"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Consectetur qui accusamus commodi."], ["total_all_taxes", 864.0], ["updated_at", "2015-02-20 08:11:54.991014"], ["vat", 78.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:11:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.7ms) Completed 200 OK in 15ms (Views: 12.8ms | ActiveRecord: 1.3ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:11:55 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:11:55.090044"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51190/expense_gun/expenses Completed 302 Found in 8ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:11:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51190/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:11:55 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.3ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 1.2ms)  (1.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7898"], ["name", "minus"], ["vat_deductible", "f"]]  (2.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:12:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (101.2ms) Completed 200 OK in 208ms (Views: 204.7ms | ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:12:44 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (303.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (309.7ms) Completed 200 OK in 318ms (Views: 312.5ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:45.343460"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:12:45.343460"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (91.0ms) Completed 200 OK in 97ms (Views: 94.9ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (70.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (76.5ms) Completed 200 OK in 102ms (Views: 83.6ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:45.731838"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:12:45.731838"], ["vat", 20.0]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.6ms) Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1581"], ["name", "qui"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:45.828542"], ["date", "2015-02-20"], ["name", "Sit non quis iusto at libero."], ["state", "new"], ["updated_at", "2015-02-20 08:12:45.828542"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3107"], ["name", "eaque"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.3ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:45.838204"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Vitae deserunt sit molestias officia commodi non."], ["total_all_taxes", 783.0], ["updated_at", "2015-02-20 08:12:45.838204"], ["vat", 58.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6051"], ["name", "autem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:45.844515"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Et fugit alias molestiae velit."], ["total_all_taxes", 720.0], ["updated_at", "2015-02-20 08:12:45.844515"], ["vat", 80.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4888"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:12:45.850459"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Non sunt fugit."], ["total_all_taxes", 537.0], ["updated_at", "2015-02-20 08:12:45.850459"], ["vat", 98.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7507"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:45.856938"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Autem quidem doloremque quasi unde praesentium."], ["total_all_taxes", 617.0], ["updated_at", "2015-02-20 08:12:45.856938"], ["vat", 56.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 12ms (Views: 9.3ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:12:45 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:12:46.016622"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.6ms) Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 0.7ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1366"], ["name", "occaecati"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:46.107276"], ["date", "2015-02-20"], ["name", "Consequuntur iure esse odio doloremque."], ["state", "new"], ["updated_at", "2015-02-20 08:12:46.107276"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5059"], ["name", "fuga"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:46.113648"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Eos in voluptas consequatur."], ["total_all_taxes", 871.0], ["updated_at", "2015-02-20 08:12:46.113648"], ["vat", 55.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9448"], ["name", "assumenda"], ["vat_deductible", "t"]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.123560"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Aut aspernatur eveniet aut corporis."], ["total_all_taxes", 205.0], ["updated_at", "2015-02-20 08:12:46.123560"], ["vat", 25.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5484"], ["name", "deserunt"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.130142"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Corrupti accusantium nesciunt et possimus accusamus quia."], ["total_all_taxes", 610.0], ["updated_at", "2015-02-20 08:12:46.130142"], ["vat", 84.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (13.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (18.1ms) Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-10", "category_id"=>"2", "total_all_taxes"=>"871.0", "vat"=>"55.0", "company_part"=>"75.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:12:46.303614"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.6ms) Completed 200 OK in 9ms (Views: 7.3ms | ActiveRecord: 0.5ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3173"], ["name", "possimus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:46.454431"], ["date", "2015-02-20"], ["name", "Voluptatem quis tenetur officiis possimus beatae excepturi."], ["state", "new"], ["updated_at", "2015-02-20 08:12:46.454431"]]  (2.2ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7205"], ["name", "quia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:46.463020"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Sed libero ipsum quasi fugiat praesentium iusto odio."], ["total_all_taxes", 557.0], ["updated_at", "2015-02-20 08:12:46.463020"], ["vat", 43.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6039"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:12:46.470356"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Possimus fugiat provident non incidunt iste doloribus."], ["total_all_taxes", 168.0], ["updated_at", "2015-02-20 08:12:46.470356"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5945"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.476887"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Provident et ullam quo voluptas."], ["total_all_taxes", 882.0], ["updated_at", "2015-02-20 08:12:46.476887"], ["vat", 75.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1660"], ["name", "aperiam"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:12:46.483378"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Alias sint dolores doloribus sed velit voluptas."], ["total_all_taxes", 108.0], ["updated_at", "2015-02-20 08:12:46.483378"], ["vat", 3.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.2ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:12:46.568253"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51209/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (14.2ms) Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 1.5ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8317"], ["name", "deserunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:46.667511"], ["date", "2015-02-20"], ["name", "Placeat rerum aut atque omnis dolores id inventore."], ["state", "new"], ["updated_at", "2015-02-20 08:12:46.667511"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1489"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:46.674056"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Necessitatibus ut est voluptatem sed eligendi reprehenderit."], ["total_all_taxes", 1000.0], ["updated_at", "2015-02-20 08:12:46.674056"], ["vat", 149.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0144"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.680354"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Aut incidunt et voluptatem nam."], ["total_all_taxes", 150.0], ["updated_at", "2015-02-20 08:12:46.680354"], ["vat", 15.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.3ms) Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:12:46.766344"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51209/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.9ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8830"], ["name", "doloremque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:46.857069"], ["date", "2015-02-20"], ["name", "Fugiat repellendus consectetur ea exercitationem ut ipsam eos."], ["state", "new"], ["updated_at", "2015-02-20 08:12:46.857069"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5778"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.863266"], ["date", "2015-01-25"], ["expense_id", 1], ["name", "Sapiente ipsam provident harum."], ["total_all_taxes", 834.0], ["updated_at", "2015-02-20 08:12:46.863266"], ["vat", 37.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8844"], ["name", "minima"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:46.871325"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Saepe similique atque sit fuga voluptas occaecati perspiciatis."], ["total_all_taxes", 322.0], ["updated_at", "2015-02-20 08:12:46.871325"], ["vat", 40.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3763"], ["name", "sunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:46.879044"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Vel ab distinctio et deserunt corrupti quo totam."], ["total_all_taxes", 758.0], ["updated_at", "2015-02-20 08:12:46.879044"], ["vat", 146.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:46 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.4ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.8ms) Completed 200 OK in 21ms (Views: 15.6ms | ActiveRecord: 1.2ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2243"], ["name", "minus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.4ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5334"], ["name", "ea"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9074"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:47.049385"], ["date", "2015-02-20"], ["name", "Sunt sunt quaerat sed quia."], ["state", "submited"], ["updated_at", "2015-02-20 08:12:47.049385"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3488"], ["name", "voluptatum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:47.055870"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Et debitis exercitationem sit earum sint."], ["total_all_taxes", 596.0], ["updated_at", "2015-02-20 08:12:47.055870"], ["vat", 44.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1821"], ["name", "dicta"], ["vat_deductible", "t"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:47.126478"], ["date", "2015-02-04"], ["expense_id", 1], ["name", "Perferendis non voluptatum labore modi necessitatibus dolor."], ["total_all_taxes", 877.0], ["updated_at", "2015-02-20 08:12:47.126478"], ["vat", 106.0]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8784"], ["name", "dolores"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:47.133536"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Nesciunt esse natus vel."], ["total_all_taxes", 276.0], ["updated_at", "2015-02-20 08:12:47.133536"], ["vat", 22.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6762"], ["name", "omnis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:12:47.139966"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Nemo ducimus illum provident ex a quia."], ["total_all_taxes", 954.0], ["updated_at", "2015-02-20 08:12:47.139966"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7105"], ["name", "est"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-20 08:12:47.146146"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Ipsa accusamus impedit suscipit minus repellat ad."], ["total_all_taxes", 976.0], ["updated_at", "2015-02-20 08:12:47.146146"], ["vat", 81.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:12:47.238253"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.9ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5533"], ["name", "fuga"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:12:47.337535"], ["date", "2015-02-20"], ["name", "Dicta nihil adipisci inventore distinctio commodi hic facilis."], ["state", "submited"], ["updated_at", "2015-02-20 08:12:47.337535"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9578"], ["name", "quia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:47.344877"], ["date", "2015-01-27"], ["expense_id", 1], ["name", "Earum laudantium quo vel a fugit at velit."], ["total_all_taxes", 792.0], ["updated_at", "2015-02-20 08:12:47.344877"], ["vat", 37.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6214"], ["name", "rem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:12:47.352272"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Velit sapiente consequatur."], ["total_all_taxes", 447.0], ["updated_at", "2015-02-20 08:12:47.352272"], ["vat", 52.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6615"], ["name", "et"], ["vat_deductible", "f"]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:12:47.363752"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Aut vitae cumque porro delectus."], ["total_all_taxes", 596.0], ["updated_at", "2015-02-20 08:12:47.363752"], ["vat", 56.0]]  (1.6ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.6ms) Completed 200 OK in 13ms (Views: 11.5ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:12:47.472345"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51209/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51209/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:12:47 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.4ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (18.4ms) Completed 200 OK in 21ms (Views: 17.9ms | ActiveRecord: 2.5ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (2.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (5.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6315"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (2.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:15:03 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (105.0ms) Completed 200 OK in 217ms (Views: 212.5ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (309.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (315.0ms) Completed 200 OK in 322ms (Views: 317.5ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:04.593821"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:15:04.593821"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.7ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (84.4ms) Completed 200 OK in 90ms (Views: 87.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (70.7ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.0ms) Completed 200 OK in 100ms (Views: 83.3ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:04.974150"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:15:04.974150"], ["vat", 20.0]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:04 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.2ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6617"], ["name", "facilis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:05.070308"], ["date", "2015-02-20"], ["name", "Inventore rerum dolor."], ["state", "new"], ["updated_at", "2015-02-20 08:15:05.070308"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2721"], ["name", "officiis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.076763"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Necessitatibus aut ea et dolorum nostrum."], ["total_all_taxes", 451.0], ["updated_at", "2015-02-20 08:15:05.076763"], ["vat", 38.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5186"], ["name", "facilis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.084745"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Dolores consequuntur aspernatur repellat eos expedita necessitatibus."], ["total_all_taxes", 443.0], ["updated_at", "2015-02-20 08:15:05.084745"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6731"], ["name", "autem"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.092540"], ["date", "2015-01-24"], ["expense_id", 1], ["name", "Voluptatum consectetur quas ratione sequi reiciendis."], ["total_all_taxes", 928.0], ["updated_at", "2015-02-20 08:15:05.092540"], ["vat", 35.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3647"], ["name", "qui"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:05.099211"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Et quo beatae dolorem velit libero dolores."], ["total_all_taxes", 944.0], ["updated_at", "2015-02-20 08:15:05.099211"], ["vat", 24.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7820"], ["name", "maiores"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.105785"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Alias dolorum ut."], ["total_all_taxes", 391.0], ["updated_at", "2015-02-20 08:15:05.105785"], ["vat", 66.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 13ms (Views: 10.0ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (5.8ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 14ms (Views: 12.3ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:15:05.266341"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.3ms | ActiveRecord: 0.7ms)  (1.4ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7157"], ["name", "est"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:05.361257"], ["date", "2015-02-20"], ["name", "Excepturi rerum unde non."], ["state", "new"], ["updated_at", "2015-02-20 08:15:05.361257"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6245"], ["name", "nesciunt"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:05.368122"], ["date", "2015-02-02"], ["expense_id", 1], ["name", "Iusto consequuntur quibusdam eveniet amet facere veniam."], ["total_all_taxes", 304.0], ["updated_at", "2015-02-20 08:15:05.368122"], ["vat", 36.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7895"], ["name", "est"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:15:05.374543"], ["date", "2015-01-26"], ["expense_id", 1], ["name", "Ea vel eaque officiis autem molestiae et voluptatem."], ["total_all_taxes", 193.0], ["updated_at", "2015-02-20 08:15:05.374543"], ["vat", 14.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4179"], ["name", "eum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:05.380363"], ["date", "2015-01-31"], ["expense_id", 1], ["name", "Libero architecto reprehenderit saepe."], ["total_all_taxes", 824.0], ["updated_at", "2015-02-20 08:15:05.380363"], ["vat", 140.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9874"], ["name", "tempora"], ["vat_deductible", "t"]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.390541"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Repellendus et distinctio eos odio ut."], ["total_all_taxes", 188.0], ["updated_at", "2015-02-20 08:15:05.390541"], ["vat", 32.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.5ms | ActiveRecord: 0.6ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (19.0ms) Completed 200 OK in 24ms (Views: 21.5ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-02", "category_id"=>"2", "total_all_taxes"=>"304.0", "vat"=>"36.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:15:05.570984"]]  (2.6ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.6ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7237"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:05.722464"], ["date", "2015-02-20"], ["name", "Temporibus velit illum ea asperiores magnam."], ["state", "new"], ["updated_at", "2015-02-20 08:15:05.722464"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8916"], ["name", "eos"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.729173"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Quod asperiores id sit."], ["total_all_taxes", 370.0], ["updated_at", "2015-02-20 08:15:05.729173"], ["vat", 35.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6011"], ["name", "excepturi"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.736799"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Impedit est aut."], ["total_all_taxes", 129.0], ["updated_at", "2015-02-20 08:15:05.736799"], ["vat", 25.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0593"], ["name", "numquam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.744572"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Ipsam quaerat enim facere dolor in et."], ["total_all_taxes", 603.0], ["updated_at", "2015-02-20 08:15:05.744572"], ["vat", 10.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6553"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.750691"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Atque suscipit itaque fuga tempore."], ["total_all_taxes", 565.0], ["updated_at", "2015-02-20 08:15:05.750691"], ["vat", 95.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.2ms) Completed 200 OK in 14ms (Views: 12.2ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:15:05.834859"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51224/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.6ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.1ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 1.4ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4975"], ["name", "amet"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:05.932504"], ["date", "2015-02-20"], ["name", "Fugit odit quasi voluptas veniam nemo."], ["state", "new"], ["updated_at", "2015-02-20 08:15:05.932504"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5586"], ["name", "nulla"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.939235"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Impedit dicta aut itaque sit."], ["total_all_taxes", 375.0], ["updated_at", "2015-02-20 08:15:05.939235"], ["vat", 13.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5371"], ["name", "aut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.945609"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ad distinctio dignissimos aut sit autem ut."], ["total_all_taxes", 777.0], ["updated_at", "2015-02-20 08:15:05.945609"], ["vat", 62.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6451"], ["name", "iusto"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:05.951530"], ["date", "2015-01-29"], ["expense_id", 1], ["name", "Veniam ea eaque qui."], ["total_all_taxes", 659.0], ["updated_at", "2015-02-20 08:15:05.951530"], ["vat", 3.0]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4755"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-20 08:15:05.960105"], ["date", "2015-01-23"], ["expense_id", 1], ["name", "Commodi explicabo praesentium nobis et suscipit."], ["total_all_taxes", 399.0], ["updated_at", "2015-02-20 08:15:05.960105"], ["vat", 70.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:15:05 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:15:06.044384"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51224/expense_gun/expenses/state/submited Completed 302 Found in 2ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.7ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5449"], ["name", "aliquam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:06.133591"], ["date", "2015-02-20"], ["name", "Voluptatibus et quos nesciunt odit odio dolorem enim."], ["state", "new"], ["updated_at", "2015-02-20 08:15:06.133591"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0808"], ["name", "ut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:15:06.140546"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Blanditiis omnis velit."], ["total_all_taxes", 839.0], ["updated_at", "2015-02-20 08:15:06.140546"], ["vat", 72.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3357"], ["name", "magni"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:06.148036"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Earum dolore sed rem est nihil molestiae."], ["total_all_taxes", 892.0], ["updated_at", "2015-02-20 08:15:06.148036"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9277"], ["name", "eaque"], ["vat_deductible", "f"]]  (1.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:06.158283"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Iure consectetur ad aut ea omnis fugiat esse."], ["total_all_taxes", 237.0], ["updated_at", "2015-02-20 08:15:06.158283"], ["vat", 10.0]]  (1.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6324"], ["name", "aut"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6272"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (2.8ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5324"], ["name", "ut"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:06.389371"], ["date", "2015-02-20"], ["name", "Et eum molestiae omnis."], ["state", "submited"], ["updated_at", "2015-02-20 08:15:06.389371"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6322"], ["name", "quibusdam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:06.395566"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ullam vero cum reprehenderit sunt."], ["total_all_taxes", 177.0], ["updated_at", "2015-02-20 08:15:06.395566"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7303"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:06.401991"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Et non exercitationem repudiandae."], ["total_all_taxes", 950.0], ["updated_at", "2015-02-20 08:15:06.401991"], ["vat", 172.0]]  (1.3ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (14.7ms) Completed 200 OK in 17ms (Views: 14.1ms | ActiveRecord: 1.7ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:15:06.500101"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.5ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.6ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.5ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7502"], ["name", "perspiciatis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:15:06.597434"], ["date", "2015-02-20"], ["name", "Officia quis quaerat expedita praesentium iure dolor aspernatur."], ["state", "submited"], ["updated_at", "2015-02-20 08:15:06.597434"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4621"], ["name", "possimus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:15:06.604609"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Voluptatum dolor ratione quod repellendus voluptatem qui praesentium."], ["total_all_taxes", 519.0], ["updated_at", "2015-02-20 08:15:06.604609"], ["vat", 57.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9508"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:06.612304"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Quidem ad debitis labore dicta et voluptate."], ["total_all_taxes", 597.0], ["updated_at", "2015-02-20 08:15:06.612304"], ["vat", 74.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2111"], ["name", "vitae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-20 08:15:06.619152"], ["date", "2015-01-30"], ["expense_id", 1], ["name", "Ducimus occaecati corrupti et."], ["total_all_taxes", 708.0], ["updated_at", "2015-02-20 08:15:06.619152"], ["vat", 4.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.3ms) Completed 200 OK in 14ms (Views: 11.3ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:15:06.727406"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:51224/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51224/expense_gun/expenses/state/submited Completed 302 Found in 2ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:15:06 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.2ms) Completed 200 OK in 9ms (Views: 7.8ms | ActiveRecord: 0.8ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.0ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4154"], ["name", "sapiente"], ["vat_deductible", "t"]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:20:46 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (106.4ms) Completed 200 OK in 236ms (Views: 232.1ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-20 09:20:46 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (339.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (346.3ms) Completed 200 OK in 354ms (Views: 348.8ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:47.245400"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-20 08:20:47.245400"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (85.5ms) Completed 200 OK in 90ms (Views: 88.0ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (73.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.1ms) Completed 200 OK in 106ms (Views: 85.3ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-20 08:20:47.630234"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-20 08:20:47.630234"], ["vat", 20.0]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.4ms) Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2245"], ["name", "et"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:47.721659"], ["date", "2015-02-20"], ["name", "Aut perferendis architecto suscipit ut illo."], ["state", "new"], ["updated_at", "2015-02-20 08:20:47.721659"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5586"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-20 08:20:47.728258"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Omnis perspiciatis quod."], ["total_all_taxes", 308.0], ["updated_at", "2015-02-20 08:20:47.728258"], ["vat", 57.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3246"], ["name", "officia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:47.734496"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Enim sint aut rerum ut inventore."], ["total_all_taxes", 315.0], ["updated_at", "2015-02-20 08:20:47.734496"], ["vat", 17.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8156"], ["name", "omnis"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:47.743871"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Corrupti est sunt."], ["total_all_taxes", 659.0], ["updated_at", "2015-02-20 08:20:47.743871"], ["vat", 67.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5705"], ["name", "vitae"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:47.750043"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Ratione expedita minus magnam nisi porro iure atque."], ["total_all_taxes", 815.0], ["updated_at", "2015-02-20 08:20:47.750043"], ["vat", 61.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5825"], ["name", "maxime"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:47.756180"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Sed praesentium nihil deleniti nihil."], ["total_all_taxes", 932.0], ["updated_at", "2015-02-20 08:20:47.756180"], ["vat", 98.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.5ms) Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (7.8ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-20"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-20 08:20:47.918770"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:47 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6217"], ["name", "pariatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:48.010043"], ["date", "2015-02-20"], ["name", "Facilis et consequatur qui."], ["state", "new"], ["updated_at", "2015-02-20 08:20:48.010043"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5153"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:48.016402"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Non quibusdam dolor molestias ea voluptatem."], ["total_all_taxes", 926.0], ["updated_at", "2015-02-20 08:20:48.016402"], ["vat", 183.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5382"], ["name", "officiis"], ["vat_deductible", "f"]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.026323"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Doloribus voluptate nesciunt impedit voluptas ea recusandae."], ["total_all_taxes", 578.0], ["updated_at", "2015-02-20 08:20:48.026323"], ["vat", 40.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2648"], ["name", "facere"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-02-20 08:20:48.032722"], ["date", "2015-02-07"], ["expense_id", 1], ["name", "Odio sint in natus."], ["total_all_taxes", 298.0], ["updated_at", "2015-02-20 08:20:48.032722"], ["vat", 6.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.8ms) Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.5ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (14.5ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (18.7ms) Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-19", "category_id"=>"2", "total_all_taxes"=>"926.0", "vat"=>"183.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-20 08:20:48.203992"]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.9ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 0.6ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3763"], ["name", "eos"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:48.349614"], ["date", "2015-02-20"], ["name", "Quo culpa vel."], ["state", "new"], ["updated_at", "2015-02-20 08:20:48.349614"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3588"], ["name", "esse"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:48.355550"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Aut eos dolorem quos et iste."], ["total_all_taxes", 244.0], ["updated_at", "2015-02-20 08:20:48.355550"], ["vat", 45.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1163"], ["name", "quia"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.362552"], ["date", "2015-02-03"], ["expense_id", 1], ["name", "Incidunt dolorem dolorum."], ["total_all_taxes", 409.0], ["updated_at", "2015-02-20 08:20:48.362552"], ["vat", 6.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4798"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.368578"], ["date", "2015-01-22"], ["expense_id", 1], ["name", "Recusandae enim voluptate aut mollitia iste perspiciatis itaque."], ["total_all_taxes", 388.0], ["updated_at", "2015-02-20 08:20:48.368578"], ["vat", 8.0]]  (0.6ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.6ms) Completed 200 OK in 12ms (Views: 10.9ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-20 08:20:48.466097"]]  (1.5ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.1ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51331/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.6ms) Completed 200 OK in 16ms (Views: 13.8ms | ActiveRecord: 1.3ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4724"], ["name", "ex"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:48.568156"], ["date", "2015-02-20"], ["name", "Veniam molestiae explicabo unde non voluptas et perspiciatis."], ["state", "new"], ["updated_at", "2015-02-20 08:20:48.568156"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8330"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.574650"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Earum ex odio asperiores dolorem perspiciatis illo."], ["total_all_taxes", 378.0], ["updated_at", "2015-02-20 08:20:48.574650"], ["vat", 53.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5583"], ["name", "sunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:48.581190"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Molestiae id molestiae enim."], ["total_all_taxes", 712.0], ["updated_at", "2015-02-20 08:20:48.581190"], ["vat", 138.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8842"], ["name", "qui"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.586892"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Dignissimos voluptate porro eum beatae necessitatibus voluptatum."], ["total_all_taxes", 169.0], ["updated_at", "2015-02-20 08:20:48.586892"], ["vat", 8.0]]  (1.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8516"], ["name", "facere"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-20 08:20:48.595665"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Nesciunt eligendi ratione rem distinctio aut odio."], ["total_all_taxes", 168.0], ["updated_at", "2015-02-20 08:20:48.595665"], ["vat", 23.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-20 08:20:48.675752"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51331/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.3ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.8ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6357"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:48.765745"], ["date", "2015-02-20"], ["name", "Exercitationem beatae pariatur voluptas sit tempore molestiae voluptas."], ["state", "submited"], ["updated_at", "2015-02-20 08:20:48.765745"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4251"], ["name", "sunt"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.772955"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Eveniet ut non expedita neque."], ["total_all_taxes", 121.0], ["updated_at", "2015-02-20 08:20:48.772955"], ["vat", 14.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6443"], ["name", "minima"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-20 08:20:48.780148"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Sunt beatae officia est aut similique itaque."], ["total_all_taxes", 677.0], ["updated_at", "2015-02-20 08:20:48.780148"], ["vat", 77.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.5ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.8ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (18.5ms) Completed 200 OK in 22ms (Views: 17.7ms | ActiveRecord: 2.5ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-20 08:20:48.882427"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-20 09:20:48 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.2ms) Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.5ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4134"], ["name", "neque"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-20 08:20:48.976273"], ["date", "2015-02-20"], ["name", "Est adipisci sed."], ["state", "submited"], ["updated_at", "2015-02-20 08:20:48.976273"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0872"], ["name", "occaecati"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:48.982499"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Quod corporis laudantium non ratione aliquam."], ["total_all_taxes", 182.0], ["updated_at", "2015-02-20 08:20:48.982499"], ["vat", 2.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0742"], ["name", "sunt"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-20 08:20:48.992193"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Itaque id earum mollitia."], ["total_all_taxes", 517.0], ["updated_at", "2015-02-20 08:20:48.992193"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1726"], ["name", "voluptate"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:49.000429"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Voluptas dolores laborum odio quibusdam perspiciatis."], ["total_all_taxes", 315.0], ["updated_at", "2015-02-20 08:20:49.000429"], ["vat", 8.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1939"], ["name", "et"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:49.007825"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Nostrum impedit voluptas vitae maxime et."], ["total_all_taxes", 973.0], ["updated_at", "2015-02-20 08:20:49.007825"], ["vat", 24.0]]  (1.5ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5915"], ["name", "et"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-02-20 08:20:49.023692"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Labore quas neque alias et et."], ["total_all_taxes", 496.0], ["updated_at", "2015-02-20 08:20:49.023692"], ["vat", 11.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-20 09:20:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.4ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-20 09:20:49 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-20 08:20:49.166148"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:51331/expense_gun/expenses Completed 302 Found in 7ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-20 09:20:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:51331/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-20 09:20:49 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 1.3ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.4ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.4ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6206"], ["name", "sint"], ["vat_deductible", "f"]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-27 14:29:42 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (107.7ms) Completed 200 OK in 251ms (Views: 246.7ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-02-27 14:29:42 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (304.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (309.9ms) Completed 200 OK in 317ms (Views: 312.1ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:43.043347"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-02-27 13:29:43.043347"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (40.1ms) Completed 200 OK in 44ms (Views: 42.3ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (25.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (31.7ms) Completed 200 OK in 113ms (Views: 35.8ms | ActiveRecord: 0.5ms) ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:43.395865"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-02-27 13:29:43.395865"], ["vat", 20.0]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.7ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.4ms)  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5915"], ["name", "aut"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:43.489001"], ["date", "2015-02-27"], ["name", "Eum minus voluptatem modi quod qui."], ["state", "new"], ["updated_at", "2015-02-27 13:29:43.489001"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3882"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:43.497049"], ["date", "2015-02-05"], ["expense_id", 1], ["name", "Vero expedita est dolores aut alias quo hic."], ["total_all_taxes", 357.0], ["updated_at", "2015-02-27 13:29:43.497049"], ["vat", 49.0]]  (0.7ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4788"], ["name", "ex"], ["vat_deductible", "t"]]  (1.2ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:43.509361"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Quia qui quasi distinctio doloremque numquam dolorum."], ["total_all_taxes", 521.0], ["updated_at", "2015-02-27 13:29:43.509361"], ["vat", 100.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4995"], ["name", "distinctio"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:43.518097"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "In et quas qui."], ["total_all_taxes", 960.0], ["updated_at", "2015-02-27 13:29:43.518097"], ["vat", 39.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1887"], ["name", "omnis"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:43.524455"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Iure est earum et cumque perferendis magnam molestiae."], ["total_all_taxes", 874.0], ["updated_at", "2015-02-27 13:29:43.524455"], ["vat", 129.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4261"], ["name", "asperiores"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:43.530389"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Nihil nulla ut voluptatum."], ["total_all_taxes", 422.0], ["updated_at", "2015-02-27 13:29:43.530389"], ["vat", 46.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (6.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 13ms (Views: 12.1ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-02-27"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-02-27 13:29:43.705980"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.8ms) Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.6ms)  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5526"], ["name", "amet"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:43.850342"], ["date", "2015-02-27"], ["name", "Numquam et temporibus."], ["state", "new"], ["updated_at", "2015-02-27 13:29:43.850342"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3631"], ["name", "quasi"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:43.857488"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Quia quos ex expedita numquam."], ["total_all_taxes", 998.0], ["updated_at", "2015-02-27 13:29:43.857488"], ["vat", 43.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3187"], ["name", "minus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:43.864606"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Suscipit fugit aut tenetur corrupti voluptate tempore."], ["total_all_taxes", 358.0], ["updated_at", "2015-02-27 13:29:43.864606"], ["vat", 44.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (1.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7404"], ["name", "exercitationem"], ["vat_deductible", "f"]]  (1.7ms) commit transaction  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:43.876460"], ["date", "2015-02-24"], ["expense_id", 1], ["name", "Et ad doloribus ratione aperiam."], ["total_all_taxes", 474.0], ["updated_at", "2015-02-27 13:29:43.876460"], ["vat", 29.0]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3897"], ["name", "quisquam"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:43.887575"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Ea temporibus et quibusdam excepturi aut culpa."], ["total_all_taxes", 407.0], ["updated_at", "2015-02-27 13:29:43.887575"], ["vat", 42.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4557"], ["name", "quia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:43.893965"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Velit consequatur sit ea culpa inventore."], ["total_all_taxes", 680.0], ["updated_at", "2015-02-27 13:29:43.893965"], ["vat", 1.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (10.6ms) Completed 200 OK in 13ms (Views: 11.0ms | ActiveRecord: 0.8ms) ExpenseGun::ExpenseLine Load (0.6ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-02-27 14:29:43 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (16.1ms) Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-12", "category_id"=>"2", "total_all_taxes"=>"998.0", "vat"=>"43.0", "company_part"=>"25.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-02-27 13:29:44.086990"]]  (2.5ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.1ms | ActiveRecord: 0.6ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9233"], ["name", "facere"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:44.178489"], ["date", "2015-02-27"], ["name", "Sint qui ab asperiores sed."], ["state", "new"], ["updated_at", "2015-02-27 13:29:44.178489"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4606"], ["name", "voluptate"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:44.185497"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Quia quod omnis saepe aliquam eveniet consequatur itaque."], ["total_all_taxes", 984.0], ["updated_at", "2015-02-27 13:29:44.185497"], ["vat", 41.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1891"], ["name", "aut"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:44.192406"], ["date", "2015-01-28"], ["expense_id", 1], ["name", "Dolor sint aut."], ["total_all_taxes", 587.0], ["updated_at", "2015-02-27 13:29:44.192406"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5535"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:44.198250"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Dolores sed magni necessitatibus sequi sit."], ["total_all_taxes", 129.0], ["updated_at", "2015-02-27 13:29:44.198250"], ["vat", 15.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (13.2ms) Completed 200 OK in 15ms (Views: 13.2ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-02-27 13:29:44.298692"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:53487/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.5ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (17.4ms) Completed 200 OK in 20ms (Views: 16.8ms | ActiveRecord: 2.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5362"], ["name", "magni"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:44.406686"], ["date", "2015-02-27"], ["name", "Eos dolorem explicabo."], ["state", "new"], ["updated_at", "2015-02-27 13:29:44.406686"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4738"], ["name", "quidem"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:44.413702"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Repellat est eum aut tempora est."], ["total_all_taxes", 547.0], ["updated_at", "2015-02-27 13:29:44.413702"], ["vat", 85.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7253"], ["name", "soluta"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:44.422529"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Tempore excepturi animi numquam adipisci."], ["total_all_taxes", 574.0], ["updated_at", "2015-02-27 13:29:44.422529"], ["vat", 28.0]]  (1.5ms) commit transaction  (0.2ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8434"], ["name", "repellendus"], ["vat_deductible", "t"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:44.434869"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Delectus saepe autem quia consectetur doloribus necessitatibus et."], ["total_all_taxes", 616.0], ["updated_at", "2015-02-27 13:29:44.434869"], ["vat", 2.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.3ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-02-27 13:29:44.528827"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:53487/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (68.7ms) Completed 200 OK in 70ms (Views: 68.9ms | ActiveRecord: 0.9ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (2.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.0ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8134"], ["name", "voluptatibus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:44.682723"], ["date", "2015-02-27"], ["name", "Adipisci dolor at eaque nobis quia."], ["state", "submited"], ["updated_at", "2015-02-27 13:29:44.682723"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2367"], ["name", "quae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:44.689954"], ["date", "2015-02-01"], ["expense_id", 1], ["name", "Qui et quo fugiat quia ut."], ["total_all_taxes", 553.0], ["updated_at", "2015-02-27 13:29:44.689954"], ["vat", 10.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4129"], ["name", "veniam"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:44.696842"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Nulla placeat vel."], ["total_all_taxes", 302.0], ["updated_at", "2015-02-27 13:29:44.696842"], ["vat", 48.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1737"], ["name", "suscipit"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:44.702756"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Qui corporis ratione voluptatem."], ["total_all_taxes", 710.0], ["updated_at", "2015-02-27 13:29:44.702756"], ["vat", 3.0]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4142"], ["name", "est"], ["vat_deductible", "f"]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:44.714213"], ["date", "2015-02-06"], ["expense_id", 1], ["name", "Incidunt ut provident unde animi rem eos vel."], ["total_all_taxes", 367.0], ["updated_at", "2015-02-27 13:29:44.714213"], ["vat", 13.0]]  (1.1ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.8ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-02-27 13:29:44.804887"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 13ms (Views: 11.3ms | ActiveRecord: 1.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3434"], ["name", "iste"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:44.900200"], ["date", "2015-02-27"], ["name", "Dicta rem est laudantium officiis."], ["state", "submited"], ["updated_at", "2015-02-27 13:29:44.900200"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6547"], ["name", "dolorum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-02-27 13:29:44.907065"], ["date", "2015-02-25"], ["expense_id", 1], ["name", "Officiis non voluptas."], ["total_all_taxes", 969.0], ["updated_at", "2015-02-27 13:29:44.907065"], ["vat", 44.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2686"], ["name", "est"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:44.914371"], ["date", "2015-02-08"], ["expense_id", 1], ["name", "Est omnis esse excepturi."], ["total_all_taxes", 483.0], ["updated_at", "2015-02-27 13:29:44.914371"], ["vat", 95.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8926"], ["name", "dolore"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:44.920592"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Consequatur fugiat et."], ["total_all_taxes", 308.0], ["updated_at", "2015-02-27 13:29:44.920592"], ["vat", 52.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2044"], ["name", "consequatur"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-02-27 13:29:44.932628"], ["date", "2015-02-22"], ["expense_id", 1], ["name", "Tempora ut et placeat ratione soluta ut."], ["total_all_taxes", 513.0], ["updated_at", "2015-02-27 13:29:44.932628"], ["vat", 84.0]]  (1.3ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-02-27 14:29:44 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-02-27 14:29:45 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-02-27 13:29:45.026837"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:53487/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-02-27 14:29:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:53487/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-02-27 14:29:45 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.7ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.7ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4330"], ["name", "eaque"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7560"], ["name", "temporibus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5505"], ["name", "modi"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3457"], ["name", "et"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6023"], ["name", "mollitia"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8551"], ["name", "quos"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5555"], ["name", "commodi"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2379"], ["name", "saepe"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2967"], ["name", "temporibus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2816"], ["name", "magnam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1345"], ["name", "ex"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8603"], ["name", "molestiae"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9000"], ["name", "sed"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8424"], ["name", "explicabo"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5458"], ["name", "ut"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-02-27 13:29:58.254325"], ["date", "2015-02-27"], ["name", "Suscipit quia adipisci rerum qui fugiat rerum."], ["state", "new"], ["updated_at", "2015-02-27 13:29:58.254325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6317"], ["name", "neque"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 75.0], ["created_at", "2015-02-27 13:29:58.259433"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Unde accusantium molestiae quaerat quia."], ["total_all_taxes", 941.0], ["updated_at", "2015-02-27 13:29:58.259433"], ["vat", 17.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2442"], ["name", "ratione"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-02-27 13:29:58.264537"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Autem dignissimos eveniet perferendis."], ["total_all_taxes", 861.0], ["updated_at", "2015-02-27 13:29:58.264537"], ["vat", 83.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.2ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6325"], ["name", "fugit"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7499"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1715"], ["name", "vero"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0625"], ["name", "cumque"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6086"], ["name", "corporis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2806"], ["name", "quia"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8861"], ["name", "quo"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8488"], ["name", "hic"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1695"], ["name", "eveniet"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3653"], ["name", "ea"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4556"], ["name", "doloremque"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1344"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2189"], ["name", "dolores"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1777"], ["name", "occaecati"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9565"], ["name", "velit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 07:59:51.738054"], ["date", "2015-03-11"], ["name", "Aut doloribus est quis debitis labore."], ["state", "new"], ["updated_at", "2015-03-11 07:59:51.738054"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7488"], ["name", "culpa"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-03-11 07:59:51.744707"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Quia consequatur laudantium."], ["total_all_taxes", 336.0], ["updated_at", "2015-03-11 07:59:51.744707"], ["vat", 22.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3878"], ["name", "laborum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 07:59:51.749721"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Ut totam aut non mollitia et pariatur."], ["total_all_taxes", 473.0], ["updated_at", "2015-03-11 07:59:51.749721"], ["vat", 84.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3669"], ["name", "animi"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 07:59:51.753647"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Consequatur esse laudantium in eligendi."], ["total_all_taxes", 230.0], ["updated_at", "2015-03-11 07:59:51.753647"], ["vat", 46.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9530"], ["name", "ullam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-03-11 07:59:51.757226"], ["date", "2015-03-08"], ["expense_id", 1], ["name", "Quia voluptatem dolorum."], ["total_all_taxes", 247.0], ["updated_at", "2015-03-11 07:59:51.757226"], ["vat", 35.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0679"], ["name", "natus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-03-11 07:59:51.760603"], ["date", "2015-02-21"], ["expense_id", 1], ["name", "Vel voluptate in maxime explicabo."], ["total_all_taxes", 738.0], ["updated_at", "2015-03-11 07:59:51.760603"], ["vat", 139.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2473"], ["name", "ea"], ["vat_deductible", "f"]]  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4272"], ["name", "laborum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8166"], ["name", "aut"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8137"], ["name", "facilis"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6863"], ["name", "voluptatibus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5185"], ["name", "corporis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2225"], ["name", "est"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9141"], ["name", "porro"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0765"], ["name", "sed"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1541"], ["name", "at"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3934"], ["name", "eum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (4.9ms) begin transaction  (0.6ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2783"], ["name", "sed"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8388"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9028"], ["name", "aperiam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3333"], ["name", "aut"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9762"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1787"], ["name", "architecto"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6425"], ["name", "alias"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6254"], ["name", "dolores"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3836"], ["name", "ipsa"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7236"], ["name", "a"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2549"], ["name", "perspiciatis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.6ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5224"], ["name", "alias"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2570"], ["name", "totam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3804"], ["name", "consectetur"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6641"], ["name", "enim"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2605"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8857"], ["name", "aperiam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1476"], ["name", "hic"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2620"], ["name", "voluptates"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1133"], ["name", "cupiditate"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7751"], ["name", "facere"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5240"], ["name", "et"], ["vat_deductible", "f"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4450"], ["name", "magni"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4653"], ["name", "rem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6515"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0421"], ["name", "autem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8884"], ["name", "autem"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0587"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9454"], ["name", "vel"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3281"], ["name", "accusamus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9485"], ["name", "non"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8310"], ["name", "eligendi"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8096"], ["name", "et"], ["vat_deductible", "f"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.9ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2324"], ["name", "tenetur"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4228"], ["name", "perspiciatis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3835"], ["name", "blanditiis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0489"], ["name", "repellat"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7343"], ["name", "est"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2068"], ["name", "quibusdam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5422"], ["name", "minus"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2008"], ["name", "reiciendis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6461"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2446"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3255"], ["name", "voluptas"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.2ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0221"], ["name", "dolorem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1820"], ["name", "rem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1768"], ["name", "iste"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6534"], ["name", "aliquid"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8242"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3844"], ["name", "alias"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9034"], ["name", "dolores"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1926"], ["name", "sapiente"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3744"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3826"], ["name", "a"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1063"], ["name", "delectus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0035"], ["name", "quia"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6217"], ["name", "vero"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0152"], ["name", "voluptatum"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4936"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8313"], ["name", "vitae"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9163"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3713"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6742"], ["name", "et"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5452"], ["name", "et"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7037"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0697"], ["name", "quisquam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8977"], ["name", "quia"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5334"], ["name", "ex"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9113"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7246"], ["name", "praesentium"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6743"], ["name", "iure"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1646"], ["name", "eius"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4984"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8583"], ["name", "saepe"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2721"], ["name", "et"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3334"], ["name", "deleniti"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5988"], ["name", "recusandae"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.7ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6680"], ["name", "soluta"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8878"], ["name", "occaecati"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7183"], ["name", "rem"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5054"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5746"], ["name", "repellendus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1478"], ["name", "vel"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9157"], ["name", "voluptatum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4637"], ["name", "voluptas"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8383"], ["name", "voluptatem"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9573"], ["name", "quas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1332"], ["name", "ullam"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.6ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1638"], ["name", "debitis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0711"], ["name", "hic"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0227"], ["name", "exercitationem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3838"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2969"], ["name", "ex"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8536"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8933"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6369"], ["name", "veniam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4558"], ["name", "animi"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6135"], ["name", "inventore"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3045"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5853"], ["name", "quas"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8736"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3158"], ["name", "fuga"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9556"], ["name", "dignissimos"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8815"], ["name", "aut"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1342"], ["name", "aut"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2484"], ["name", "quaerat"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9393"], ["name", "sit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9204"], ["name", "assumenda"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7333"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1971"], ["name", "et"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1264"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8519"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4076"], ["name", "amet"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8696"], ["name", "ab"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:11.212140"], ["date", "2015-03-11"], ["name", "Voluptatem eum quia corporis dolore iste ducimus."], ["state", "new"], ["updated_at", "2015-03-11 08:07:11.212140"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2935"], ["name", "et"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:11.217227"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Esse natus sit."], ["total_all_taxes", 529.0], ["updated_at", "2015-03-11 08:07:11.217227"], ["vat", 70.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5347"], ["name", "ullam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:11.221431"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Voluptas ut beatae quo omnis temporibus ducimus rem."], ["total_all_taxes", 907.0], ["updated_at", "2015-03-11 08:07:11.221431"], ["vat", 160.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1865"], ["name", "odit"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:11.225656"], ["date", "2015-02-28"], ["expense_id", 1], ["name", "Eum omnis perspiciatis error quas aliquam tempora."], ["total_all_taxes", 298.0], ["updated_at", "2015-03-11 08:07:11.225656"], ["vat", 40.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3341"], ["name", "voluptatem"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:11.231026"], ["date", "2015-03-08"], ["expense_id", 1], ["name", "Sapiente est voluptates ad esse."], ["total_all_taxes", 239.0], ["updated_at", "2015-03-11 08:07:11.231026"], ["vat", 42.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.2ms) begin transaction SQL (5.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1281"], ["name", "voluptas"], ["vat_deductible", "t"]]  (1.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:07:28 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (111.7ms) Completed 200 OK in 252ms (Views: 247.7ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (337.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (342.7ms) Completed 200 OK in 350ms (Views: 345.4ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:29.585118"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-03-11 08:07:29.585118"]]  (0.8ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (81.0ms) Completed 200 OK in 86ms (Views: 83.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (21.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (27.8ms) Completed 200 OK in 51ms (Views: 32.5ms | ActiveRecord: 0.7ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:29.916572"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-03-11 08:07:29.916572"], ["vat", 20.0]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses/1 Completed 302 Found in 9ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:29 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.3ms) Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8256"], ["name", "amet"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:30.010889"], ["date", "2015-03-11"], ["name", "Voluptatum ipsum laborum aut ducimus debitis eveniet est."], ["state", "new"], ["updated_at", "2015-03-11 08:07:30.010889"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7514"], ["name", "deleniti"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.018732"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Dolorem doloribus dolores laboriosam est et id illo."], ["total_all_taxes", 268.0], ["updated_at", "2015-03-11 08:07:30.018732"], ["vat", 53.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5644"], ["name", "nostrum"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:30.025216"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Voluptas aut veniam quam nihil et distinctio."], ["total_all_taxes", 314.0], ["updated_at", "2015-03-11 08:07:30.025216"], ["vat", 47.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5746"], ["name", "rerum"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.087637"], ["date", "2015-03-10"], ["expense_id", 1], ["name", "Impedit at in dolorem et."], ["total_all_taxes", 671.0], ["updated_at", "2015-03-11 08:07:30.087637"], ["vat", 109.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0535"], ["name", "voluptas"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.093434"], ["date", "2015-02-22"], ["expense_id", 1], ["name", "Sit vel similique."], ["total_all_taxes", 877.0], ["updated_at", "2015-03-11 08:07:30.093434"], ["vat", 93.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6122"], ["name", "nesciunt"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:30.099728"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Aliquam et ad neque esse praesentium."], ["total_all_taxes", 726.0], ["updated_at", "2015-03-11 08:07:30.099728"], ["vat", 35.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (10.0ms) Completed 200 OK in 14ms (Views: 13.2ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-03-11"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-03-11 08:07:30.259388"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.2ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.7ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7611"], ["name", "rerum"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:30.351562"], ["date", "2015-03-11"], ["name", "In qui animi sit et dicta."], ["state", "new"], ["updated_at", "2015-03-11 08:07:30.351562"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4236"], ["name", "nam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:30.357553"], ["date", "2015-03-01"], ["expense_id", 1], ["name", "Deserunt occaecati suscipit odit quisquam."], ["total_all_taxes", 788.0], ["updated_at", "2015-03-11 08:07:30.357553"], ["vat", 16.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5569"], ["name", "numquam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:30.364270"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Adipisci rerum quaerat ut voluptatibus temporibus mollitia."], ["total_all_taxes", 894.0], ["updated_at", "2015-03-11 08:07:30.364270"], ["vat", 28.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3372"], ["name", "explicabo"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:30.371055"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Veniam inventore voluptatem sit rem fugiat."], ["total_all_taxes", 489.0], ["updated_at", "2015-03-11 08:07:30.371055"], ["vat", 51.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7527"], ["name", "enim"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:30.377085"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Nihil saepe velit necessitatibus aliquid fugit."], ["total_all_taxes", 160.0], ["updated_at", "2015-03-11 08:07:30.377085"], ["vat", 18.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2731"], ["name", "nihil"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.382811"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Natus expedita eaque."], ["total_all_taxes", 810.0], ["updated_at", "2015-03-11 08:07:30.382811"], ["vat", 72.0]]  (0.9ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.7ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 0.9ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (11.4ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (15.9ms) Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-03-01", "category_id"=>"2", "total_all_taxes"=>"788.0", "vat"=>"16.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.2ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-03-11 08:07:30.572128"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses/1 Completed 302 Found in 8ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 0.6ms)  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1222"], ["name", "eum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:30.666490"], ["date", "2015-03-11"], ["name", "Incidunt omnis voluptas molestiae natus et."], ["state", "new"], ["updated_at", "2015-03-11 08:07:30.666490"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7294"], ["name", "commodi"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:30.673009"], ["date", "2015-02-24"], ["expense_id", 1], ["name", "Sint possimus et animi aut."], ["total_all_taxes", 773.0], ["updated_at", "2015-03-11 08:07:30.673009"], ["vat", 30.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5782"], ["name", "molestiae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:30.679246"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Deleniti temporibus atque."], ["total_all_taxes", 281.0], ["updated_at", "2015-03-11 08:07:30.679246"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7001"], ["name", "occaecati"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.686513"], ["date", "2015-02-27"], ["expense_id", 1], ["name", "Iste explicabo nulla nesciunt."], ["total_all_taxes", 136.0], ["updated_at", "2015-03-11 08:07:30.686513"], ["vat", 6.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5864"], ["name", "dolor"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.692337"], ["date", "2015-03-08"], ["expense_id", 1], ["name", "Vel temporibus consectetur veritatis."], ["total_all_taxes", 542.0], ["updated_at", "2015-03-11 08:07:30.692337"], ["vat", 11.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-03-11 08:07:30.778947"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49692/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.4ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.4ms) Completed 200 OK in 13ms (Views: 11.4ms | ActiveRecord: 1.3ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6824"], ["name", "cupiditate"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:30.933616"], ["date", "2015-03-11"], ["name", "Consequuntur id voluptates fugiat numquam."], ["state", "new"], ["updated_at", "2015-03-11 08:07:30.933616"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4325"], ["name", "vel"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:30.939531"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Nobis ut eveniet a."], ["total_all_taxes", 375.0], ["updated_at", "2015-03-11 08:07:30.939531"], ["vat", 4.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7088"], ["name", "fugiat"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:30.946167"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Atque suscipit minus corrupti aut."], ["total_all_taxes", 845.0], ["updated_at", "2015-03-11 08:07:30.946167"], ["vat", 106.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8708"], ["name", "nemo"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:30.953715"], ["date", "2015-02-28"], ["expense_id", 1], ["name", "Fugiat autem porro dolorem."], ["total_all_taxes", 261.0], ["updated_at", "2015-03-11 08:07:30.953715"], ["vat", 12.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:07:30 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.9ms) Completed 200 OK in 12ms (Views: 10.2ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-03-11 08:07:31.039674"]]  (1.4ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49692/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.7ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.0ms) Completed 200 OK in 13ms (Views: 10.7ms | ActiveRecord: 1.7ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1344"], ["name", "quis"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:31.133219"], ["date", "2015-03-11"], ["name", "Nisi neque qui sed."], ["state", "submited"], ["updated_at", "2015-03-11 08:07:31.133219"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8386"], ["name", "assumenda"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:31.139470"], ["date", "2015-03-07"], ["expense_id", 1], ["name", "Voluptatibus et voluptates illo."], ["total_all_taxes", 839.0], ["updated_at", "2015-03-11 08:07:31.139470"], ["vat", 152.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8622"], ["name", "doloribus"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:31.146176"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Non voluptatum eum maiores velit aspernatur."], ["total_all_taxes", 556.0], ["updated_at", "2015-03-11 08:07:31.146176"], ["vat", 32.0]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0901"], ["name", "sit"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:07:31.154802"], ["date", "2015-03-01"], ["expense_id", 1], ["name", "Nobis quos impedit omnis soluta sed."], ["total_all_taxes", 401.0], ["updated_at", "2015-03-11 08:07:31.154802"], ["vat", 21.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.1ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-03-11 08:07:31.266525"]]  (4.8ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses/1 Completed 302 Found in 12ms (ActiveRecord: 5.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (8.9ms) Completed 200 OK in 13ms (Views: 10.1ms | ActiveRecord: 0.9ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3183"], ["name", "et"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.2ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:07:31.388269"], ["date", "2015-03-11"], ["name", "Quo eveniet optio modi asperiores nam."], ["state", "submited"], ["updated_at", "2015-03-11 08:07:31.388269"]]  (1.0ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2732"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:31.397867"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Sapiente molestiae et quia debitis laudantium fugiat quibusdam."], ["total_all_taxes", 548.0], ["updated_at", "2015-03-11 08:07:31.397867"], ["vat", 32.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1317"], ["name", "magni"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:07:31.405337"], ["date", "2015-03-06"], ["expense_id", 1], ["name", "Quia culpa enim qui dolorum excepturi."], ["total_all_taxes", 589.0], ["updated_at", "2015-03-11 08:07:31.405337"], ["vat", 58.0]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0435"], ["name", "non"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:31.411342"], ["date", "2015-02-25"], ["expense_id", 1], ["name", "Deleniti similique et neque qui repellat facilis."], ["total_all_taxes", 437.0], ["updated_at", "2015-03-11 08:07:31.411342"], ["vat", 23.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3165"], ["name", "minus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 100.0], ["created_at", "2015-03-11 08:07:31.416982"], ["date", "2015-03-10"], ["expense_id", 1], ["name", "Est ratione omnis aut maiores reiciendis est deserunt."], ["total_all_taxes", 268.0], ["updated_at", "2015-03-11 08:07:31.416982"], ["vat", 3.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7823"], ["name", "molestias"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 75.0], ["created_at", "2015-03-11 08:07:31.423219"], ["date", "2015-03-01"], ["expense_id", 1], ["name", "Necessitatibus provident ullam."], ["total_all_taxes", 668.0], ["updated_at", "2015-03-11 08:07:31.423219"], ["vat", 55.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.2ms) Completed 200 OK in 14ms (Views: 12.1ms | ActiveRecord: 1.2ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-03-11 08:07:31.508999"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:49692/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49692/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:07:31 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (6.2ms) Completed 200 OK in 8ms (Views: 6.8ms | ActiveRecord: 0.7ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.6ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7727"], ["name", "minus"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4109"], ["name", "accusantium"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6889"], ["name", "veniam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6552"], ["name", "aperiam"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:22.090908"], ["date", "2015-03-11"], ["name", "Autem neque dolorum quam nemo harum molestiae."], ["state", "new"], ["updated_at", "2015-03-11 08:08:22.090908"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3676"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:22.096819"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Sunt qui unde in ut."], ["total_all_taxes", 375.0], ["updated_at", "2015-03-11 08:08:22.096819"], ["vat", 45.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6746"], ["name", "in"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:22.100936"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Assumenda consectetur aspernatur quos adipisci."], ["total_all_taxes", 277.0], ["updated_at", "2015-03-11 08:08:22.100936"], ["vat", 3.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1558"], ["name", "sit"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:22.105490"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Natus et deleniti."], ["total_all_taxes", 212.0], ["updated_at", "2015-03-11 08:08:22.105490"], ["vat", 8.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.5ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1442"], ["name", "numquam"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6585"], ["name", "quisquam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1311"], ["name", "qui"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9355"], ["name", "quia"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1418"], ["name", "facilis"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8014"], ["name", "adipisci"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4337"], ["name", "non"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5409"], ["name", "optio"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7420"], ["name", "est"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7893"], ["name", "velit"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9944"], ["name", "labore"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5722"], ["name", "libero"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8862"], ["name", "placeat"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5832"], ["name", "odio"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9912"], ["name", "explicabo"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:24.151690"], ["date", "2015-03-11"], ["name", "Amet in sit aut sint quo."], ["state", "new"], ["updated_at", "2015-03-11 08:08:24.151690"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6356"], ["name", "ab"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 25.0], ["created_at", "2015-03-11 08:08:24.157702"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "Quae qui quia."], ["total_all_taxes", 460.0], ["updated_at", "2015-03-11 08:08:24.157702"], ["vat", 22.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6195"], ["name", "illum"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 25.0], ["created_at", "2015-03-11 08:08:24.162085"], ["date", "2015-02-26"], ["expense_id", 1], ["name", "Est fugit quibusdam blanditiis hic."], ["total_all_taxes", 300.0], ["updated_at", "2015-03-11 08:08:24.162085"], ["vat", 11.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3094"], ["name", "repellat"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:24.166680"], ["date", "2015-02-24"], ["expense_id", 1], ["name", "Et nisi quasi hic minima quae natus."], ["total_all_taxes", 236.0], ["updated_at", "2015-03-11 08:08:24.166680"], ["vat", 47.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.0ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.2ms) rollback transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (3.1ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0526"], ["name", "voluptas"], ["vat_deductible", "f"]]  (2.4ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:08:37 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (102.3ms) Completed 200 OK in 210ms (Views: 206.7ms | ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-03-11 09:08:38 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (302.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (307.2ms) Completed 200 OK in 314ms (Views: 309.4ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:08:38 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:38.655146"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-03-11 08:08:38.655146"]]  (2.3ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:38 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (77.8ms) Completed 200 OK in 82ms (Views: 80.4ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-03-11 09:08:38 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (23.2ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (29.0ms) Completed 200 OK in 53ms (Views: 33.6ms | ActiveRecord: 0.9ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-03-11 09:08:38 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:38.994390"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-03-11 08:08:38.994390"], ["vat", 20.0]]  (2.1ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 3.1ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.1ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.5ms)  (2.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5614"], ["name", "reiciendis"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (1.6ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:39.152559"], ["date", "2015-03-11"], ["name", "Dolorem error molestias labore sunt."], ["state", "new"], ["updated_at", "2015-03-11 08:08:39.152559"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6027"], ["name", "enim"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:08:39.163571"], ["date", "2015-03-04"], ["expense_id", 1], ["name", "Velit laudantium totam modi quo."], ["total_all_taxes", 343.0], ["updated_at", "2015-03-11 08:08:39.163571"], ["vat", 23.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3613"], ["name", "molestias"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:08:39.171127"], ["date", "2015-02-25"], ["expense_id", 1], ["name", "Quia hic voluptate."], ["total_all_taxes", 209.0], ["updated_at", "2015-03-11 08:08:39.171127"], ["vat", 11.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4378"], ["name", "cum"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 25.0], ["created_at", "2015-03-11 08:08:39.177002"], ["date", "2015-02-15"], ["expense_id", 1], ["name", "Id in alias accusamus quia."], ["total_all_taxes", 109.0], ["updated_at", "2015-03-11 08:08:39.177002"], ["vat", 6.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6446"], ["name", "nemo"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:39.183382"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Deleniti dolorum aperiam ratione earum autem."], ["total_all_taxes", 316.0], ["updated_at", "2015-03-11 08:08:39.183382"], ["vat", 41.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.1ms) Completed 200 OK in 10ms (Views: 7.7ms | ActiveRecord: 0.6ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.6ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.5ms) Completed 200 OK in 12ms (Views: 10.8ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-03-11"}, "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-03-11 08:08:39.339740"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (7.5ms) Completed 200 OK in 10ms (Views: 8.2ms | ActiveRecord: 0.5ms)  (1.5ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0262"], ["name", "odio"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:39.430835"], ["date", "2015-03-11"], ["name", "Ducimus recusandae quasi."], ["state", "new"], ["updated_at", "2015-03-11 08:08:39.430835"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1412"], ["name", "corrupti"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:08:39.437122"], ["date", "2015-02-14"], ["expense_id", 1], ["name", "Nemo est debitis repellat cum vero sunt asperiores."], ["total_all_taxes", 561.0], ["updated_at", "2015-03-11 08:08:39.437122"], ["vat", 54.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4472"], ["name", "sit"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:08:39.443680"], ["date", "2015-02-21"], ["expense_id", 1], ["name", "Vero enim labore fugiat tempore."], ["total_all_taxes", 317.0], ["updated_at", "2015-03-11 08:08:39.443680"], ["vat", 24.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (4.7ms) Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.4ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (13.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (17.8ms) Completed 200 OK in 22ms (Views: 19.8ms | ActiveRecord: 0.5ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-02-14", "category_id"=>"2", "total_all_taxes"=>"561.0", "vat"=>"54.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.0ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-03-11 08:08:39.615698"]]  (0.7ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.4ms) Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.4ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3756"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:39.695770"], ["date", "2015-03-11"], ["name", "Id est laboriosam reprehenderit illum ipsum."], ["state", "new"], ["updated_at", "2015-03-11 08:08:39.695770"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1474"], ["name", "porro"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:39.703519"], ["date", "2015-02-23"], ["expense_id", 1], ["name", "Inventore enim suscipit rerum delectus in eligendi."], ["total_all_taxes", 940.0], ["updated_at", "2015-03-11 08:08:39.703519"], ["vat", 21.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6333"], ["name", "ut"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:08:39.710235"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Qui eos in."], ["total_all_taxes", 807.0], ["updated_at", "2015-03-11 08:08:39.710235"], ["vat", 92.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9123"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:39.716586"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Ut officia veniam quam vel accusantium dolorem rerum."], ["total_all_taxes", 691.0], ["updated_at", "2015-03-11 08:08:39.716586"], ["vat", 15.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1176"], ["name", "ducimus"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:39.723761"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Odio voluptas omnis ipsum."], ["total_all_taxes", 634.0], ["updated_at", "2015-03-11 08:08:39.723761"], ["vat", 45.0]]  (1.0ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.8ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-03-11 08:08:39.821820"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49716/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:08:39 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.2ms) Completed 200 OK in 14ms (Views: 11.7ms | ActiveRecord: 1.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (2.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7877"], ["name", "repudiandae"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:39.993675"], ["date", "2015-03-11"], ["name", "Odio accusamus recusandae."], ["state", "new"], ["updated_at", "2015-03-11 08:08:39.993675"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1685"], ["name", "voluptate"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:40.001911"], ["date", "2015-02-26"], ["expense_id", 1], ["name", "Voluptates aut eum ad est tenetur omnis."], ["total_all_taxes", 931.0], ["updated_at", "2015-03-11 08:08:40.001911"], ["vat", 21.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1221"], ["name", "reprehenderit"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:40.010695"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Necessitatibus est omnis dolorem voluptate molestias ex."], ["total_all_taxes", 586.0], ["updated_at", "2015-03-11 08:08:40.010695"], ["vat", 72.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6906"], ["name", "aut"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:40.020057"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Molestiae ut dolore soluta explicabo consequatur."], ["total_all_taxes", 274.0], ["updated_at", "2015-03-11 08:08:40.020057"], ["vat", 43.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4776"], ["name", "ut"], ["vat_deductible", "f"]]  (1.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:40.031093"], ["date", "2015-02-24"], ["expense_id", 1], ["name", "Quaerat qui quo ducimus repellendus consectetur mollitia."], ["total_all_taxes", 830.0], ["updated_at", "2015-03-11 08:08:40.031093"], ["vat", 87.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.6ms) Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-03-11 08:08:40.121448"]]  (0.9ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49716/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (7.3ms) Completed 200 OK in 10ms (Views: 8.4ms | ActiveRecord: 0.8ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6597"], ["name", "temporibus"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:40.218373"], ["date", "2015-03-11"], ["name", "Necessitatibus odio eligendi aut iusto."], ["state", "submited"], ["updated_at", "2015-03-11 08:08:40.218373"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6516"], ["name", "dolor"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:40.225496"], ["date", "2015-02-26"], ["expense_id", 1], ["name", "Quis nostrum atque."], ["total_all_taxes", 221.0], ["updated_at", "2015-03-11 08:08:40.225496"], ["vat", 17.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3448"], ["name", "consectetur"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:08:40.231543"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Iusto eos a animi qui dolore."], ["total_all_taxes", 602.0], ["updated_at", "2015-03-11 08:08:40.231543"], ["vat", 36.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (10.7ms) Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 1.0ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-03-11 08:08:40.325786"]]  (1.0ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses/1 Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (5.3ms) Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.6ms) ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8587"], ["name", "pariatur"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:08:40.410217"], ["date", "2015-03-11"], ["name", "Sed dignissimos omnis doloremque corporis nulla voluptatem similique."], ["state", "submited"], ["updated_at", "2015-03-11 08:08:40.410217"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4187"], ["name", "tenetur"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:40.416321"], ["date", "2015-02-23"], ["expense_id", 1], ["name", "Est rerum et veritatis quos autem."], ["total_all_taxes", 730.0], ["updated_at", "2015-03-11 08:08:40.416321"], ["vat", 134.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3419"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-03-11 08:08:40.423716"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Asperiores consequatur vero eligendi eum ut vel."], ["total_all_taxes", 640.0], ["updated_at", "2015-03-11 08:08:40.423716"], ["vat", 45.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7553"], ["name", "quas"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-03-11 08:08:40.429686"], ["date", "2015-02-11"], ["expense_id", 1], ["name", "Fugit est consequatur."], ["total_all_taxes", 802.0], ["updated_at", "2015-03-11 08:08:40.429686"], ["vat", 122.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4327"], ["name", "fugiat"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-03-11 08:08:40.435786"], ["date", "2015-03-07"], ["expense_id", 1], ["name", "Assumenda qui numquam qui aperiam dolor qui recusandae."], ["total_all_taxes", 181.0], ["updated_at", "2015-03-11 08:08:40.435786"], ["vat", 9.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 10ms (Views: 8.7ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-03-11 08:08:40.518339"]]  (1.3ms) commit transaction Redirected to http://127.0.0.1:49716/expense_gun/expenses Completed 302 Found in 5ms (ActiveRecord: 1.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49716/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:08:40 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.6ms) Completed 200 OK in 11ms (Views: 9.0ms | ActiveRecord: 1.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses'; ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.2ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7548"], ["name", "qui"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) rollback transaction  (0.2ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3469"], ["name", "cum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2673"], ["name", "animi"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6347"], ["name", "minus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6872"], ["name", "laudantium"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7125"], ["name", "non"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8563"], ["name", "labore"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4621"], ["name", "nostrum"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.1ms) begin transaction  (0.3ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2848"], ["name", "perferendis"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1532"], ["name", "at"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7297"], ["name", "voluptatibus"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0022"], ["name", "iure"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7277"], ["name", "in"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9176"], ["name", "consequatur"], ["vat_deductible", "t"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2304"], ["name", "necessitatibus"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:36.089681"], ["date", "2015-03-11"], ["name", "Maiores in qui quibusdam magnam nisi deserunt."], ["state", "new"], ["updated_at", "2015-03-11 08:17:36.089681"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1474"], ["name", "excepturi"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 75.0], ["created_at", "2015-03-11 08:17:36.095611"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Cumque quae sint."], ["total_all_taxes", 915.0], ["updated_at", "2015-03-11 08:17:36.095611"], ["vat", 70.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1364"], ["name", "corporis"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:36.099668"], ["date", "2015-02-23"], ["expense_id", 1], ["name", "Ducimus nam voluptatem similique animi quam."], ["total_all_taxes", 444.0], ["updated_at", "2015-03-11 08:17:36.099668"], ["vat", 15.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3365"], ["name", "in"], ["vat_deductible", "f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:17:36.104226"], ["date", "2015-02-28"], ["expense_id", 1], ["name", "Rerum doloremque tempore."], ["total_all_taxes", 619.0], ["updated_at", "2015-03-11 08:17:36.104226"], ["vat", 89.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "1878"], ["name", "quam"], ["vat_deductible", "t"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:36.108134"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Nobis veniam aut."], ["total_all_taxes", 105.0], ["updated_at", "2015-03-11 08:17:36.108134"], ["vat", 12.0]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4786"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-03-11 08:17:36.112747"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Laudantium voluptatem eum dolorum amet iure."], ["total_all_taxes", 989.0], ["updated_at", "2015-03-11 08:17:36.112747"], ["vat", 96.0]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 1]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 2]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 3]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 4]] SQL (0.0ms) DELETE FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? [["id", 5]] SQL (0.1ms) DELETE FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? [["id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 1 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 2 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 3 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 4 LIMIT 1 ExpenseGun::ExpenseLine Exists (0.1ms) SELECT 1 AS one FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = 5 LIMIT 1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.2ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.9ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.9ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (2.8ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2543"], ["name", "non"], ["vat_deductible", "f"]]  (2.2ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:17:51 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (101.8ms) Completed 200 OK in 212ms (Views: 207.4ms | ActiveRecord: 1.4ms) Started GET "/expense_gun/expenses/new" for 127.0.0.1 at 2015-03-11 09:17:51 +0100 Processing by ExpenseGun::ExpensesController#new as HTML Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (352.9ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/new.html.slim within layouts/expense_gun/application (358.0ms) Completed 200 OK in 365ms (Views: 360.2ms | ActiveRecord: 0.0ms) Started POST "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpensesController#create as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"hello", "date"=>"2012-12-21"}}  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:52.432834"], ["date", "2012-12-21"], ["name", "hello"], ["state", "new"], ["updated_at", "2015-03-11 08:17:52.432834"]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses/1 Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (96.5ms) Completed 200 OK in 101ms (Views: 98.9ms | ActiveRecord: 0.8ms) Started GET "/expense_gun/expenses/1/expense_lines/new" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpenseLinesController#new as HTML Parameters: {"expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (73.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/new.html.slim within layouts/expense_gun/application (79.8ms) Completed 200 OK in 104ms (Views: 84.4ms | ActiveRecord: 0.6ms) ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" ORDER BY "expense_gun_categories"."id" ASC LIMIT 1 Started POST "/expense_gun/expenses/1/expense_lines" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpenseLinesController#create as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"taxi", "date"=>"2012-12-21", "category_id"=>"1", "total_all_taxes"=>"100", "vat"=>"20", "company_part"=>"50"}, "expense_id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 1], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:52.845553"], ["date", "2012-12-21"], ["expense_id", 1], ["name", "taxi"], ["total_all_taxes", 100.0], ["updated_at", "2015-03-11 08:17:52.845553"], ["vat", 20.0]]  (2.2ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses/1 Completed 302 Found in 11ms (ActiveRecord: 3.0ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (6.1ms) Completed 200 OK in 9ms (Views: 7.2ms | ActiveRecord: 0.5ms)  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7631"], ["name", "officia"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:52.945332"], ["date", "2015-03-11"], ["name", "Excepturi et repellat qui totam sed vero."], ["state", "new"], ["updated_at", "2015-03-11 08:17:52.945332"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4726"], ["name", "cum"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:52.953057"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Velit eum et omnis qui eveniet possimus."], ["total_all_taxes", 143.0], ["updated_at", "2015-03-11 08:17:52.953057"], ["vat", 23.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2562"], ["name", "aliquam"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:52.959644"], ["date", "2015-02-09"], ["expense_id", 1], ["name", "Sint error possimus."], ["total_all_taxes", 858.0], ["updated_at", "2015-03-11 08:17:52.959644"], ["vat", 8.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4904"], ["name", "distinctio"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:52.966836"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "In beatae optio."], ["total_all_taxes", 584.0], ["updated_at", "2015-03-11 08:17:52.966836"], ["vat", 94.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4350"], ["name", "mollitia"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:52.973111"], ["date", "2015-02-25"], ["expense_id", 1], ["name", "Eum exercitationem molestias necessitatibus sint magnam ea provident."], ["total_all_taxes", 327.0], ["updated_at", "2015-03-11 08:17:52.973111"], ["vat", 31.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7738"], ["name", "nihil"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:52.980068"], ["date", "2015-02-23"], ["expense_id", 1], ["name", "Architecto aperiam hic ea at consequatur quo excepturi."], ["total_all_taxes", 667.0], ["updated_at", "2015-03-11 08:17:52.980068"], ["vat", 84.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:52 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.5ms | ActiveRecord: 0.7ms) Started GET "/expense_gun/expenses/1/edit" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#edit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/_form.html.slim (4.3ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/edit.html.slim within layouts/expense_gun/application (8.4ms) Completed 200 OK in 12ms (Views: 10.7ms | ActiveRecord: 0.1ms) Started PATCH "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#update as HTML Parameters: {"utf8"=>"✓", "expense"=>{"name"=>"i-am-new-expense-name-value", "date"=>"2015-03-11"}, "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["name", "i-am-new-expense-name-value"], ["updated_at", "2015-03-11 08:17:53.158479"]]  (2.0ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses/1 Completed 302 Found in 7ms (ActiveRecord: 2.6ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (13.8ms) Completed 200 OK in 17ms (Views: 14.7ms | ActiveRecord: 0.9ms)  (2.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (1.0ms) DELETE FROM "expense_gun_expenses";  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (1.1ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0414"], ["name", "non"], ["vat_deductible", "f"]]  (1.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:53.290558"], ["date", "2015-03-11"], ["name", "Eum debitis molestiae quod ex velit vel."], ["state", "new"], ["updated_at", "2015-03-11 08:17:53.290558"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0388"], ["name", "omnis"], ["vat_deductible", "t"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:53.299003"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Sequi cum quis sed."], ["total_all_taxes", 848.0], ["updated_at", "2015-03-11 08:17:53.299003"], ["vat", 65.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4870"], ["name", "cum"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:53.307230"], ["date", "2015-02-27"], ["expense_id", 1], ["name", "Et dolorum quaerat qui."], ["total_all_taxes", 822.0], ["updated_at", "2015-03-11 08:17:53.307230"], ["vat", 152.0]]  (0.9ms) commit transaction  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "6556"], ["name", "nulla"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:53.318540"], ["date", "2015-02-28"], ["expense_id", 1], ["name", "Aut voluptatum suscipit quia saepe consequatur."], ["total_all_taxes", 187.0], ["updated_at", "2015-03-11 08:17:53.318540"], ["vat", 12.0]]  (1.3ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "7018"], ["name", "et"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:53.328422"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Nulla quas assumenda qui aliquid id."], ["total_all_taxes", 736.0], ["updated_at", "2015-03-11 08:17:53.328422"], ["vat", 75.0]]  (1.2ms) commit transaction Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (14.7ms) Completed 200 OK in 18ms (Views: 15.3ms | ActiveRecord: 1.1ms) ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? ORDER BY "expense_gun_expense_lines"."id" ASC LIMIT 1 [["expense_id", 1]] Started GET "/expense_gun/expenses/1/expense_lines/1/edit" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpenseLinesController#edit as HTML Parameters: {"expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/_form.html.slim (26.0ms) Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expense_lines/edit.html.slim within layouts/expense_gun/application (34.3ms) Completed 200 OK in 41ms (Views: 38.0ms | ActiveRecord: 0.6ms) Started PATCH "/expense_gun/expenses/1/expense_lines/1" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpenseLinesController#update as HTML Parameters: {"utf8"=>"✓", "expense_line"=>{"name"=>"i-am-new-expense-line-name-value", "date"=>"2015-03-05", "category_id"=>"2", "total_all_taxes"=>"848.0", "vat"=>"65.0", "company_part"=>"100.0"}, "expense_id"=>"1", "id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.3ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] SQL (0.3ms) UPDATE "expense_gun_expense_lines" SET "name" = ?, "updated_at" = ? WHERE "expense_gun_expense_lines"."id" = 1 [["name", "i-am-new-expense-line-name-value"], ["updated_at", "2015-03-11 08:17:53.617581"]]  (4.8ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses/1 Completed 302 Found in 14ms (ActiveRecord: 5.9ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.3ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (17.9ms) Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 1.2ms)  (2.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4847"], ["name", "iste"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:53.845453"], ["date", "2015-03-11"], ["name", "Omnis ipsa qui placeat accusantium repudiandae consequatur."], ["state", "new"], ["updated_at", "2015-03-11 08:17:53.845453"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8945"], ["name", "libero"], ["vat_deductible", "t"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:17:53.851964"], ["date", "2015-02-17"], ["expense_id", 1], ["name", "Quasi doloribus excepturi aut."], ["total_all_taxes", 667.0], ["updated_at", "2015-03-11 08:17:53.851964"], ["vat", 41.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0917"], ["name", "est"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:53.858976"], ["date", "2015-03-01"], ["expense_id", 1], ["name", "Et sunt sed consectetur non."], ["total_all_taxes", 814.0], ["updated_at", "2015-03-11 08:17:53.858976"], ["vat", 47.0]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8778"], ["name", "aspernatur"], ["vat_deductible", "t"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:53.865347"], ["date", "2015-02-18"], ["expense_id", 1], ["name", "Aliquam tempora veritatis enim nulla vero a fuga."], ["total_all_taxes", 299.0], ["updated_at", "2015-03-11 08:17:53.865347"], ["vat", 18.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2008"], ["name", "molestiae"], ["vat_deductible", "f"]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-03-11 08:17:53.873007"], ["date", "2015-03-05"], ["expense_id", 1], ["name", "Velit est voluptatem enim labore."], ["total_all_taxes", 539.0], ["updated_at", "2015-03-11 08:17:53.873007"], ["vat", 62.0]]  (1.5ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0462"], ["name", "veniam"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 6], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:53.882308"], ["date", "2015-02-13"], ["expense_id", 1], ["name", "Illum harum reprehenderit similique fugit dignissimos non voluptatem."], ["total_all_taxes", 728.0], ["updated_at", "2015-03-11 08:17:53.882308"], ["vat", 9.0]]  (1.0ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (11.9ms) Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 1.1ms) Started PATCH "/expense_gun/expenses/1/submit" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#submit as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "submited"], ["updated_at", "2015-03-11 08:17:53.984430"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.9ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49822/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:17:53 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (24.3ms) Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 2.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.7ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.8ms) DELETE FROM "expense_gun_expenses";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2473"], ["name", "quod"], ["vat_deductible", "t"]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:54.111020"], ["date", "2015-03-11"], ["name", "Illo itaque quo laboriosam asperiores."], ["state", "new"], ["updated_at", "2015-03-11 08:17:54.111020"]]  (3.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "5272"], ["name", "temporibus"], ["vat_deductible", "f"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:54.123150"], ["date", "2015-03-09"], ["expense_id", 1], ["name", "Minus et magnam."], ["total_all_taxes", 485.0], ["updated_at", "2015-03-11 08:17:54.123150"], ["vat", 49.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "8674"], ["name", "quam"], ["vat_deductible", "f"]]  (1.1ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 75.0], ["created_at", "2015-03-11 08:17:54.132664"], ["date", "2015-02-16"], ["expense_id", 1], ["name", "In quia velit pariatur consequuntur."], ["total_all_taxes", 757.0], ["updated_at", "2015-03-11 08:17:54.132664"], ["vat", 20.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4913"], ["name", "natus"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:54.140801"], ["date", "2015-02-12"], ["expense_id", 1], ["name", "Incidunt esse exercitationem in."], ["total_all_taxes", 536.0], ["updated_at", "2015-03-11 08:17:54.140801"], ["vat", 37.0]]  (0.7ms) commit transaction Started GET "/expense_gun/expenses?state=all" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"all"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (12.0ms) Completed 200 OK in 14ms (Views: 12.0ms | ActiveRecord: 1.3ms) Started PATCH "/expense_gun/expenses/1/cancel" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#cancel as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.2ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "canceled"], ["updated_at", "2015-03-11 08:17:54.244694"]]  (2.4ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses Completed 302 Found in 6ms (ActiveRecord: 2.8ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49822/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.3ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.1ms) Completed 200 OK in 10ms (Views: 8.6ms | ActiveRecord: 1.0ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.6ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.8ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.7ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.9ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "4945"], ["name", "nesciunt"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:54.337201"], ["date", "2015-03-11"], ["name", "Nesciunt et error sit."], ["state", "submited"], ["updated_at", "2015-03-11 08:17:54.337201"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2893"], ["name", "ipsum"], ["vat_deductible", "t"]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:17:54.344129"], ["date", "2015-03-02"], ["expense_id", 1], ["name", "Deserunt molestias quaerat sed dolores consequuntur repellat quo."], ["total_all_taxes", 324.0], ["updated_at", "2015-03-11 08:17:54.344129"], ["vat", 62.0]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "9676"], ["name", "provident"], ["vat_deductible", "f"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 25.0], ["created_at", "2015-03-11 08:17:54.351496"], ["date", "2015-02-27"], ["expense_id", 1], ["name", "Quod id ullam id omnis."], ["total_all_taxes", 779.0], ["updated_at", "2015-03-11 08:17:54.351496"], ["vat", 93.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0841"], ["name", "voluptas"], ["vat_deductible", "t"]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:54.359216"], ["date", "2015-03-07"], ["expense_id", 1], ["name", "Autem voluptatem ad esse dolorum rerum impedit."], ["total_all_taxes", 250.0], ["updated_at", "2015-03-11 08:17:54.359216"], ["vat", 42.0]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3996"], ["name", "quia"], ["vat_deductible", "f"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 5], ["company_part", 25.0], ["created_at", "2015-03-11 08:17:54.365101"], ["date", "2015-02-20"], ["expense_id", 1], ["name", "Beatae nesciunt provident optio sint voluptatum dolores minima."], ["total_all_taxes", 444.0], ["updated_at", "2015-03-11 08:17:54.365101"], ["vat", 29.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/accept" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#accept as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "accepted"], ["updated_at", "2015-03-11 08:17:54.457054"]]  (4.8ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses/1 Completed 302 Found in 10ms (ActiveRecord: 5.3ms) Started GET "/expense_gun/expenses/1" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#show as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.3ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]] ExpenseGun::ExpenseLine Load (0.2ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 2]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 3]] ExpenseGun::Category Load (0.2ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 4]] ExpenseGun::Category Load (0.1ms) SELECT "expense_gun_categories".* FROM "expense_gun_categories" WHERE "expense_gun_categories"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/show.html.slim within layouts/expense_gun/application (11.3ms) Completed 200 OK in 15ms (Views: 11.8ms | ActiveRecord: 1.2ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.3ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0310"], ["name", "est"], ["vat_deductible", "f"]]  (0.6ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_expenses" ("created_at", "date", "name", "state", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-03-11 08:17:54.562597"], ["date", "2015-03-11"], ["name", "Aspernatur placeat delectus aliquid eos."], ["state", "submited"], ["updated_at", "2015-03-11 08:17:54.562597"]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "0376"], ["name", "fugiat"], ["vat_deductible", "f"]]  (1.2ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 2], ["company_part", 75.0], ["created_at", "2015-03-11 08:17:54.571233"], ["date", "2015-02-10"], ["expense_id", 1], ["name", "Porro et voluptas aspernatur non veritatis."], ["total_all_taxes", 385.0], ["updated_at", "2015-03-11 08:17:54.571233"], ["vat", 3.0]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "3367"], ["name", "accusantium"], ["vat_deductible", "f"]]  (4.1ms) commit transaction  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 3], ["company_part", 100.0], ["created_at", "2015-03-11 08:17:54.585073"], ["date", "2015-02-19"], ["expense_id", 1], ["name", "Quibusdam corrupti est vel vel quia ut."], ["total_all_taxes", 762.0], ["updated_at", "2015-03-11 08:17:54.585073"], ["vat", 18.0]]  (2.8ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "expense_gun_categories" ("code", "name", "vat_deductible") VALUES (?, ?, ?) [["code", "2085"], ["name", "consectetur"], ["vat_deductible", "f"]]  (1.4ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "expense_gun_expense_lines" ("category_id", "company_part", "created_at", "date", "expense_id", "name", "total_all_taxes", "updated_at", "vat") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["category_id", 4], ["company_part", 50.0], ["created_at", "2015-03-11 08:17:54.657945"], ["date", "2015-02-25"], ["expense_id", 1], ["name", "Quaerat deleniti nam sunt."], ["total_all_taxes", 143.0], ["updated_at", "2015-03-11 08:17:54.657945"], ["vat", 17.0]]  (0.8ms) commit transaction Started GET "/expense_gun/expenses?state=submited" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 ExpenseGun::ExpenseLine Load (0.1ms) SELECT "expense_gun_expense_lines".* FROM "expense_gun_expense_lines" WHERE "expense_gun_expense_lines"."expense_id" = ? [["expense_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (9.7ms) Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.9ms) Started PATCH "/expense_gun/expenses/1/refuse" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#refuse as HTML Parameters: {"id"=>"1"} ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "expense_gun_expenses" SET "state" = ?, "updated_at" = ? WHERE "expense_gun_expenses"."id" = 1 [["state", "refused"], ["updated_at", "2015-03-11 08:17:54.760845"]]  (6.1ms) commit transaction Redirected to http://127.0.0.1:49822/expense_gun/expenses Completed 302 Found in 12ms (ActiveRecord: 6.7ms) Started GET "/expense_gun/expenses" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Redirected to http://127.0.0.1:49822/expense_gun/expenses/state/submited Completed 302 Found in 1ms (ActiveRecord: 0.0ms) Started GET "/expense_gun/expenses/state/submited" for 127.0.0.1 at 2015-03-11 09:17:54 +0100 Processing by ExpenseGun::ExpensesController#index as HTML Parameters: {"state"=>"submited"}  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'new'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'accepted'  (0.2ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'refused'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'canceled'  (0.1ms) SELECT COUNT(*) FROM "expense_gun_expenses" ExpenseGun::Expense Load (0.1ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' LIMIT 25 OFFSET 0 CACHE (0.0ms) SELECT COUNT(*) FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."state" = 'submited' Rendered /Users/benoit/www/agilidee/expense_gun/app/views/expense_gun/expenses/index.html.slim within layouts/expense_gun/application (8.7ms) Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 1.1ms) ExpenseGun::Expense Load (0.2ms) SELECT "expense_gun_expenses".* FROM "expense_gun_expenses" WHERE "expense_gun_expenses"."id" = ? LIMIT 1 [["id", 1]]  (1.2ms) DELETE FROM "expense_gun_categories";  (0.2ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.8ms) DELETE FROM sqlite_sequence where name = 'expense_gun_categories';  (0.6ms) DELETE FROM "expense_gun_expense_lines";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.6ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expense_lines';  (0.6ms) DELETE FROM "expense_gun_expenses";  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';  (0.7ms) DELETE FROM sqlite_sequence where name = 'expense_gun_expenses';