(1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.5ms) select sqlite_version(*)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.1ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:10)  (0.5ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateUser (20170112125734)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.1ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean)   (0.9ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (1.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar 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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170112125734')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657')  (0.7ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean)   (0.8ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar 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 ('20170112125734')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started GET "/" for ::1 at 2017-01-18 11:25:49 -0200 Processing by ApplicationController#index as HTML User Load (1.9ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (111.2ms) Completed 200 OK in 632ms (Views: 627.0ms | ActiveRecord: 4.2ms) Started GET "/assets/csv_import_magic/_theme.self-fd37b07578075a0efd69e03a0fe48bc89bd8f616bfd585cece8993e891feb674.css?body=1" for ::1 at 2017-01-18 11:25:49 -0200 Started GET "/" for ::1 at 2017-01-18 11:26:53 -0200 Processing by ApplicationController#index as HTML User Load (6.4ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (1.2ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (106.7ms) Completed 200 OK in 495ms (Views: 485.5ms | ActiveRecord: 9.7ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 11:27:01 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"kCr4urLGiqZuN0yGLTRZoPQo83UZ8uCI6gd6oReyzRLFBhsBkMLrD63b01XASmOgubhIL7/zV1QliXlOBclhgA==", "importer"=>{"importable_type"=>"User", "importable_id"=>"2", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-6290-uibvaz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-6290-1r4a9tq.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-6290-1fmr7is.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 2], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 13:27:01.220425"], ["created_at", "2017-01-18 13:27:01.251326"], ["updated_at", "2017-01-18 13:27:01.251326"]]  (0.9ms) commit transaction Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1/edit Completed 302 Found in 85ms (ActiveRecord: 2.0ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-18 11:27:01 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/application (16.3ms) Completed 200 OK in 28ms (Views: 27.3ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-18 11:27:10 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"WM0QxAHQ64r5ffj1U63nM8bEcICyU6lq7asTOQTRbp4N4fN/I9SKIzqRZya+090zi1TL2hRSHrYiJRDWFqrCDA==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 13:27:10.867336"], ["id", 1]]  (0.8ms) commit transaction Redirected to http://localhost:3000/ Completed 302 Found in 26ms (ActiveRecord: 1.3ms) Started GET "/" for ::1 at 2017-01-18 11:27:10 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (17.9ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", "Brasil"]] Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 1.9ms) Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", "Brasil"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (1.3ms) SELECT "companies".* FROM "companies" Company Load (0.4ms) SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 Company Load (0.3ms) SELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT 1 Started GET "/" for ::1 at 2017-01-18 20:29:26 -0200 Processing by ApplicationController#index as HTML User Load (2.1ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (114.9ms) Completed 200 OK in 650ms (Views: 644.1ms | ActiveRecord: 5.5ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-18 20:29:26 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-18 20:29:26 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-18 20:29:26 -0200 Started GET "/" for ::1 at 2017-01-18 20:30:21 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]  (1.1ms) commit transaction  (0.0ms) begin transaction SQL (0.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (11.8ms) Completed 200 OK in 19ms (Views: 16.0ms | ActiveRecord: 2.3ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:30:44 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"9F08eddh7Qis0Li7Nh+VTa5uXYot99bioyGj4XdWi+yhcd/C9WWMoW88J2jbYa9N4/7m0Iv2YT5sr6AOZS0nfg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"5", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-40449-fok67t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-m8k9qm.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-1d3ex8p.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 5], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:30:44.489619"], ["created_at", "2017-01-18 22:30:44.521381"], ["updated_at", "2017-01-18 22:30:44.521381"]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3002/csv_import_magic/importers/2/edit Completed 302 Found in 75ms (ActiveRecord: 1.5ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-18 20:30:44 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.7ms) Completed 500 Internal Server Error in 38ms (ActiveRecord: 0.2ms) ActionView::Template::Error (undefined local variable or method `body_class' for #<#:0x007f96db2e8fc8>): 10: <%= csrf_meta_tags %> 11: 12: 13: 14: <%- if flash %> 15: <% flash.each do |key, value| %> 16:
<%= value %>
/Users/saulodasilva/Pagnet/csv_import_magic/app/views/layouts/csv_import_magic.html.erb:13:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_layouts_csv_import_magic_html_erb__682203799081957035_70143025406500' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:66:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (52.2ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-18 20:31:23 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.9ms) Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/2" for ::1 at 2017-01-18 20:31:29 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"l2mm8GVZ4WtUSW9vu1iGYJ4mjoDNfIxaX98I/66PHVzCRUVLR12Awpel8LxWJrxg07Y12mt9O4aQUQsQvPSxzg==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 22:31:29.381517"], ["id", 2]]  (1.2ms) commit transaction Redirected to http://localhost:3002/ Completed 302 Found in 13ms (ActiveRecord: 1.7ms) Started GET "/" for ::1 at 2017-01-18 20:31:29 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (10.8ms) Completed 200 OK in 18ms (Views: 16.0ms | ActiveRecord: 2.2ms) Started GET "/" for ::1 at 2017-01-18 20:33:59 -0200 Processing by ApplicationController#index as HTML User Load (0.3ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]  (1.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (26.4ms) Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 3.2ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:34:06 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Xsfd+Yi+pKz3yVxGFpNhgSh0y2wkq5167amxB52g+84L6z5CqrrFBTQlw5X77VuBZeRwNoKqKqYiJ7Loj9tXXA==", "importer"=>{"importable_type"=>"User", "importable_id"=>"7", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-40449-yoevu1.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-1vl68kz.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-33lc4u.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 7], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:34:06.653372"], ["created_at", "2017-01-18 22:34:06.684130"], ["updated_at", "2017-01-18 22:34:06.684130"]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Redirected to http://localhost:3002/csv_import_magic/importers/3/edit Completed 302 Found in 74ms (ActiveRecord: 1.7ms) Started GET "/csv_import_magic/importers/3/edit" for ::1 at 2017-01-18 20:34:06 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (13.8ms) Completed 200 OK in 27ms (Views: 26.2ms | ActiveRecord: 0.2ms) Started GET "/csv_import_magic/importers/3/edit" for ::1 at 2017-01-18 20:42:29 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (32.6ms) Completed 200 OK in 69ms (Views: 45.6ms | ActiveRecord: 1.0ms) Started PATCH "/csv_import_magic/importers/3" for ::1 at 2017-01-18 20:42:30 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"7NjyvPjCCrBEY10pqGMo6G3Tmtf4M0P3n6kVlpVvNIC59BEH2sZrGYePwvpFHRLoIEMhjV4y9CtQJxZ5hxSYEg==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 22:42:30.788006"], ["id", 3]]  (0.9ms) commit transaction Redirected to http://localhost:3002/ Completed 302 Found in 19ms (ActiveRecord: 1.5ms) Started GET "/" for ::1 at 2017-01-18 20:42:30 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (15.4ms) Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 2.6ms) Started GET "/" for ::1 at 2017-01-18 20:45:47 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (28.3ms) Completed 200 OK in 40ms (Views: 37.0ms | ActiveRecord: 2.8ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:45:52 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"49Mz90EJm/kJjglZ2pRYkuta0UPN5SIPHK3KKjcEXX+2/9BMYw36UMpiloo36mKSpspqGWvkldPTI8nFJX/x7Q==", "importer"=>{"importable_type"=>"User", "importable_id"=>"9", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-40449-8a87po.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-lhn5mo.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-vpcmy2.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 9], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:45:52.314690"], ["created_at", "2017-01-18 22:45:52.346275"], ["updated_at", "2017-01-18 22:45:52.346275"]]  (0.9ms) commit transaction Importer Load (0.6ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Redirected to http://localhost:3002/csv_import_magic/importers/4/edit Completed 302 Found in 83ms (ActiveRecord: 2.3ms) Started GET "/csv_import_magic/importers/4/edit" for ::1 at 2017-01-18 20:45:52 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"4"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.7ms) Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms) Started GET "/" for ::1 at 2017-01-18 20:45:55 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 9]]  (0.9ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (10.6ms) Completed 200 OK in 18ms (Views: 15.2ms | ActiveRecord: 2.6ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:46:01 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"JeY7/mvphIDUJ/TNM8qMzpZH+lL4uc3RrtQ7Dx/+T51wythFSe3lKRfLax7etLbO29dBCF64eg1hWjjgDYXjDw==", "importer"=>{"importable_type"=>"User", "importable_id"=>"10", "source"=>"company", "attachment"=>#, @original_filename="ed221036-ce01-49eb-bfb1-be3b75406578.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"ed221036-ce01-49eb-bfb1-be3b75406578.jpeg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/44a78b20536ee5d12ad600d8a44b8b0420170118-40449-x5p2p4.jpeg'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/44a78b20536ee5d12ad600d8a44b8b0420170118-40449-10ia5x2.jpeg'  (0.1ms) rollback transaction Redirected to http://localhost:3002/ Completed 302 Found in 25ms (ActiveRecord: 0.2ms) Started GET "/" for ::1 at 2017-01-18 20:46:01 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 10]]  (0.9ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (12.1ms) Completed 200 OK in 20ms (Views: 17.5ms | ActiveRecord: 2.5ms) Started GET "/" for ::1 at 2017-01-18 20:46:34 -0200 Processing by ApplicationController#index as HTML User Load (0.4ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 11]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (27.9ms) Completed 200 OK in 37ms (Views: 34.4ms | ActiveRecord: 2.9ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:46:40 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"oKuGX719wrA+17S+Tm2U3NIaSIdfXddJCsillfAxYoz1h2Xkn3mjGf07K22jE67cn4rz3flcYJXFRqZ64krOHg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"12", "source"=>"company", "attachment"=>#, @original_filename="20151201161940.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"20151201161940.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/139237ab76cf9cda051b049548563c1320170118-40449-1l6zie0.jpg'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/139237ab76cf9cda051b049548563c1320170118-40449-1o0m47c.jpg'  (0.1ms) rollback transaction Redirected to http://localhost:3002/ Completed 302 Found in 24ms (ActiveRecord: 0.2ms) Started GET "/" for ::1 at 2017-01-18 20:46:40 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 12]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (10.7ms) Completed 200 OK in 20ms (Views: 17.6ms | ActiveRecord: 2.2ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:47:00 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"cx66LX45xUzAgeB43u6wyA244N9oP8xORX6pnocEnnEmMlmWXD2k5QNtf6szkIrIQChbhc4+e5KK8KpxlX8y4w==", "importer"=>{"importable_type"=>"User", "importable_id"=>"13", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-40449-xxa339.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-1e7634g.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170118-40449-1088ve.csv' SQL (0.8ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 13], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-18 22:47:00.901341"], ["created_at", "2017-01-18 22:47:00.935281"], ["updated_at", "2017-01-18 22:47:00.935281"]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Redirected to http://localhost:3002/csv_import_magic/importers/5/edit Completed 302 Found in 93ms (ActiveRecord: 2.0ms) Started GET "/csv_import_magic/importers/5/edit" for ::1 at 2017-01-18 20:47:00 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.4ms) Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.1ms) Started PATCH "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:47:02 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"1t5bD7cMN55rjuUwn3ulF6NcQ3nZG/DsYxlSdfGcXviD8ri0lQhWN6hieuNyBZ8X7sz4I38aRzCsl1Ga4+fyag==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction SQL (0.6ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 22:47:02.668187"], ["id", 5]]  (1.3ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/5 Completed 302 Found in 17ms (ActiveRecord: 2.1ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:47:02 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (2.2ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) ActionView::Template::Error (undefined method `source' for nil:NilClass): 1:

2: <%= t('csv_import_magic.views.importers.show.title', model_translated: t("activemodel.models.#{@importer.source}.other")) %> 3:

4: 5: <% if @importer.error.blank? %> /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:2:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142989193260' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (43.1ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:47:25 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (8.8ms) Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.6ms) ActionView::Template::Error (undefined local variable or method `root_path' for #<#:0x007f96e7150650>): 4: 5: <% if @importer.error.blank? %> 6: <%= t('csv_import_magic.views.importers.show.success') %> 7: <%= link_to t('csv_import_magic.views.importers.edit.buttons.back'), root_path, class: 'button button--primary' %> 8: <% else %> 9: <%= t('csv_import_magic.views.importers.show.error', error: @importer.error) %> 10: /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:7:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142989193260' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.0ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (43.1ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:47:48 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.2ms) Completed 200 OK in 15ms (Views: 14.8ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:48:55 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (21.7ms) Completed 200 OK in 53ms (Views: 37.1ms | ActiveRecord: 0.7ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:49:11 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (14.1ms) Completed 200 OK in 41ms (Views: 26.5ms | ActiveRecord: 0.8ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:49:12 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:49:26 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (18.1ms) Completed 200 OK in 50ms (Views: 37.4ms | ActiveRecord: 0.7ms) Started GET "/csv_import_magic/importers/5" for ::1 at 2017-01-18 20:49:48 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"5"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 5]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (11.4ms) Completed 200 OK in 32ms (Views: 20.5ms | ActiveRecord: 0.5ms) Started GET "/" for ::1 at 2017-01-18 20:49:49 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 13]]  (1.2ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (16.4ms) Completed 200 OK in 28ms (Views: 25.0ms | ActiveRecord: 2.7ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 20:49:54 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"utk8EcJJ0pffxTjxcTtBG9HAXYz9rLr/GgK6F2RR+W/v9d+q4E2zPhwppyKcRXsbnFDm1lutDSPVjLn4dipV/Q==", "importer"=>{"importable_type"=>"User", "importable_id"=>"14", "source"=>"company", "attachment"=>#, @original_filename="companies_invalid.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies_invalid.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-40449-1e7j79h.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-40449-1mddvs6.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-40449-x9d97h.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 14], ["source", "company"], ["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-18 22:49:54.305751"], ["created_at", "2017-01-18 22:49:54.334993"], ["updated_at", "2017-01-18 22:49:54.334993"]]  (0.9ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Redirected to http://localhost:3002/csv_import_magic/importers/6/edit Completed 302 Found in 84ms (ActiveRecord: 1.7ms) Started GET "/csv_import_magic/importers/6/edit" for ::1 at 2017-01-18 20:49:54 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (13.0ms) Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.1ms) Started PATCH "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:49:55 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"A+hYqRN2XYmH59gJdPwYnBTdCxoAjgffpnl/WG53CsdWxLsSMXI8IEQLR9qZgiKcWU2wQKaPsANp93y3fAymVQ==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"6"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 22:49:55.810187"], ["id", 6]]  (1.6ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Redirected to http://localhost:3002/csv_import_magic/importers/6 Completed 302 Found in 15ms (ActiveRecord: 2.3ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:49:55 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms)  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-40447-4jsf3l.csv' Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.1ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b71f3c650260dc166f8a19fc97250aa220170118-40447-19slocc.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/b71f3c650260dc166f8a19fc97250aa220170118-40447-eogegv.csv' SQL (0.9ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-40447-4jsf3l.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 22:49:55.868555"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 22:49:55.906973"], ["id", 6]]  (0.9ms) commit transaction Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:01 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.6ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (2.1ms) Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.6ms) ActionView::Template::Error (missing interpolation argument :errors in "Contém erros: %{errors}" ({:error=>"Alguns registros não foram importados pois contém erros!"} given)): 6: <%= t('csv_import_magic.views.importers.show.success') %> 7: <%= link_to t('csv_import_magic.views.importers.edit.buttons.back'), '/', class: 'button button--primary' %> 8: <% else %> 9: <%= t('csv_import_magic.views.importers.show.error', error: @importer.error) %> 10: 11: <% if @importer.attachment_error.present? %> 12: <%= link_to t('csv_import_magic.views.importers.edit.buttons.error_file'), @importer.attachment_error.url, class: 'button button--secondary' %> i18n (0.7.0) lib/i18n/config.rb:92:in `block in missing_interpolation_argument_handler' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `call' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `block in interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `gsub' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:17:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:152:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:41:in `translate' i18n (0.7.0) lib/i18n.rb:158:in `block in translate' i18n (0.7.0) lib/i18n.rb:154:in `catch' i18n (0.7.0) lib/i18n.rb:154:in `translate' actionview (4.2.7.1) lib/action_view/helpers/translation_helper.rb:69:in `translate' /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:9:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142986473320' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (41.4ms) Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:04 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (2.0ms) Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) ActionView::Template::Error (missing interpolation argument :errors in "Contém erros: %{errors}" ({:error=>"Alguns registros não foram importados pois contém erros!"} given)): 6: <%= t('csv_import_magic.views.importers.show.success') %> 7: <%= link_to t('csv_import_magic.views.importers.edit.buttons.back'), '/', class: 'button button--primary' %> 8: <% else %> 9: <%= t('csv_import_magic.views.importers.show.error', error: @importer.error) %> 10: 11: <% if @importer.attachment_error.present? %> 12: <%= link_to t('csv_import_magic.views.importers.edit.buttons.error_file'), @importer.attachment_error.url, class: 'button button--secondary' %> i18n (0.7.0) lib/i18n/config.rb:92:in `block in missing_interpolation_argument_handler' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `call' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `block in interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `gsub' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:17:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:152:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:41:in `translate' i18n (0.7.0) lib/i18n.rb:158:in `block in translate' i18n (0.7.0) lib/i18n.rb:154:in `catch' i18n (0.7.0) lib/i18n.rb:154:in `translate' actionview (4.2.7.1) lib/action_view/helpers/translation_helper.rb:69:in `translate' /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:9:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142986473320' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (40.7ms) Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:19 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (20.2ms) Completed 500 Internal Server Error in 43ms (ActiveRecord: 1.0ms) ActionView::Template::Error (missing interpolation argument :errors in "Contém erros %{errors}" ({:error=>"Alguns registros não foram importados pois contém erros!"} given)): 6: <%= t('csv_import_magic.views.importers.show.success') %> 7: <%= link_to t('csv_import_magic.views.importers.edit.buttons.back'), '/', class: 'button button--primary' %> 8: <% else %> 9: <%= t('csv_import_magic.views.importers.show.error', error: @importer.error) %> 10: 11: <% if @importer.attachment_error.present? %> 12: <%= link_to t('csv_import_magic.views.importers.edit.buttons.error_file'), @importer.attachment_error.url, class: 'button button--secondary' %> i18n (0.7.0) lib/i18n/config.rb:92:in `block in missing_interpolation_argument_handler' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `call' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `block in interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `gsub' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:17:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:152:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:41:in `translate' i18n (0.7.0) lib/i18n.rb:158:in `block in translate' i18n (0.7.0) lib/i18n.rb:154:in `catch' i18n (0.7.0) lib/i18n.rb:154:in `translate' actionview (4.2.7.1) lib/action_view/helpers/translation_helper.rb:69:in `translate' /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:9:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142986473320' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.0ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (42.1ms) Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:20 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.8ms) Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) ActionView::Template::Error (missing interpolation argument :errors in "Contém erros %{errors}" ({:error=>"Alguns registros não foram importados pois contém erros!"} given)): 6: <%= t('csv_import_magic.views.importers.show.success') %> 7: <%= link_to t('csv_import_magic.views.importers.edit.buttons.back'), '/', class: 'button button--primary' %> 8: <% else %> 9: <%= t('csv_import_magic.views.importers.show.error', error: @importer.error) %> 10: 11: <% if @importer.attachment_error.present? %> 12: <%= link_to t('csv_import_magic.views.importers.edit.buttons.error_file'), @importer.attachment_error.url, class: 'button button--secondary' %> i18n (0.7.0) lib/i18n/config.rb:92:in `block in missing_interpolation_argument_handler' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `call' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:29:in `block in interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `gsub' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:21:in `interpolate_hash' i18n (0.7.0) lib/i18n/interpolate/ruby.rb:17:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:152:in `interpolate' i18n (0.7.0) lib/i18n/backend/base.rb:41:in `translate' i18n (0.7.0) lib/i18n.rb:158:in `block in translate' i18n (0.7.0) lib/i18n.rb:154:in `catch' i18n (0.7.0) lib/i18n.rb:154:in `translate' actionview (4.2.7.1) lib/action_view/helpers/translation_helper.rb:69:in `translate' /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb:9:in `___sers_saulodasilva__agnet_csv_import_magic_app_views_csv_import_magic_importers_show_html_erb___4025962658346484935_70142986473320' actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render' activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument' actionview (4.2.7.1) lib/action_view/template.rb:143:in `render' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:53:in `block in render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:52:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:14:in `render' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:46:in `render_template' actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:27:in `render' actionview (4.2.7.1) lib/action_view/rendering.rb:100:in `_render_template' actionpack (4.2.7.1) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.2.7.1) lib/action_view/rendering.rb:83:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.2.7.1) lib/action_controller/metal/renderers.rb:37:in `render_to_body' actionpack (4.2.7.1) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime' activesupport (4.2.7.1) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:44:in `block in render' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:43:in `render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (40.8ms) Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:43 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (13.2ms) Completed 200 OK in 35ms (Views: 22.9ms | ActiveRecord: 0.6ms) Started GET "/csv_import_magic/importers/6" for ::1 at 2017-01-18 20:50:54 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"6"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 6]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.1ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms) Started GET "/" for ::1 at 2017-01-18 20:51:13 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 14]]  (0.8ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (16.3ms) Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 2.5ms) Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (9.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started GET "/" for ::1 at 2017-01-18 21:18:36 -0200 Processing by ApplicationController#index as HTML User Load (1.6ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 15]]  (0.6ms) commit transaction  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.9ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (119.9ms) Completed 200 OK in 591ms (Views: 586.4ms | ActiveRecord: 4.4ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-18 21:18:47 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"6Eo6fXQip/InRCsqdUqdm/YYMKP+gPNcMxDZwmJ4biC9ZtnGVibGW+SotPmYNKebu4iL+ViBRID8ntotcAPCsg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"16", "source"=>"company", "attachment"=>#, @original_filename="companies_invalid.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies_invalid.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170118-44986-1eow27s.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-44986-1piu38.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170118-44986-3p756o.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 16], ["source", "company"], ["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-18 23:18:47.494497"], ["created_at", "2017-01-18 23:18:47.525132"], ["updated_at", "2017-01-18 23:18:47.525132"]]  (0.6ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Redirected to http://localhost:3002/csv_import_magic/importers/7/edit Completed 302 Found in 80ms (ActiveRecord: 1.5ms) Started GET "/csv_import_magic/importers/7/edit" for ::1 at 2017-01-18 21:18:47 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"7"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.4ms) Completed 200 OK in 25ms (Views: 23.9ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/7" for ::1 at 2017-01-18 21:18:49 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"2PAMo6J7fDtgBpnuKULGmh4YNv0dH5vQLKdo0vDfUcyN3O8YgH8dkqPqBj3EPPyaU4iNp7seLAzjKWs94qT9Xg==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"7"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]]  (0.1ms) begin transaction SQL (1.9ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-18 23:18:49.939499"], ["id", 7]]  (0.8ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/7 Completed 302 Found in 15ms (ActiveRecord: 3.0ms) Started GET "/csv_import_magic/importers/7" for ::1 at 2017-01-18 21:18:49 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"7"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.8ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.1ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170118-44958-l51x0w.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2368333c760210f903dadfaf3edae21120170118-44958-1a4tq55.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/2368333c760210f903dadfaf3edae21120170118-44958-17opbyz.csv' SQL (0.4ms) UPDATE "importers" SET "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "error" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["attachment_error_file_name", "failures20170118-44958-l51x0w.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-18 23:19:30.062133"], ["error", "Alguns registros não foram importados pois contém erros!"], ["updated_at", "2017-01-18 23:19:30.093696"], ["id", 7]]  (0.8ms) commit transaction Started GET "/csv_import_magic/importers/7" for ::1 at 2017-01-18 21:19:34 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"7"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.2ms) Started GET "/csv_import_magic/importers/7" for ::1 at 2017-01-19 00:13:44 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"7"} Importer Load (0.8ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (9.8ms) Completed 200 OK in 54ms (Views: 45.8ms | ActiveRecord: 0.8ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:13:44 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:13:44 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:13:44 -0200 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUser (20170112125734)  (0.1ms) begin transaction  (0.5ms) DROP TABLE "users" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170112125734"]]  (1.0ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "importers" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "companies" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145652"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (2.1ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar DEFAULT 'pending', "country" varchar, "active" boolean)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.9ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "status" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.1ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.4ms) DROP TABLE "users" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170112125734"]]  (1.8ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction  (0.3ms) DROP TABLE "importers" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145657"]]  (0.9ms) commit transaction Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "companies" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145652"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.5ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)  SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.4ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "error" varchar, "status" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "users" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170112125734"]]  (1.4ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.2ms) DROP TABLE "importers" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) DROP TABLE "companies" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145652"]]  (0.6ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.6ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar, "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/csv_import_magic/importers/7" for ::1 at 2017-01-19 00:26:15 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"7"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Completed 404 Not Found in 41ms (ActiveRecord: 1.9ms) ActiveRecord::RecordNotFound (Couldn't find Importer with 'id'=7): activerecord (4.2.7.1) lib/active_record/core.rb:155:in `find' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:6:in `show' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.9ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (11.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (56.1ms) Started GET "/csv_import_magic/importers/7" for ::1 at 2017-01-19 00:29:21 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"7"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 7]] Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) ActiveRecord::RecordNotFound (Couldn't find Importer with 'id'=7): activerecord (4.2.7.1) lib/active_record/core.rb:155:in `find' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:6:in `show' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.7ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (37.6ms) Started GET "/" for ::1 at 2017-01-19 00:29:25 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (1.0ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (95.8ms) Completed 200 OK in 523ms (Views: 520.6ms | ActiveRecord: 1.8ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:29:51 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"vaxXuNhWtzPG7Ap3SsfePWTeT+VCIKP08kqh0DJsdpXogLQD+lLWmgUAlaSnueQ9KU70v+QhFCg9xKI/IBfaBw==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-53339-dgc0ra.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53339-1xu5v43.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53339-j8kfn1.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:29:51.028853"], ["created_at", "2017-01-19 02:29:51.061914"], ["updated_at", "2017-01-19 02:29:51.061914"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3002/csv_import_magic/importers/1/edit Completed 302 Found in 88ms (ActiveRecord: 1.7ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-19 00:29:51 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (23.3ms) Completed 200 OK in 41ms (Views: 40.7ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:29:53 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Zy/wCkeqxsp1BSoAHZqBfJIH9mnrzqq5e24hzP6YP0EyAxOxZa6nY7bptdPw5Lt835dNM03PHWW04CIj7OOT0w==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:29:53.505252"], ["id", 1]]  (1.9ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/1 Completed 302 Found in 23ms (ActiveRecord: 2.7ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:29:53 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.1ms) Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:30:04 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:30:09 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:30:10 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:31:10 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:31:10 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:31:10 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:31:10 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:31:40 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (8.8ms) Completed 200 OK in 30ms (Views: 18.7ms | ActiveRecord: 0.6ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:31:42 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:31:52 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.9ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1 Importer Load (0.2ms) SELECT "importers".* FROM "importers" ORDER BY "importers"."id" DESC LIMIT 1 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:32:52 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:32:52 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:32:52 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:32:52 -0200  (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (1.2ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.1ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.2ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for ::1 at 2017-01-19 00:33:51 -0200 Processing by ApplicationController#index as HTML User Load (1.3ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (1.5ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (105.9ms) Completed 200 OK in 494ms (Views: 489.5ms | ActiveRecord: 3.9ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:33:56 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Pb/FJOgypEiOegfQybpnRaDdHV79tIldxN+wT35sg3lokyafyjbF4U2WmAMkxF1F7U2mBFu1PoELUbOgbBcv6w==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-53771-eo0g68.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53771-vhmrn2.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53771-18p3k9l.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:33:57.044105"], ["created_at", "2017-01-19 02:33:57.074484"], ["updated_at", "2017-01-19 02:33:57.074484"]]  (0.8ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3002/csv_import_magic/importers/1/edit Completed 302 Found in 84ms (ActiveRecord: 1.8ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-19 00:33:57 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.8ms) Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:33:59 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mliw59m1ZieWEFcxbTLZE7ETU4pOToVuzjIojM9ZaenPdFNc+7EHjlX8yOKATOMT/IPo0OhPMrIBvCtj3SLFew==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:33:59.337033"], ["id", 1]]  (1.5ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/1 Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:33:59 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.0ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:34:03 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:35:03 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (10.2ms) Completed 200 OK in 36ms (Views: 21.6ms | ActiveRecord: 1.3ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:35:03 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:35:03 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:35:03 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:35:26 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (13.2ms) Completed 200 OK in 36ms (Views: 23.8ms | ActiveRecord: 0.6ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:35:45 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (10.7ms) Completed 200 OK in 43ms (Views: 28.0ms | ActiveRecord: 0.6ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:36:28 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 11ms (Views: 10.8ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:36:31 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:37:19 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.2ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:38:19 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:38:19 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:38:19 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:38:19 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:38:26 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.4ms) Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:38:36 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:38:36 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:38:36 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:38:36 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:38:47 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:38:47 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:38:47 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:38:47 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:38:57 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:38:57 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:38:57 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:38:57 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:39:08 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:39:08 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:39:08 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:39:08 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:39:18 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:39:19 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:39:19 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:39:19 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:39:29 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:39:29 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:39:29 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:39:29 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:39:39 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:39:39 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:39:39 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:39:39 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:39:50 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 11ms (Views: 10.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:39:50 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:39:50 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:39:50 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:40:01 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 11ms (Views: 11.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:40:01 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:40:01 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:40:01 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:40:12 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:40:12 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:40:12 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:40:12 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:40:23 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:40:23 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:40:23 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:40:23 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:40:34 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:40:34 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:40:34 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:40:34 -0200 Started GET "/" for ::1 at 2017-01-19 00:40:41 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (14.0ms) Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 2.3ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:40:51 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NES1RpXXFnpEhfrOJOGP80qJ9znY2WTa/xcrbD66pEthaFb9t9N304dpZR3Jn7XzBxlMY37Y0wYwmSiDLMEI2Q==", "importer"=>{"importable_type"=>"User", "importable_id"=>"2", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-53771-1p9831t.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53771-4cdtaa.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-53771-1e9l390.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 2], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:40:51.598432"], ["created_at", "2017-01-19 02:40:51.628426"], ["updated_at", "2017-01-19 02:40:51.628426"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3002/csv_import_magic/importers/2/edit Completed 302 Found in 74ms (ActiveRecord: 1.6ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-19 00:40:51 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.6ms) Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:40:53 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NP/yaUKDmx537OiDHvEz/VJrTOs5jLyxPOGBQmpfkC9h0xHSYIf6t7QAd1Dzjwn9H/v3sZ+NC23zb4KteCQ8vQ==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:40:53.559373"], ["id", 2]]  (1.1ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/2 Completed 302 Found in 11ms (ActiveRecord: 1.9ms) Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:40:53 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 10ms (Views: 9.9ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:04 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:41:04 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:41:04 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:41:04 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:15 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:41:15 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:41:15 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:41:15 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:26 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:41:26 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:41:26 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:41:26 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:37 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:41:37 -0200 Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:41:37 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:41:37 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:47 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:41:57 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:41:57 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:41:57 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:41:57 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:42:08 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:42:08 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:42:08 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:42:08 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:42:18 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:42:18 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:42:18 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:42:18 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:42:29 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:42:29 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:42:29 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:42:29 -0200  (1.9ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)   (1.1ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (1.0ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar 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.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170112125734')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657')  (0.8ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "status" varchar DEFAULT 'pending', "country" varchar, "active" boolean)   (0.9ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  (0.0ms) 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 ('20170112125734')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145652')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20170111145657') ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/" for ::1 at 2017-01-19 00:43:11 -0200 Processing by ApplicationController#index as HTML User Load (1.5ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (1.6ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (110.2ms) Completed 200 OK in 497ms (Views: 492.6ms | ActiveRecord: 4.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:43:11 -0200 Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:43:15 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"M0fYyTvrpJ7wsckVr6Ygcvd8eR/QmbkBCYKiui2rEslmaztyGe/FNzNdVsZC2BpyuuzCRXaYDt3GDKFVP9C+Ww==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-54823-17ogbc2.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-54823-1kctoy.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-54823-17rmv1d.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:43:15.995473"], ["created_at", "2017-01-19 02:43:16.035059"], ["updated_at", "2017-01-19 02:43:16.035059"]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1/edit Completed 302 Found in 83ms (ActiveRecord: 1.7ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-19 00:43:16 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.3ms) Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.1ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:43:18 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"hFMMWlD5WzK07LqNiLqtwmb2Kt7EMNGBl16Rmq0b41bRf+/hcv06m3cAJV5lxJfCK2aRhGIxZl1Y0JJ1v2BPxA==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:43:18.741341"], ["id", 1]]  (1.3ms) commit transaction Redirected to http://localhost:3000/csv_import_magic/importers/1 Completed 302 Found in 19ms (ActiveRecord: 1.9ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:43:18 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.0ms) Completed 200 OK in 11ms (Views: 10.7ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:43:29 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:43:29 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:43:29 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:43:29 -0200 Company Load (1.3ms) SELECT "companies".* FROM "companies" Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:43:40 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:43:40 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:43:40 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:43:40 -0200 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:43:51 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:43:51 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:43:51 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:43:51 -0200  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.9ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:45:24 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Completed 404 Not Found in 40ms (ActiveRecord: 2.1ms) ActiveRecord::RecordNotFound (Couldn't find Importer with 'id'=1): activerecord (4.2.7.1) lib/active_record/core.rb:155:in `find' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:6:in `show' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.3ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.8ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (49.6ms) Started GET "/" for ::1 at 2017-01-19 00:45:27 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (66.5ms) Completed 200 OK in 446ms (Views: 444.2ms | ActiveRecord: 1.6ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:45:33 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NmnA+cm92JUiIyP//6X1Fl4uVpiTLvnu0n2D544Bfc5jRSNC67m5POHPvCwS288WE77twjUvTjId84AInHrRXA==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-55418-1qj1sjo.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55418-3ky14v.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-55418-1xs9ru6.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 02:45:33.906267"], ["created_at", "2017-01-19 02:45:33.938067"], ["updated_at", "2017-01-19 02:45:33.938067"]]  (1.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1/edit Completed 302 Found in 80ms (ActiveRecord: 1.9ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-19 00:45:33 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (14.3ms) Completed 200 OK in 26ms (Views: 25.6ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:45:35 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"EgPAL9EJSiXWKzsPqd1YsWZqUSCBuClal0iBWqcn6nlHLyOU8w0rjBXHpNxEo2KxK/rqeie5noZYxoK1tVxG6w==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.5ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:45:35.993741"], ["id", 1]]  (0.7ms) commit transaction Redirected to http://localhost:3000/csv_import_magic/importers/1 Completed 302 Found in 25ms (ActiveRecord: 1.4ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:45:36 -0200 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.6ms) Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.1ms) Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", "Brasil"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.0ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", "Brasil"]]  (0.7ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-19 02:45:36.059357"], ["id", 1]]  (0.7ms) commit transaction Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 00:45:46 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 10ms (Views: 9.4ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:45:46 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:45:46 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:45:46 -0200 Started GET "/" for ::1 at 2017-01-19 00:45:52 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.4ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (2.6ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (29.4ms) Completed 200 OK in 37ms (Views: 32.0ms | ActiveRecord: 4.6ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 00:45:56 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"/O+XQojQErHIxe3tynmLpKksj133E6aqNb6Ol/ksNV+pw3T5qtRzGAspcj4nB7Gk5Lw0B1ESEXb6MI1461eZzQ==", "importer"=>{"importable_type"=>"User", "importable_id"=>"2", "source"=>"company", "attachment"=>#, @original_filename="companies_invalid.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies_invalid.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-55418-wct1u4.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55418-82snop.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-55418-1qw9ftf.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 2], ["source", "company"], ["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-19 02:45:56.509942"], ["created_at", "2017-01-19 02:45:56.544135"], ["updated_at", "2017-01-19 02:45:56.544135"]]  (0.6ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3000/csv_import_magic/importers/2/edit Completed 302 Found in 69ms (ActiveRecord: 1.2ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-19 00:45:56 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.9ms) Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.1ms) Started PATCH "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:45:58 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"gR+s7vY/OF8IeWGWt3N3zbfkXnOPUcO88unfPMgcTLnUM09V1DtZ9suV/kVaDU3N+nTlKSlQdGA9Z9zT2mfgKw==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 02:45:58.111581"], ["id", 2]]  (1.3ms) commit transaction Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3000/csv_import_magic/importers/2 Completed 302 Found in 14ms (ActiveRecord: 1.9ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:45:58 -0200  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-55532-1ujy7xh.csv' Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/20c942522c028b466c6550131b1c733f20170119-55532-14vvopb.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/20c942522c028b466c6550131b1c733f20170119-55532-mqljo9.csv' SQL (0.4ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170119-55532-1ujy7xh.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 41], ["attachment_error_updated_at", "2017-01-19 02:45:58.166532"], ["updated_at", "2017-01-19 02:45:58.207588"], ["id", 2]]  (0.7ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:46:08 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.8ms) Completed 200 OK in 11ms (Views: 10.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:46:08 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:46:08 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:46:08 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:46:18 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 10ms (Views: 9.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:46:18 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:46:18 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:46:18 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:46:29 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:46:29 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:46:29 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:46:29 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:46:39 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:46:39 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:46:39 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:46:39 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:46:50 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:46:50 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:46:50 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:46:50 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.5ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:00 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:00 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:00 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:00 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:11 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:11 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:11 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:11 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:21 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:21 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:21 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:21 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:31 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms) Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:31 -0200 Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:31 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:31 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.4ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:42 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:42 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:42 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:42 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:47:52 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:47:53 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:47:53 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:47:53 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:03 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:03 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:03 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:03 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:14 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:14 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:14 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:14 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:25 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:25 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:25 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:25 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:36 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:36 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:36 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:36 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:47 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:47 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:47 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:47 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:48:58 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:48:58 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:48:58 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:48:58 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:49:09 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:49:09 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:49:09 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:49:09 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:49:20 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:49:20 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:49:20 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:49:20 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:49:31 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:49:31 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:49:31 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:49:31 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:49:41 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:49:41 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:49:41 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:49:41 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:49:52 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:49:52 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:49:52 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:49:52 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:02 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:02 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:02 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:02 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:12 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:12 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:12 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:12 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:23 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:23 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:23 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:23 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:33 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.8ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:33 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:33 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:33 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:44 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.9ms) Completed 200 OK in 15ms (Views: 14.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:44 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:44 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:44 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:50:55 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:50:55 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:50:55 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:50:55 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:51:06 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.9ms) Completed 200 OK in 23ms (Views: 11.6ms | ActiveRecord: 0.6ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:51:06 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:51:06 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:51:06 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:51:17 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 8ms (Views: 8.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:51:17 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:51:17 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:51:17 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:51:28 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 00:51:28 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 00:51:28 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 00:51:28 -0200 Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 00:51:39 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) SyntaxError (/Users/saulodasilva/Pagnet/csv_import_magic/app/models/importer.rb:13: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' validates :attachment, attachment_presence: true ^): /Users/saulodasilva/Pagnet/csv_import_magic/app/models/importer.rb:13: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '(' validates :attachment, attachment_presence: true ^ activesupport (4.2.7.1) lib/active_support/dependencies.rb:457:in `load' activesupport (4.2.7.1) lib/active_support/dependencies.rb:457:in `block in load_file' activesupport (4.2.7.1) lib/active_support/dependencies.rb:647:in `new_constants_in' activesupport (4.2.7.1) lib/active_support/dependencies.rb:456:in `load_file' activesupport (4.2.7.1) lib/active_support/dependencies.rb:354:in `require_or_load' activesupport (4.2.7.1) lib/active_support/dependencies.rb:494:in `load_missing_constant' activesupport (4.2.7.1) lib/active_support/dependencies.rb:184:in `const_missing' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:6:in `show' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `call' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:25:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.2ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (38.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)   (0.1ms) select sqlite_version(*)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean) SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.8ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:11)  (0.2ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Importer Load (0.5ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started GET "/" for ::1 at 2017-01-19 12:46:39 -0200 Processing by ApplicationController#index as HTML User Load (2.6ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (118.9ms) Completed 200 OK in 619ms (Views: 614.2ms | ActiveRecord: 4.9ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 12:46:57 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"D5UBJNLNaKL0XWOVpiHLIx/as4umGJhqYWo7oXgmxZRaueKf8MkJCzex/EZLX/EjUkoI0QAZL7au5DhOal1pBg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-87385-1muznsw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87385-la9qe9.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87385-b17e5g.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 1], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:46:57.604293"], ["created_at", "2017-01-19 14:46:57.633522"], ["updated_at", "2017-01-19 14:46:57.633522"]]  (0.8ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1/edit Completed 302 Found in 83ms (ActiveRecord: 1.9ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-19 12:46:57 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (20.8ms) Completed 200 OK in 35ms (Views: 33.8ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-19 12:47:01 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"+YAglxI4wO5+6ALjROjerNo9BnoJ+kO6eliijQQoyXWsrMMsMDyhR70EnTCpluSsl629IK/79Ga11qFiFlNl5w==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 14:47:01.989000"], ["id", 1]]  (0.7ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1 Completed 302 Found in 18ms (ActiveRecord: 1.3ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-19 12:47:02 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.0ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.1ms) Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", "Brasil"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", "Brasil"]]  (0.7ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-19 14:47:02.059274"], ["id", 1]]  (0.8ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.2ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) commit transaction Started GET "/" for ::1 at 2017-01-19 12:47:49 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.7ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (12.8ms) Completed 200 OK in 31ms (Views: 27.4ms | ActiveRecord: 2.9ms) Started GET "/" for ::1 at 2017-01-19 12:47:51 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]  (1.0ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (12.5ms) Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 2.6ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 12:47:56 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ViPRmwngap/ysr0QEQon4mXqjzXAPocz7i++XjD34b4DDzIgK+QLNjFeIsP8dB3iKHo0b2Y/MO8hob2xIoxNLA==", "importer"=>{"importable_type"=>"User", "importable_id"=>"3", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-87385-1pzonkw.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87385-ydu4cv.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-87385-qytili.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 3], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 14:47:56.052339"], ["created_at", "2017-01-19 14:47:56.084826"], ["updated_at", "2017-01-19 14:47:56.084826"]]  (1.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3000/csv_import_magic/importers/2/edit Completed 302 Found in 72ms (ActiveRecord: 1.7ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-19 12:47:56 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.2ms) Completed 200 OK in 20ms (Views: 19.5ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/2" for ::1 at 2017-01-19 12:47:57 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"zbsXN7Q0fcpiI2Va2OgYgeNm7hqvLO7mN+ABsN/gjd+Yl/SMljAcY6HP+ok1liKBrvZVQAktWTr4bgJfzZshTQ==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (3.0ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 14:47:57.928434"], ["id", 2]]  (1.4ms) commit transaction Redirected to http://localhost:3000/csv_import_magic/importers/2 Completed 302 Found in 20ms (ActiveRecord: 4.6ms) Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 12:47:57 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 13ms (Views: 12.8ms | ActiveRecord: 0.1ms) Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-19 14:47:58.002014"], ["id", 2]]  (0.7ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-19 12:49:08 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.6ms) Completed 200 OK in 12ms (Views: 11.7ms | ActiveRecord: 0.1ms) Started GET "/" for ::1 at 2017-01-19 12:49:11 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.9ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (14.1ms) Completed 200 OK in 27ms (Views: 23.4ms | ActiveRecord: 2.9ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 12:49:15 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"yi7ksD3Le31qdgafsJMuA/r1fx6H9/DjRcSctrNJD0GfAgcLH88a1KmamUxd7RQDt2XERCH2Rz+KSp9ZoTKj0w==", "importer"=>{"importable_type"=>"User", "importable_id"=>"4", "source"=>"company", "attachment"=>#, @original_filename="companies_invalid.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies_invalid.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-87385-1mxor9g.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-87385-1u9fvcd.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170119-87385-2zcb7c.csv' SQL (0.3ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 4], ["source", "company"], ["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-19 14:49:15.521951"], ["created_at", "2017-01-19 14:49:15.553989"], ["updated_at", "2017-01-19 14:49:15.553989"]]  (0.7ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Redirected to http://localhost:3000/csv_import_magic/importers/3/edit Completed 302 Found in 73ms (ActiveRecord: 1.3ms) Started GET "/csv_import_magic/importers/3/edit" for ::1 at 2017-01-19 12:49:15 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.5ms) Completed 200 OK in 20ms (Views: 19.7ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/3" for ::1 at 2017-01-19 12:49:18 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"R5/29t4kZMO4GupSV3Z/58h8LF2cVjOSPB3ESNWkNnkSsxVN/CAFanv2dYG6CEXnheyXBzpXhE7zk8enx9+a6w==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 14:49:18.293985"], ["id", 3]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Redirected to http://localhost:3000/csv_import_magic/importers/3 Completed 302 Found in 8ms (ActiveRecord: 1.1ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]] Started GET "/csv_import_magic/importers/3" for ::1 at 2017-01-19 12:49:18 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms)  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]]  (0.0ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170119-87695-1j8psm5.csv' Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.1ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ef29eb4ee0e4c4e6f911e2c2d9a8806220170119-87695-1qr5h1z.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/ef29eb4ee0e4c4e6f911e2c2d9a8806220170119-87695-y2j0z8.csv' SQL (0.5ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170119-87695-1j8psm5.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 134], ["attachment_error_updated_at", "2017-01-19 14:49:18.348297"], ["updated_at", "2017-01-19 14:49:18.387536"], ["id", 3]]  (0.7ms) commit transaction Started GET "/csv_import_magic/importers/3" for ::1 at 2017-01-19 12:49:28 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (8.0ms) Completed 200 OK in 20ms (Views: 19.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 12:49:28 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 12:49:28 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 12:49:28 -0200 Started GET "/" for ::1 at 2017-01-19 18:42:54 -0200 Processing by ApplicationController#index as HTML User Load (4.2ms) SELECT "users".* FROM "users"  (0.2ms) begin transaction SQL (0.7ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.6ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (146.4ms) Completed 200 OK in 650ms (Views: 642.3ms | ActiveRecord: 7.7ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-19 18:43:22 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"q2GhGh0WITUaVP34M/8S8yHYtB3OTthdGlMB/3LuD7n+TUKhPxJAnNm4YivegSjzbEgPR2hPb4HV3QIQYJWjKw==", "importer"=>{"importable_type"=>"User", "importable_id"=>"5", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170119-22511-imlxpj.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22511-4js5p3.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170119-22511-1d87hvl.csv' SQL (0.8ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 5], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-19 20:43:22.304551"], ["created_at", "2017-01-19 20:43:22.335446"], ["updated_at", "2017-01-19 20:43:22.335446"]]  (0.8ms) commit transaction Importer Load (0.3ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Redirected to http://localhost:3002/csv_import_magic/importers/4/edit Completed 302 Found in 95ms (ActiveRecord: 2.3ms) Started GET "/csv_import_magic/importers/4/edit" for ::1 at 2017-01-19 18:43:22 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"4"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (12.9ms) Completed 200 OK in 27ms (Views: 26.3ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/4" for ::1 at 2017-01-19 18:43:27 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"JYbl47jY9jiNmL0LTmGp6OAsf+GHUmzwRBIn15vICMdwqgZYmtyXkU50ItijH5PorbzEuyFT2yyLnCQ4ibOkVQ==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"4"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]]  (0.2ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-19 20:43:27.347074"], ["id", 4]]  (1.1ms) commit transaction Redirected to http://localhost:3002/csv_import_magic/importers/4 Completed 302 Found in 29ms (ActiveRecord: 1.8ms) Started GET "/csv_import_magic/importers/4" for ::1 at 2017-01-19 18:43:27 -0200 Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"4"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.6ms) Completed 200 OK in 13ms (Views: 12.6ms | ActiveRecord: 0.1ms) Company Load (0.3ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (1.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-19 20:43:27.454690"], ["id", 4]]  (4.2ms) commit transaction Started GET "/csv_import_magic/importers/4" for ::1 at 2017-01-19 18:43:37 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"4"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 4]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-19 18:43:37 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-19 18:43:37 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-19 18:43:37 -0200 ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateUser (20170112125734)  (0.1ms) begin transaction  (1.0ms) DROP TABLE "users" SQL (0.2ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170112125734"]]  (0.9ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction  (0.5ms) DROP TABLE "importers" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145657"]]  (0.8ms) commit transaction Migrating to CreateCompanies (20170111145652)  (0.1ms) begin transaction  (0.6ms) DROP TABLE "companies" SQL (0.1ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = ? [["version", "20170111145652"]]  (0.9ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateCompanies (20170111145652)  (0.0ms) begin transaction  (0.4ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145652"]]  (0.8ms) commit transaction Migrating to CreateImporters (20170111145657)  (0.0ms) begin transaction DEPRECATION WARNING: `#timestamps` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/saulodasilva/Pagnet/csv_import_magic/db/migrate/20170111145657_create_importers.rb:12)  (0.3ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "parser" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170111145657"]]  (0.7ms) commit transaction Migrating to CreateUser (20170112125734)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170112125734"]]  (0.7ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started GET "/" for ::1 at 2017-01-25 18:53:33 -0200 Processing by ApplicationController#index as HTML User Load (2.0ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (1.1ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (140.3ms) Completed 200 OK in 570ms (Views: 564.8ms | ActiveRecord: 4.6ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 18:53:33 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 18:53:33 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 18:53:33 -0200 Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started POST "/csv_import_magic/importers" for ::1 at 2017-01-25 18:54:00 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ce7WRXOscmBNBzcAY2rzwlNZZeZ9bgph9c+uz4GLYzRcwjX+UagTyY7rqNOOFMnCHsnevNtvvb06Qa0gk/DPpg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"1", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170125-83042-127gsc3.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-83042-1w15ful.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-83042-38hsrw.csv'  (0.1ms) rollback transaction Redirected to http://localhost:3000/ Completed 302 Found in 74ms (ActiveRecord: 0.2ms) Started GET "/" for ::1 at 2017-01-25 18:54:00 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.0ms) begin transaction SQL (0.6ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (15.0ms) Completed 200 OK in 30ms (Views: 27.0ms | ActiveRecord: 2.4ms) Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.0ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Started POST "/csv_import_magic/importers" for ::1 at 2017-01-25 18:54:57 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Txq/Mino3xAF41YsQgYzPfJ3pkha1kYRH9YDmSTYWmUaNlyJC+y+ucYPyf+veAk9v+cdEvzX8c3QWAB2NqP29w==", "importer"=>{"importable_type"=>"User", "importable_id"=>"2", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", nil]] Completed 404 Not Found in 20ms (ActiveRecord: 0.7ms) ActiveRecord::RecordNotFound (Couldn't find Importer with 'id'={"importable_type"=>"User", "importable_id"=>"2", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}): activerecord (4.2.7.1) lib/active_record/core.rb:155:in `find' /Users/saulodasilva/Pagnet/csv_import_magic/app/services/csv_import_magic/importer.rb:6:in `initialize' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:10:in `new' /Users/saulodasilva/Pagnet/csv_import_magic/app/controllers/csv_import_magic/importers_controller.rb:10:in `create' actionpack (4.2.7.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:198:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument' activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument' actionpack (4.2.7.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.2.7.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.2.7.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.2.7.1) lib/abstract_controller/base.rb:137:in `process' actionview (4.2.7.1) lib/action_view/rendering.rb:30:in `process' actionpack (4.2.7.1) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.2.7.1) lib/action_controller/metal.rb:237:in `block in action' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:43:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/railtie.rb:194:in `public_send' railties (4.2.7.1) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.2.7.1) lib/action_dispatch/routing/mapper.rb:51:in `serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:43:in `block in serve' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `each' actionpack (4.2.7.1) lib/action_dispatch/journey/router.rb:30:in `serve' actionpack (4.2.7.1) lib/action_dispatch/routing/route_set.rb:817:in `call' rack (1.6.5) lib/rack/etag.rb:24:in `call' rack (1.6.5) lib/rack/conditionalget.rb:38:in `call' rack (1.6.5) lib/rack/head.rb:13:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/flash.rb:260:in `call' rack (1.6.5) lib/rack/session/abstract/id.rb:225:in `context' rack (1.6.5) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/cookies.rb:560:in `call' activerecord (4.2.7.1) lib/active_record/query_cache.rb:36:in `call' activerecord (4.2.7.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' activerecord (4.2.7.1) lib/active_record/migration.rb:377:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.2.7.1) lib/active_support/callbacks.rb:88:in `__run_callbacks__' activesupport (4.2.7.1) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' activesupport (4.2.7.1) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (4.2.7.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.2.7.1) lib/rails/rack/logger.rb:38:in `call_app' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.2.7.1) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.2.7.1) lib/rails/rack/logger.rb:20:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.6.5) lib/rack/methodoverride.rb:22:in `call' rack (1.6.5) lib/rack/runtime.rb:18:in `call' activesupport (4.2.7.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' actionpack (4.2.7.1) lib/action_dispatch/middleware/static.rb:120:in `call' rack (1.6.5) lib/rack/sendfile.rb:113:in `call' railties (4.2.7.1) lib/rails/engine.rb:518:in `call' railties (4.2.7.1) lib/rails/application.rb:165:in `call' rack (1.6.5) lib/rack/lock.rb:17:in `call' rack (1.6.5) lib/rack/content_length.rb:15:in `call' rack (1.6.5) lib/rack/handler/webrick.rb:88:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service' /Users/saulodasilva/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run' /Users/saulodasilva/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread' Rendered /Users/saulodasilva/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.7ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.9ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms) Rendered /Users/saulodasilva/.rvm/gems/ruby-2.3.1/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (43.5ms) Started GET "/" for ::1 at 2017-01-25 18:55:02 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]  (0.7ms) commit transaction  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (23.0ms) Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 2.5ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-25 18:55:06 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"fr4zkyJDoq3f+vfhlJkAzeO2Cqrj6zcWr3ETeweltc4rktAoAEfDBBwWaDJ55zrNriax8EXqgMpg/xCUFd4ZXA==", "importer"=>{"importable_type"=>"User", "importable_id"=>"3", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170125-83042-1ojprl6.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-83042-14alwbe.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-83042-1nbwrn0.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 3], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-25 20:55:06.408467"], ["parser", "company_parser"], ["created_at", "2017-01-25 20:55:06.440787"], ["updated_at", "2017-01-25 20:55:06.440787"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1/edit Completed 302 Found in 69ms (ActiveRecord: 1.5ms) Started GET "/csv_import_magic/importers/1/edit" for ::1 at 2017-01-25 18:55:06 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (14.5ms) Completed 200 OK in 28ms (Views: 27.0ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:55:21 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"vZRJRURkD11xG/5+UfYjD5YRX87M378vStBa8K0UfXvouKr+ZmBu9LL3Ya28iBkP24HklGreCPOFXlkfv2/R6Q==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.4ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.5ms) Completed 200 OK in 29ms (Views: 17.8ms | ActiveRecord: 0.6ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:55:52 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"/jemwz9UoHh3WkGBAh0ihDHNZ7SsMM50ssTUT/xGv0GrG0V4HVDB0bS23lLvYxiEfF3c7goxeah9Steg7j0T0w==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.4ms) Completed 200 OK in 38ms (Views: 18.8ms | ActiveRecord: 1.0ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:57:24 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"VokUJQiNbIzeYh/2tj5BTzHGRm4FDvN3ieNgYdNUE8oDpfeeKokNJR2OgCVbQHtPfFb9NKMPRKtGbWOOwS+/WA==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.4ms) Completed 200 OK in 40ms (Views: 18.7ms | ActiveRecord: 0.9ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:57:36 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ciB6bQkJbddKhlPl+vLwNN6lyyUWCqskqIUVMgLwcycnDJnWKw0MfolqzDYXjMo0kzVwf7ALHPhnCxbdEIvftQ==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.8ms) Completed 200 OK in 41ms (Views: 22.1ms | ActiveRecord: 0.9ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:57:55 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"dZ4Eq1ry77nkUKSMGUex5XqCe/7nlo/61eni22n6gh8gsucQePaOECe8O1/0OYvlNxLApEGXOCYaZ+E0e4EujQ==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.7ms) Completed 200 OK in 41ms (Views: 22.8ms | ActiveRecord: 0.7ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:58:04 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"1/73RZ1s7kGjGh0hEqnpZoIdgBJoUFCNieRlSaMwn0aC0hT+v2iP6GD2gvL/19Nmz407SM5R51FGamamsUsz1A==", "importer"=>{"columns"=>["name", "street", "ignore", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.0ms) Completed 200 OK in 42ms (Views: 23.6ms | ActiveRecord: 0.7ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:58:19 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"O257xLEooNjLMyju0E2Glx7l/Y8rcDvEjTrpoMnoWgJuQph/kyzBcQjftz09M7yXU3VG1Y1xjBhCtOpP25P2kA==", "importer"=>{"columns"=>["ignore", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (8.8ms) Completed 200 OK in 26ms (Views: 18.3ms | ActiveRecord: 0.3ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 18:58:23 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"oTXD1nlpCZYRG0mjiD0+3uU9VFXC246GN6x1LJwXEeT0GSBtW21oP9L31nBlQwTeqK3vD2TaOVr4InbDjmy9dg==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.3ms) Completed 200 OK in 25ms (Views: 17.5ms | ActiveRecord: 0.4ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:05:10 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"jmicJ9VomR58qZI12Kst4dI3xrKraxsljKv2pSLhxqHbRH+c92z4t79FDeY11Rfhn6d96A1qrPlDJfVKMJpqMw==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.5ms) Completed 200 OK in 64ms (Views: 18.9ms | ActiveRecord: 0.8ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:06:04 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"TqLmkffJYXNm5YZ7n2oCo4WBw9O32h8XGfV3Y4DT4mUbjgUq1c0A2qUJGahyFDijyBF4iRHbqMvWe3SMkqhO9w==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.0ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (11.1ms) Completed 200 OK in 49ms (Views: 21.4ms | ActiveRecord: 0.7ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:06:21 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ip1ElOVGfZzUQYqtqzKDecGHJ8fmOqol6akrQlrZlOV3sacvx0IcNRetFX5GTLl5jBecnUA7HfkmJyitSKI4dw==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (53.9ms) Completed 200 OK in 531ms (Views: 453.7ms | ActiveRecord: 2.4ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:06:38 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"Xu/Q/OKe6QkI2VVpB/bKiiBj1GQKx1zkkE5c8RYgLOsLwzNHwJqIoMs1yrrqiPCKbfNvPqzG6zhfwF8eBFuAeQ==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (18.1ms) Completed 200 OK in 77ms (Views: 31.9ms | ActiveRecord: 1.0ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:06:52 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"ghXAm/+GKwuVfayP/0zn3xhJIFkbdAuglAoB/4Bc3EDXOSMg3YJKolaRM1wSMt3fVdmbA711vHxbhAIQkidw0g==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.4ms) Completed 200 OK in 47ms (Views: 20.8ms | ActiveRecord: 1.1ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:07:07 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"mEYS34vkCnMt6u+VZu6FOtrCOJuT2rVzc/qO6/St3CnNavFkqeBr2u4GcEaLkL86l1KDwTXbAq+8dI0E5tZwuw==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.0ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.0ms) Completed 200 OK in 35ms (Views: 19.1ms | ActiveRecord: 0.7ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:07:25 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"NOywni30g+9O/y2b+llRP3bqii8ab0dkZ+q2eni4qLZhwFMlD/DiRo0TskgXJ2s/O3oxdbxu8LioZLWVasMEJA==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.7ms) Completed 200 OK in 35ms (Views: 18.7ms | ActiveRecord: 0.8ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:14:34 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"HywCicWJDRn8MfRZ8pWbV0yPnrKgcVi9a/8+jTb4QxpKAOEy541ssD/da4of66FXAR8l6AZw72GkcT1iJIPviA==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (1.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (13.1ms) Completed 200 OK in 53ms (Views: 27.9ms | ActiveRecord: 1.8ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:14:52 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"PbAZId/fsv889CdyEotCqt7HcnKoIsUwS+5QYkRDl/tonPqa/dvTVv8YuKH/9Xiqk1fJKA4jcuyEYFONVjg7aQ==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.2ms) Completed 200 OK in 49ms (Views: 21.4ms | ActiveRecord: 1.2ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:15:35 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"7SdA4zjm6oLrFi9VLQIcvE0aK6245/N7WxAb/AmrjZu4C6NYGuKLKyj6sIbAfCa8AIqQ9x7mRKeUnhgTG9AhCQ==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (9.4ms) Completed 200 OK in 53ms (Views: 19.1ms | ActiveRecord: 0.8ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:15:57 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"0u2w++VHG8ThVWWLXxcUojV79wi93sWtXk6mYe6aOAiHwVNAx0N6bSK5+liyaS6ieOtMUhvfcnGRwKWO/OGUmg==", "importer"=>{"columns"=>["number", "street", "number", "neighborhood", "ignore", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (10.5ms) Completed 200 OK in 27ms (Views: 18.1ms | ActiveRecord: 0.4ms) Started PATCH "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:14 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"SBGG076BB2I8ksi0bLdE3e4IWvxkntd/ybVZQhKfUUQdPWVonIVmy/9+V2eByX7do5jhpsKfYKMGO1qtAOT91g==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.0ms) begin transaction SQL (0.7ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-25 21:16:14.584936"], ["id", 1]]  (7.4ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Redirected to http://localhost:3000/csv_import_magic/importers/1 Completed 302 Found in 29ms (ActiveRecord: 8.2ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:14 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.1ms) Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.1ms) SQL (0.4ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "foo"], ["street", "R: Teste"], ["number", "1"], ["neighborhood", "Joao de Barro"], ["city", "Birigui"], ["state", "SP"], ["country", "Brasil"]] Company Load (0.0ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]] SQL (0.1ms) INSERT INTO "companies" ("name", "street", "number", "neighborhood", "city", "state", "country") VALUES (?, ?, ?, ?, ?, ?, ?) [["name", "bar"], ["street", "R: Teste"], ["number", "2"], ["neighborhood", "Joao de Barro"], ["city", "Aracatuba"], ["state", "SP"], ["country", "Brasil"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction  (0.1ms) rollback transaction Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:19 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:19 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:19 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:19 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:24 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.5ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:24 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:24 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:24 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:30 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.2ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:30 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:30 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:30 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:36 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:36 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:36 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:36 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:39 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms) Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:44 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:44 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:44 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:44 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:50 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:50 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:50 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:50 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:16:55 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:16:55 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:16:55 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:16:55 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:00 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:00 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:00 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:00 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:05 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 16ms (Views: 15.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:05 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:05 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:05 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:10 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 8ms (Views: 7.3ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:10 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:10 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:10 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:15 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:15 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:15 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:15 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:20 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:20 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:20 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:20 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:25 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:25 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:25 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:25 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:30 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 20ms (Views: 9.7ms | ActiveRecord: 0.5ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:30 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:30 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:30 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:36 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:36 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:36 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:36 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:41 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 20ms (Views: 9.8ms | ActiveRecord: 0.5ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:41 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:41 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:41 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:46 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 24ms (Views: 11.3ms | ActiveRecord: 0.5ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:46 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:46 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:46 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:52 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.4ms) Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:52 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:52 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:52 -0200 Started GET "/csv_import_magic/importers/1" for ::1 at 2017-01-25 19:17:58 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"1"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 1]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Completed 200 OK in 9ms (Views: 8.8ms | ActiveRecord: 0.1ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:17:59 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:17:59 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:17:59 -0200 Started GET "/" for ::1 at 2017-01-25 19:18:01 -0200 Processing by ApplicationController#index as HTML User Load (0.1ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.6ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]  (0.7ms) commit transaction  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.7ms) commit transaction User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (29.1ms) Completed 200 OK in 41ms (Views: 38.3ms | ActiveRecord: 2.7ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-25 19:18:07 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"K5hMuce6miGAqj3FowW3xWU5CNUxsrSd4K4l3qo6Idh+tK8C5b77iENGohZOe43FKKmzj5ezA0EvICYxuEGNSg==", "importer"=>{"importable_type"=>"User", "importable_id"=>"4", "source"=>"company", "attachment"=>#, @original_filename="companies.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170125-84046-lnk1gk.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84046-olzknz.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/1465167507001c193cea606daac356fa20170125-84046-1j29edz.csv' SQL (0.4ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 4], ["source", "company"], ["attachment_file_name", "companies.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 151], ["attachment_updated_at", "2017-01-25 21:18:07.303061"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:18:07.335421"], ["updated_at", "2017-01-25 21:18:07.335421"]]  (0.9ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Redirected to http://localhost:3000/csv_import_magic/importers/2/edit Completed 302 Found in 83ms (ActiveRecord: 1.5ms) Started GET "/csv_import_magic/importers/2/edit" for ::1 at 2017-01-25 19:18:07 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (13.2ms) Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/2" for ::1 at 2017-01-25 19:18:08 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"dm5qzJpWYny1GHENounlloAh82xRYO/f2KQqOiAPrPgjQol3uFID1Xb07t5Pl9+WzbFINvdhWAMXKinVMnQAag==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.0ms) begin transaction SQL (0.5ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-25 21:18:08.843580"], ["id", 2]]  (0.9ms) commit transaction Redirected to http://localhost:3000/csv_import_magic/importers/2 Completed 302 Found in 20ms (ActiveRecord: 1.5ms) Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-25 19:18:08 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.7ms) Completed 200 OK in 12ms (Views: 11.5ms | ActiveRecord: 0.1ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.0ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.0ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]]  (0.1ms) begin transaction SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "success"], ["message", "Seus registros foram importados com sucesso!"], ["updated_at", "2017-01-25 21:18:08.913017"], ["id", 2]]  (0.6ms) commit transaction Started GET "/csv_import_magic/importers/2" for ::1 at 2017-01-25 19:18:13 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"2"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 2]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.3ms) Completed 200 OK in 10ms (Views: 9.0ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:18:14 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:18:14 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:18:14 -0200 Started GET "/" for ::1 at 2017-01-25 19:18:21 -0200 Processing by ApplicationController#index as HTML User Load (0.2ms) SELECT "users".* FROM "users"  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]  (0.8ms) commit transaction  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "users" ("name", "email") VALUES (?, ?) [["name", "foo"], ["email", "foo@bar.commm"]]  (0.8ms) commit transaction User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1 Rendered application/index.html.erb within layouts/application (17.5ms) Completed 200 OK in 31ms (Views: 28.2ms | ActiveRecord: 2.8ms) Started POST "/csv_import_magic/importers" for ::1 at 2017-01-25 19:18:24 -0200 Processing by CsvImportMagic::ImportersController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"DXpF3Aa3VGPkwt1xkJpjSL7NWEzJjmcaqeUpvj42zX5YVqZnJLM1yicuQqJ95FlI813jFm+P0MZmaypRLE1h7A==", "importer"=>{"importable_type"=>"User", "importable_id"=>"5", "source"=>"company", "attachment"=>#, @original_filename="companies_invalid.csv", @content_type="text/csv", @headers="Content-Disposition: form-data; name=\"importer[attachment]\"; filename=\"companies_invalid.csv\"\r\nContent-Type: text/csv\r\n">}, "commit"=>"Importar"} Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/RackMultipart20170125-84046-1cq5jdz.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-84046-15ag3li.csv'  (0.1ms) begin transaction Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/808a80fbe6df9aed93f9da65bb3aa65320170125-84046-fp18qm.csv' SQL (0.5ms) INSERT INTO "importers" ("importable_type", "importable_id", "source", "attachment_file_name", "attachment_content_type", "attachment_file_size", "attachment_updated_at", "parser", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["importable_type", "User"], ["importable_id", 5], ["source", "company"], ["attachment_file_name", "companies_invalid.csv"], ["attachment_content_type", "text/plain"], ["attachment_file_size", 152], ["attachment_updated_at", "2017-01-25 21:18:24.639679"], ["parser", "company_parser"], ["created_at", "2017-01-25 21:18:24.674793"], ["updated_at", "2017-01-25 21:18:24.674793"]]  (0.8ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Redirected to http://localhost:3000/csv_import_magic/importers/3/edit Completed 302 Found in 79ms (ActiveRecord: 1.5ms) Started GET "/csv_import_magic/importers/3/edit" for ::1 at 2017-01-25 19:18:24 -0200 Processing by CsvImportMagic::ImportersController#edit as HTML Parameters: {"id"=>"3"} Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/edit.html.erb within layouts/csv_import_magic (13.1ms) Completed 200 OK in 23ms (Views: 22.7ms | ActiveRecord: 0.2ms) Started PATCH "/csv_import_magic/importers/3" for ::1 at 2017-01-25 19:18:27 -0200 Processing by CsvImportMagic::ImportersController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"/lKC9deJhGqeVaGjZc/JmnUrGc3hMXLKyAW5LUf8rlyrfmFO9Y3lw125PnCIsfOaOLuil0cwxRYHi7rCVYcCzg==", "importer"=>{"columns"=>["name", "street", "number", "neighborhood", "city", "state", "ignore", "country"]}, "commit"=>"Importar 2 registros", "id"=>"3"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]]  (0.1ms) begin transaction SQL (0.4ms) UPDATE "importers" SET "columns" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["columns", "---\n- name\n- street\n- number\n- neighborhood\n- city\n- state\n- ignore\n- country\n"], ["updated_at", "2017-01-25 21:18:27.533764"], ["id", 3]]  (0.7ms) commit transaction Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Redirected to http://localhost:3000/csv_import_magic/importers/3 Completed 302 Found in 12ms (ActiveRecord: 1.3ms) Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "foo"]]  (0.1ms) begin transaction Company Load (0.1ms) SELECT "companies".* FROM "companies" WHERE "companies"."name" = ? LIMIT 1 [["name", "bar"]]  (0.1ms) commit transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Started GET "/csv_import_magic/importers/3" for ::1 at 2017-01-25 19:18:27 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"3"}  (0.1ms) begin transaction Importer Load (0.1ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (0.6ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/failures20170125-84785-u7rdmo.csv' Completed 200 OK in 15ms (Views: 14.4ms | ActiveRecord: 0.1ms) Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/50c8957deb82bd834481a7917c7057d520170125-84785-1f5ap9c.csv' Command :: file -b --mime '/var/folders/b3/q0lg7mq56gd6gvczrx3rtzw00000gn/T/50c8957deb82bd834481a7917c7057d520170125-84785-1g3l9ab.csv' SQL (0.3ms) UPDATE "importers" SET "status" = ?, "message" = ?, "attachment_error_file_name" = ?, "attachment_error_content_type" = ?, "attachment_error_file_size" = ?, "attachment_error_updated_at" = ?, "updated_at" = ? WHERE "importers"."id" = ? [["status", "error"], ["message", "Alguns registros não foram importados pois contém erros!"], ["attachment_error_file_name", "failures20170125-84785-u7rdmo.csv"], ["attachment_error_content_type", "text/plain"], ["attachment_error_file_size", 134], ["attachment_error_updated_at", "2017-01-25 21:18:27.585931"], ["updated_at", "2017-01-25 21:18:27.623900"], ["id", 3]]  (0.7ms) commit transaction Started GET "/csv_import_magic/importers/3" for ::1 at 2017-01-25 19:18:32 -0200 Processing by CsvImportMagic::ImportersController#show as HTML Parameters: {"id"=>"3"} Importer Load (0.2ms) SELECT "importers".* FROM "importers" WHERE "importers"."id" = ? LIMIT 1 [["id", 3]] Rendered /Users/saulodasilva/Pagnet/csv_import_magic/app/views/csv_import_magic/importers/show.html.erb within layouts/csv_import_magic (1.0ms) Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.2ms) Started GET "/assets/csv_import_magic/_theme.self-1bbd5ffc5a3c18c48e6c197561656e594c07aad35853a1ab01ea9a0aa48d6ee1.css?body=1" for ::1 at 2017-01-25 19:18:32 -0200 Started GET "/assets/application.self-d885a0a66bd595c10edb24f8879f94e334d88be0730c4d7c7a7b57c731c09037.css?body=1" for ::1 at 2017-01-25 19:18:32 -0200 Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for ::1 at 2017-01-25 19:18:32 -0200 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to AddsAdditionalDataToImporters (20170405100034)  (0.0ms) begin transaction  (0.9ms) ALTER TABLE "importers" ADD "additional_data" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170405100034"]]  (0.8ms) commit transaction Migrating to AddsAdditionalAttributesToCompany (20170505100034)  (0.1ms) begin transaction  (0.3ms) ALTER TABLE "companies" ADD "one_additional_attribute" varchar  (0.1ms) ALTER TABLE "companies" ADD "other_additional_attribute" varchar SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20170505100034"]]  (0.8ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.9ms) DROP TABLE "companies"  (0.8ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean, "one_additional_attribute" varchar, "other_additional_attribute" varchar)  (1.1ms) DROP TABLE "importers"  (0.8ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "parser" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime, "additional_data" varchar)  (1.0ms) DROP TABLE "users"  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)  (0.4ms) SELECT version FROM "schema_migrations"  (1.4ms) DROP TABLE "companies"  (0.9ms) CREATE TABLE "companies" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "name" varchar, "street" varchar, "number" varchar, "neighborhood" varchar, "city" varchar, "state" varchar, "country" varchar, "active" boolean, "one_additional_attribute" varchar, "other_additional_attribute" varchar)   (1.6ms) DROP TABLE "importers"  (0.9ms) CREATE TABLE "importers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "attachment_file_name" varchar, "attachment_content_type" varchar, "attachment_file_size" integer, "attachment_updated_at" datetime, "attachment_error_file_name" varchar, "attachment_error_content_type" varchar, "attachment_error_file_size" integer, "attachment_error_updated_at" datetime, "source" varchar, "parser" varchar, "columns" varchar, "message" varchar, "status" varchar DEFAULT 'pending', "importable_id" integer, "importable_type" varchar, "created_at" datetime, "updated_at" datetime, "additional_data" varchar)   (0.8ms) DROP TABLE "users"  (0.7ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar)   (0.3ms) SELECT version FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"