axlsx_rails 0.5.2 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +9 -1
- data/Gemfile +22 -9
- data/Gemfile.lock +155 -137
- data/Gemfile.lock.4.2 +3 -3
- data/Gemfile.lock.5.1 +2 -2
- data/{Gemfile.lock.5.0 → Gemfile.lock.5.2} +23 -68
- data/README.md +63 -38
- data/lib/axlsx_rails/template_handler.rb +10 -3
- data/lib/axlsx_rails/version.rb +1 -1
- data/lib/axlsx_rails.rb +2 -0
- data/spec/axlsx_builder_spec.rb +15 -2
- data/spec/axlsx_request_spec.rb +16 -13
- data/spec/ci.rb +8 -5
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/config/environments/development.rb +2 -2
- data/spec/dummy_4/db/test.sqlite3 +0 -0
- data/spec/dummy_4/log/test.log +326 -0
- data/spec/dummy_5/db/test.sqlite3 +0 -0
- data/spec/dummy_5/log/test.log +5 -0
- data/spec/{dummy_5 → dummy_5.0}/Rakefile +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/assets/javascripts/application.js +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/assets/stylesheets/application.css +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/application_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/home_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/likes_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/controllers/users_controller.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/helpers/application_helper.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/mailers/notifier.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/models/like.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/models/user.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/_cover_sheet.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/only_html.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/useheader.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/home/withpartial.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/application.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/users.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.txt.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/export.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.html.erb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/noaction.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/respond_with.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/app/views/users/send_instructions.xlsx.axlsx +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/bundle +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/rails +0 -0
- data/spec/{dummy_5 → dummy_5.0}/bin/rake +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/application.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/boot.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/database.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environment.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/development.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/production.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/environments/test.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/cookies_serializer.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/inflections.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/mime_types.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/secret_token.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/session_store.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/locales/en.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/routes.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config/secrets.yml +0 -0
- data/spec/{dummy_5 → dummy_5.0}/config.ru +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/migrate/20120717192452_create_users.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/migrate/20121206210955_create_likes.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/db/schema.rb +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/404.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/422.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/500.html +0 -0
- data/spec/{dummy_5 → dummy_5.0}/public/favicon.ico +0 -0
- data/spec/dummy_5.1/Rakefile +6 -0
- data/spec/dummy_5.1/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_5.1/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_5.1/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_5.1/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_5.1/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_5.1/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_5.1/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_5.1/app/mailers/notifier.rb +14 -0
- data/spec/dummy_5.1/app/models/like.rb +3 -0
- data/spec/dummy_5.1/app/models/user.rb +10 -0
- data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_5.1/app/views/home/index.html.erb +4 -0
- data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_5.1/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_5.1/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_5.1/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/users/index.html.erb +23 -0
- data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_5.1/bin/bundle +3 -0
- data/spec/dummy_5.1/bin/rails +4 -0
- data/spec/dummy_5.1/bin/rake +4 -0
- data/spec/dummy_5.1/config/application.rb +23 -0
- data/spec/dummy_5.1/config/boot.rb +5 -0
- data/spec/dummy_5.1/config/database.yml +25 -0
- data/spec/dummy_5.1/config/environment.rb +5 -0
- data/spec/dummy_5.1/config/environments/development.rb +37 -0
- data/spec/dummy_5.1/config/environments/production.rb +83 -0
- data/spec/dummy_5.1/config/environments/test.rb +40 -0
- data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_5.1/config/initializers/inflections.rb +16 -0
- data/spec/dummy_5.1/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_5.1/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_5.1/config/initializers/session_store.rb +3 -0
- data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_5.1/config/locales/en.yml +23 -0
- data/spec/dummy_5.1/config/routes.rb +17 -0
- data/spec/dummy_5.1/config/secrets.yml +22 -0
- data/spec/dummy_5.1/config.ru +4 -0
- data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_5.1/db/schema.rb +31 -0
- data/spec/dummy_5.1/db/test.sqlite3 +0 -0
- data/spec/dummy_5.1/log/test.log +3645 -0
- data/spec/dummy_5.1/public/404.html +67 -0
- data/spec/dummy_5.1/public/422.html +67 -0
- data/spec/dummy_5.1/public/500.html +66 -0
- data/spec/dummy_5.1/public/favicon.ico +0 -0
- data/spec/dummy_5.2/Rakefile +6 -0
- data/spec/dummy_5.2/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_5.2/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_5.2/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_5.2/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_5.2/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_5.2/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_5.2/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_5.2/app/mailers/notifier.rb +14 -0
- data/spec/dummy_5.2/app/models/like.rb +3 -0
- data/spec/dummy_5.2/app/models/user.rb +10 -0
- data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_5.2/app/views/home/index.html.erb +4 -0
- data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_5.2/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_5.2/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_5.2/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/users/index.html.erb +23 -0
- data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_5.2/bin/bundle +3 -0
- data/spec/dummy_5.2/bin/rails +4 -0
- data/spec/dummy_5.2/bin/rake +4 -0
- data/spec/dummy_5.2/config/application.rb +23 -0
- data/spec/dummy_5.2/config/boot.rb +5 -0
- data/spec/dummy_5.2/config/database.yml +25 -0
- data/spec/dummy_5.2/config/environment.rb +5 -0
- data/spec/dummy_5.2/config/environments/development.rb +37 -0
- data/spec/dummy_5.2/config/environments/production.rb +83 -0
- data/spec/dummy_5.2/config/environments/test.rb +40 -0
- data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_5.2/config/initializers/inflections.rb +16 -0
- data/spec/dummy_5.2/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_5.2/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_5.2/config/initializers/session_store.rb +3 -0
- data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_5.2/config/locales/en.yml +23 -0
- data/spec/dummy_5.2/config/routes.rb +17 -0
- data/spec/dummy_5.2/config/secrets.yml +22 -0
- data/spec/dummy_5.2/config.ru +4 -0
- data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_5.2/db/schema.rb +31 -0
- data/spec/dummy_5.2/db/test.sqlite3 +0 -0
- data/spec/dummy_5.2/log/test.log +3645 -0
- data/spec/dummy_5.2/public/404.html +67 -0
- data/spec/dummy_5.2/public/422.html +67 -0
- data/spec/dummy_5.2/public/500.html +66 -0
- data/spec/dummy_5.2/public/favicon.ico +0 -0
- data/spec/dummy_6.0/Rakefile +6 -0
- data/spec/dummy_6.0/app/assets/javascripts/application.js +13 -0
- data/spec/dummy_6.0/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_6.0/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_6.0/app/controllers/home_controller.rb +56 -0
- data/spec/dummy_6.0/app/controllers/likes_controller.rb +18 -0
- data/spec/dummy_6.0/app/controllers/users_controller.rb +37 -0
- data/spec/dummy_6.0/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_6.0/app/mailers/notifier.rb +14 -0
- data/spec/dummy_6.0/app/models/like.rb +3 -0
- data/spec/dummy_6.0/app/models/user.rb +10 -0
- data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
- data/spec/dummy_6.0/app/views/home/index.html.erb +4 -0
- data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/home/only_html.html.erb +1 -0
- data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +9 -0
- data/spec/dummy_6.0/app/views/layouts/application.html.erb +12 -0
- data/spec/dummy_6.0/app/views/layouts/users.html.erb +12 -0
- data/spec/dummy_6.0/app/views/likes/index.html.erb +17 -0
- data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +7 -0
- data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +14 -0
- data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +6 -0
- data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/users/index.html.erb +23 -0
- data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +1 -0
- data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +1 -0
- data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +8 -0
- data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +5 -0
- data/spec/dummy_6.0/bin/bundle +3 -0
- data/spec/dummy_6.0/bin/rails +4 -0
- data/spec/dummy_6.0/bin/rake +4 -0
- data/spec/dummy_6.0/config/application.rb +23 -0
- data/spec/dummy_6.0/config/boot.rb +5 -0
- data/spec/dummy_6.0/config/database.yml +25 -0
- data/spec/dummy_6.0/config/environment.rb +5 -0
- data/spec/dummy_6.0/config/environments/development.rb +37 -0
- data/spec/dummy_6.0/config/environments/production.rb +83 -0
- data/spec/dummy_6.0/config/environments/test.rb +40 -0
- data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_6.0/config/initializers/inflections.rb +16 -0
- data/spec/dummy_6.0/config/initializers/mime_types.rb +4 -0
- data/spec/dummy_6.0/config/initializers/secret_token.rb +2 -0
- data/spec/dummy_6.0/config/initializers/session_store.rb +3 -0
- data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_6.0/config/locales/en.yml +23 -0
- data/spec/dummy_6.0/config/routes.rb +17 -0
- data/spec/dummy_6.0/config/secrets.yml +22 -0
- data/spec/dummy_6.0/config.ru +4 -0
- data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +12 -0
- data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +10 -0
- data/spec/dummy_6.0/db/schema.rb +31 -0
- data/spec/dummy_6.0/public/404.html +67 -0
- data/spec/dummy_6.0/public/422.html +67 -0
- data/spec/dummy_6.0/public/500.html +66 -0
- data/spec/dummy_6.0/public/favicon.ico +0 -0
- data/spec/spec_helper.rb +12 -3
- data/spec/test_5.0.sh +1 -1
- data/spec/test_5.1.sh +1 -1
- data/spec/test_5.2.sh +16 -0
- data/spec/test_6.0.sh +16 -0
- data/spec/test_all_rails.sh +4 -2
- metadata +564 -231
data/spec/dummy_4/log/test.log
CHANGED
@@ -4324,3 +4324,329 @@ Started GET "/home.xlsx" for 127.0.0.1 at 2018-05-03 22:31:49 -0700
|
|
4324
4324
|
Processing by HomeController#index as XLSX
|
4325
4325
|
Rendered home/index.xlsx.axlsx (6.0ms)
|
4326
4326
|
Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms)
|
4327
|
+
[1m[36m (1.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
|
4328
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
4329
|
+
[1m[36m (1.2ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
4330
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.0ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
4331
|
+
Migrating to CreateUsers (20120717192452)
|
4332
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4333
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "last_name" varchar, "address" varchar, "email" varchar, "created_at" datetime, "updated_at" datetime)
|
4334
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20120717192452"]]
|
4335
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4336
|
+
Migrating to CreateLikes (20121206210955)
|
4337
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4338
|
+
[1m[35m (0.3ms)[0m CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime)
|
4339
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20121206210955"]]
|
4340
|
+
[1m[35m (0.7ms)[0m commit transaction
|
4341
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4342
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4343
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:50.511743"], ["updated_at", "2018-06-06 07:51:50.511743"]]
|
4344
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
4345
|
+
Started GET "/users/1/send_instructions" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4346
|
+
Processing by UsersController#send_instructions as HTML
|
4347
|
+
Parameters: {"user_id"=>"1"}
|
4348
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
4349
|
+
Rendered users/send_instructions.xlsx.axlsx (5.5ms)
|
4350
|
+
Rendered notifier/instructions.html.erb (1.2ms)
|
4351
|
+
|
4352
|
+
Notifier#instructions: processed outbound mail in 219.7ms
|
4353
|
+
|
4354
|
+
Sent mail to elmer@fudd.com (8.7ms)
|
4355
|
+
Date: Wed, 06 Jun 2018 00:51:50 -0700
|
4356
|
+
From: noreply@company.com
|
4357
|
+
To: elmer@fudd.com
|
4358
|
+
Message-ID: <5b179296c328f_5b483fdf8985e1f43013c@straydogstudio.local.mail>
|
4359
|
+
Subject: Instructions
|
4360
|
+
Mime-Version: 1.0
|
4361
|
+
Content-Type: multipart/mixed;
|
4362
|
+
boundary="--==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf";
|
4363
|
+
charset=UTF-8
|
4364
|
+
Content-Transfer-Encoding: 7bit
|
4365
|
+
|
4366
|
+
|
4367
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf
|
4368
|
+
Content-Type: text/html;
|
4369
|
+
charset=UTF-8
|
4370
|
+
Content-Transfer-Encoding: 7bit
|
4371
|
+
|
4372
|
+
<!DOCTYPE html>
|
4373
|
+
<html>
|
4374
|
+
<head>
|
4375
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
4376
|
+
</head>
|
4377
|
+
<body>
|
4378
|
+
<h1>Instructions</h1>
|
4379
|
+
<p>
|
4380
|
+
You have successfully signed up to example.com,
|
4381
|
+
your username is: elmer@fudd.com.<br/>
|
4382
|
+
</p>
|
4383
|
+
<p>Thanks for joining and have a great day!</p>
|
4384
|
+
</body>
|
4385
|
+
</html>
|
4386
|
+
|
4387
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf
|
4388
|
+
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
4389
|
+
Content-Transfer-Encoding: base64
|
4390
|
+
Content-Disposition: attachment;
|
4391
|
+
filename=user_1.xlsx
|
4392
|
+
Content-ID: <5b179296c398d_5b483fdf8985e1f4302c3@straydogstudio.local.mail>
|
4393
|
+
|
4394
|
+
UEsDBBQAAAAIAACAn+tjOGvU2QAAAEECAAALAAAAX3JlbHMvLnJlbHOtksFO
|
4395
|
+
wzAMhu88ReT7mm5ICKFluyCk3RAqD2ASt43axJEToLw9gQNiaAgOO1r2//3f
|
4396
|
+
wdv9Emb1QpI9RwPrpgVF0bLzcTDw2N2trmG/2z7QjKVe5NGnrGokZgNjKelG
|
4397
|
+
62xHCpgbThTrpmcJWOoog05oJxxIb9r2Sst3BhwzVYcyUDGwzPqVZXpinpoK
|
4398
|
+
A9W9JfpPFfe9t3TL9jlQLCcaf1yAOjgDcnBr0L+4OLb3wjVpWejcNoEKOiz4
|
4399
|
+
CV+l2kNSPOUvr83fXpjSubVoKRQduVNGlx9G+ugVdhfvUEsDBBQAAAAIAACA
|
4400
|
+
n+vvyqPEyAEAAAkFAAANAAAAeGwvc3R5bGVzLnhtbKVU22rcMBB971cIfUBl
|
4401
|
+
bZpAF8tQAoZCEwrJQ1+1a3lt0MVIcrDz9RlJri1DQ5bUD6vR2XPOjEZjl87P
|
4402
|
+
Ujx1Qng0Kakdw533w5EQd+6E4u6rGYSGf1pjFfewtRfiBit444JISXIoijui
|
4403
|
+
eK9xVepR1co7dDaj9gwfVgil5WfDMC0KjJLdvWkEwzM8RCnSNBiRfwroewLU
|
4404
|
+
dUeljs5FJVnSV2Vr9FYFxQkAa64EeuGS4R+25xKDxr0mgNKwa7nq5bwgASBJ
|
4405
|
+
GJfg20u5O10AqnLg3gura9igJX6eB6hUGy2ARTJCMIvLB9KL5TM93L6njgtU
|
4406
|
+
dDK2EXZXU4IQcFKUIVK0HsUrZ9h38crORhqL7OXEcF0X8UnNDNyqtP2lu1oS
|
4407
|
+
yVXpzXCtAqihPO+NulaS2NnplgCacRZSPgWXP+3u9qcWJU4YJ7DZZiuOol5D
|
4408
|
+
6OkSgu3Uwk9umRJk3jef857af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lc10ueG1sUEsBAjQDFAAAAAgAAICf62uS
|
4470
|
+
Pf7GAAAALwEAAA8AAAAAAAAAAQAAAKSBNAcAAHhsL3dvcmtib29rLnhtbFBL
|
4471
|
+
AQI0AxQAAAAIAACAn+vaKINqcwAAAIsAAAAjAAAAAAAAAAEAAACkgScIAAB4
|
4472
|
+
bC93b3Jrc2hlZXRzL19yZWxzL3NoZWV0MS54bWwucmVsc1BLAQI0AxQAAAAI
|
4473
|
+
AACAn+siPo8wvwIAAJEGAAAYAAAAAAAAAAEAAACkgdsIAAB4bC93b3Jrc2hl
|
4474
|
+
ZXRzL3NoZWV0MS54bWxQSwUGAAAAAAkACQBOAgAA0AsAAAAA
|
4475
|
+
|
4476
|
+
----==_mimepart_5b179296c1b2a_5b483fdf8985e1f4300cf--
|
4477
|
+
|
4478
|
+
Rendered text template (0.0ms)
|
4479
|
+
Completed 200 OK in 243ms (Views: 2.9ms | ActiveRecord: 0.1ms)
|
4480
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4481
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4482
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
4483
|
+
[1m[35m (1.1ms)[0m commit transaction
|
4484
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4485
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.813295"], ["updated_at", "2018-06-06 07:51:50.813295"]]
|
4486
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4487
|
+
Started GET "/users/export/2.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4488
|
+
Processing by UsersController#export as XLSX
|
4489
|
+
Parameters: {"id"=>"2"}
|
4490
|
+
Rendered users/export.xlsx.axlsx (5.0ms)
|
4491
|
+
Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
|
4492
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4493
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:50.842923"], ["updated_at", "2018-06-06 07:51:50.842923"]]
|
4494
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4495
|
+
Started GET "/" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4496
|
+
Processing by HomeController#index as HTML
|
4497
|
+
Rendered home/index.html.erb within layouts/application (0.6ms)
|
4498
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
|
4499
|
+
Started GET "/withpartial.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4500
|
+
Processing by HomeController#withpartial as XLSX
|
4501
|
+
Rendered home/_cover_sheet.xlsx.axlsx (3.8ms)
|
4502
|
+
Rendered home/withpartial.xlsx.axlsx (13.9ms)
|
4503
|
+
Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
|
4504
|
+
Started GET "/home.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4505
|
+
Processing by HomeController#index as XLSX
|
4506
|
+
Rendered home/index.xlsx.axlsx (5.1ms)
|
4507
|
+
Completed 200 OK in 7ms (Views: 6.7ms | ActiveRecord: 0.0ms)
|
4508
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4509
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4510
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 2]]
|
4511
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4512
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4513
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
|
4514
|
+
[1m[36m (0.4ms)[0m [1mcommit transaction[0m
|
4515
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4516
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Responder"], ["last_name", "Bunny"], ["address", "1234 Right Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.908722"], ["updated_at", "2018-06-06 07:51:50.908722"]]
|
4517
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4518
|
+
Started GET "/users/4.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4519
|
+
Processing by UsersController#show as XLSX
|
4520
|
+
Parameters: {"id"=>"4"}
|
4521
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 4]]
|
4522
|
+
Rendered users/respond_with.xlsx.axlsx (6.7ms)
|
4523
|
+
Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.1ms)
|
4524
|
+
Started GET "/another" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4525
|
+
Processing by HomeController#another as */*
|
4526
|
+
Rendered home/index.html.erb (0.7ms)
|
4527
|
+
Rendered text template (0.0ms)
|
4528
|
+
Sent data filename_test.xlsx (0.3ms)
|
4529
|
+
Completed 200 OK in 12ms (Views: 11.9ms | ActiveRecord: 0.0ms)
|
4530
|
+
Started GET "/home/only_html" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4531
|
+
Processing by HomeController#only_html as */*
|
4532
|
+
Rendered home/only_html.html.erb within layouts/application (0.3ms)
|
4533
|
+
Completed 200 OK in 13ms (Views: 13.3ms | ActiveRecord: 0.0ms)
|
4534
|
+
Started GET "/another" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4535
|
+
Processing by HomeController#another as HTML
|
4536
|
+
Rendered home/index.html.erb (2.5ms)
|
4537
|
+
Rendered text template (0.0ms)
|
4538
|
+
Sent data filename_test.xlsx (0.3ms)
|
4539
|
+
Completed 200 OK in 4ms (Views: 4.1ms | ActiveRecord: 0.0ms)
|
4540
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4541
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4542
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
|
4543
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4544
|
+
[1m[35m (0.1ms)[0m begin transaction
|
4545
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:50.974070"], ["updated_at", "2018-06-06 07:51:50.974070"]]
|
4546
|
+
[1m[35m (1.2ms)[0m commit transaction
|
4547
|
+
Started GET "/users/5/render_elsewhere.xlsx" for 127.0.0.1 at 2018-06-06 00:51:50 -0700
|
4548
|
+
Processing by LikesController#render_elsewhere as XLSX
|
4549
|
+
Parameters: {"user_id"=>"5"}
|
4550
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 5]]
|
4551
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4552
|
+
Rendered users/index.xlsx.axlsx (6.1ms)
|
4553
|
+
Rendered text template (0.0ms)
|
4554
|
+
Sent data index.xlsx (0.3ms)
|
4555
|
+
Completed 200 OK in 11ms (Views: 10.9ms | ActiveRecord: 0.2ms)
|
4556
|
+
Started GET "/home/render_elsewhere.xlsx?type=5" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4557
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4558
|
+
Parameters: {"type"=>"5"}
|
4559
|
+
Rendered home/index.xlsx.axlsx (4.8ms)
|
4560
|
+
Rendered text template (0.0ms)
|
4561
|
+
Sent data index.xlsx (0.3ms)
|
4562
|
+
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
4563
|
+
Started GET "/home/render_elsewhere.xlsx?type=4" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4564
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4565
|
+
Parameters: {"type"=>"4"}
|
4566
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4567
|
+
Rendered users/index.xlsx.axlsx (5.1ms)
|
4568
|
+
Completed 200 OK in 6ms (Views: 6.2ms | ActiveRecord: 0.1ms)
|
4569
|
+
Started GET "/home/render_elsewhere.xlsx?type=3" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4570
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4571
|
+
Parameters: {"type"=>"3"}
|
4572
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4573
|
+
Rendered users/index.xlsx.axlsx (6.6ms)
|
4574
|
+
Completed 200 OK in 7ms (Views: 6.9ms | ActiveRecord: 0.1ms)
|
4575
|
+
Started GET "/home/render_elsewhere.xlsx?type=1" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4576
|
+
Processing by HomeController#render_elsewhere as XLSX
|
4577
|
+
Parameters: {"type"=>"1"}
|
4578
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4579
|
+
Rendered users/index.xlsx.axlsx (7.0ms)
|
4580
|
+
Rendered text template (0.0ms)
|
4581
|
+
Sent data index.xlsx (0.2ms)
|
4582
|
+
Completed 200 OK in 8ms (Views: 7.9ms | ActiveRecord: 0.1ms)
|
4583
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4584
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4585
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
|
4586
|
+
[1m[36m (1.3ms)[0m [1mcommit transaction[0m
|
4587
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4588
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.059842"], ["updated_at", "2018-06-06 07:51:51.059842"]]
|
4589
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4590
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4591
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Carrots"], ["user_id", 6], ["created_at", "2018-06-06 07:51:51.078087"], ["updated_at", "2018-06-06 07:51:51.078087"]]
|
4592
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4593
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4594
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Celery"], ["user_id", 6], ["created_at", "2018-06-06 07:51:51.080607"], ["updated_at", "2018-06-06 07:51:51.080607"]]
|
4595
|
+
[1m[35m (1.4ms)[0m commit transaction
|
4596
|
+
Started GET "/users/6/likes.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4597
|
+
Processing by LikesController#index as XLSX
|
4598
|
+
Parameters: {"user_id"=>"6"}
|
4599
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 6]]
|
4600
|
+
[1m[35mLike Load (0.1ms)[0m SELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ? [["user_id", 6]]
|
4601
|
+
Rendered likes/index.xlsx.axlsx (4.7ms)
|
4602
|
+
Completed 200 OK in 9ms (Views: 7.6ms | ActiveRecord: 0.2ms)
|
4603
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4604
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4605
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 6]]
|
4606
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4607
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4608
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:51.101752"], ["updated_at", "2018-06-06 07:51:51.101752"]]
|
4609
|
+
[1m[36m (1.1ms)[0m [1mcommit transaction[0m
|
4610
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4611
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.104207"], ["updated_at", "2018-06-06 07:51:51.104207"]]
|
4612
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4613
|
+
Started GET "/users/noaction.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4614
|
+
Processing by UsersController#noaction as XLSX
|
4615
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4616
|
+
Rendered users/noaction.xlsx.axlsx (5.8ms)
|
4617
|
+
Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.6ms)
|
4618
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users"
|
4619
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4620
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
|
4621
|
+
[1m[36m (1.0ms)[0m [1mcommit transaction[0m
|
4622
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4623
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 8]]
|
4624
|
+
[1m[35m (1.0ms)[0m commit transaction
|
4625
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
4626
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["name", "Elmer"], ["last_name", "Fudd"], ["address", "1234 Somewhere, Over NY 11111"], ["email", "elmer@fudd.com"], ["created_at", "2018-06-06 07:51:51.135158"], ["updated_at", "2018-06-06 07:51:51.135158"]]
|
4627
|
+
[1m[36m (1.2ms)[0m [1mcommit transaction[0m
|
4628
|
+
[1m[35m (0.0ms)[0m begin transaction
|
4629
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "Bugs"], ["last_name", "Bunny"], ["address", "1234 Left Turn, Albuquerque NM 22222"], ["email", "bugs@bunny.com"], ["created_at", "2018-06-06 07:51:51.138390"], ["updated_at", "2018-06-06 07:51:51.138390"]]
|
4630
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4631
|
+
Started GET "/users.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4632
|
+
Processing by UsersController#index as XLSX
|
4633
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
4634
|
+
Rendered users/index.xlsx.axlsx (4.7ms)
|
4635
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.1ms)
|
4636
|
+
Started GET "/useheader.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4637
|
+
Processing by HomeController#useheader as XLSX
|
4638
|
+
Rendered home/useheader.xlsx.axlsx (4.9ms)
|
4639
|
+
Rendered text template (0.0ms)
|
4640
|
+
Sent data filename_test.xlsx (0.3ms)
|
4641
|
+
Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
4642
|
+
Started GET "/useheader.xlsx?set_direct=true" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4643
|
+
Processing by HomeController#useheader as XLSX
|
4644
|
+
Parameters: {"set_direct"=>"true"}
|
4645
|
+
Rendered home/useheader.xlsx.axlsx (7.1ms)
|
4646
|
+
Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms)
|
4647
|
+
Started GET "/another.xlsx" for 127.0.0.1 at 2018-06-06 00:51:51 -0700
|
4648
|
+
Processing by HomeController#another as XLSX
|
4649
|
+
Rendered home/index.xlsx.axlsx (5.8ms)
|
4650
|
+
Rendered text template (0.0ms)
|
4651
|
+
Sent data filename_test.xlsx (0.3ms)
|
4652
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
Binary file
|
data/spec/dummy_5/log/test.log
CHANGED
@@ -3638,3 +3638,8 @@ Processing by LikesController#index as XLSX
|
|
3638
3638
|
[1m[36mLike Load (0.2ms)[0m [1m[34mSELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ?[0m [["user_id", 226]]
|
3639
3639
|
Rendered likes/index.xlsx.axlsx (6.4ms)
|
3640
3640
|
Completed 200 OK in 10ms (Views: 7.6ms | ActiveRecord: 0.2ms)
|
3641
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3642
|
+
[1m[35m (24.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
3643
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
3644
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
3645
|
+
Migrating to CreateUsers (20120717192452)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
9
|
+
* compiled file so the styles you add here take precedence over styles defined in any styles
|
10
|
+
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
|
11
|
+
* file per style scope.
|
12
|
+
*
|
13
|
+
*= require_tree .
|
14
|
+
*= require_self
|
15
|
+
*/
|
@@ -0,0 +1,56 @@
|
|
1
|
+
#---
|
2
|
+
# Excerpted from "Crafting Rails Applications",
|
3
|
+
# published by The Pragmatic Bookshelf.
|
4
|
+
# Copyrights apply to this code. It may not be used to create training material,
|
5
|
+
# courses, books, articles, and the like. Contact us if you are in doubt.
|
6
|
+
# We make no guarantees that this code is fit for any purpose.
|
7
|
+
# Visit http://www.pragmaticprogrammer.com/titles/jvrails for more book information.
|
8
|
+
#---
|
9
|
+
class HomeController < ApplicationController
|
10
|
+
def index
|
11
|
+
respond_to do |format|
|
12
|
+
format.html
|
13
|
+
format.xlsx
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def only_html; end
|
18
|
+
|
19
|
+
def another
|
20
|
+
render :xlsx => "index", :filename => "filename_test.xlsx"
|
21
|
+
end
|
22
|
+
|
23
|
+
def render_elsewhere
|
24
|
+
case params[:type]
|
25
|
+
when '1'
|
26
|
+
render :xlsx => "home/index", :template => 'users/index'
|
27
|
+
when '2'
|
28
|
+
render :xlsx => "users/index", :template => 'users/index'
|
29
|
+
when '3'
|
30
|
+
render template: "users/index"
|
31
|
+
when '4'
|
32
|
+
render "users/index"
|
33
|
+
else
|
34
|
+
render :xlsx => "index"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def render_file_path
|
39
|
+
render :xlsx => Rails.root.join('app','views','users','index')
|
40
|
+
end
|
41
|
+
|
42
|
+
def withpartial
|
43
|
+
end
|
44
|
+
|
45
|
+
def useheader
|
46
|
+
respond_to do |format|
|
47
|
+
format.xlsx {
|
48
|
+
if params[:set_direct]
|
49
|
+
response.headers['Content-Disposition'] = "attachment; filename=\"filename_test.xlsx\""
|
50
|
+
else
|
51
|
+
render xlsx: "useheader", filename: "filename_test.xlsx"
|
52
|
+
end
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class LikesController < ApplicationController
|
2
|
+
# GET /likes
|
3
|
+
# GET /likes.json
|
4
|
+
def index
|
5
|
+
@user = User.find(params[:user_id])
|
6
|
+
@likes = @user.likes
|
7
|
+
|
8
|
+
respond_to do |format|
|
9
|
+
format.html # index.html.erb
|
10
|
+
format.xlsx
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def render_elsewhere
|
15
|
+
@user = User.find(params[:user_id])
|
16
|
+
render :xlsx => "index", :template => 'users/index'
|
17
|
+
end
|
18
|
+
end
|