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.
Files changed (263) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +9 -1
  3. data/Gemfile +22 -9
  4. data/Gemfile.lock +155 -137
  5. data/Gemfile.lock.4.2 +3 -3
  6. data/Gemfile.lock.5.1 +2 -2
  7. data/{Gemfile.lock.5.0 → Gemfile.lock.5.2} +23 -68
  8. data/README.md +63 -38
  9. data/lib/axlsx_rails/template_handler.rb +10 -3
  10. data/lib/axlsx_rails/version.rb +1 -1
  11. data/lib/axlsx_rails.rb +2 -0
  12. data/spec/axlsx_builder_spec.rb +15 -2
  13. data/spec/axlsx_request_spec.rb +16 -13
  14. data/spec/ci.rb +8 -5
  15. data/spec/dummy/config/application.rb +1 -1
  16. data/spec/dummy/config/environments/development.rb +2 -2
  17. data/spec/dummy_4/db/test.sqlite3 +0 -0
  18. data/spec/dummy_4/log/test.log +326 -0
  19. data/spec/dummy_5/db/test.sqlite3 +0 -0
  20. data/spec/dummy_5/log/test.log +5 -0
  21. data/spec/{dummy_5 → dummy_5.0}/Rakefile +0 -0
  22. data/spec/{dummy_5 → dummy_5.0}/app/assets/javascripts/application.js +0 -0
  23. data/spec/{dummy_5 → dummy_5.0}/app/assets/stylesheets/application.css +0 -0
  24. data/spec/{dummy_5 → dummy_5.0}/app/controllers/application_controller.rb +0 -0
  25. data/spec/{dummy_5 → dummy_5.0}/app/controllers/home_controller.rb +0 -0
  26. data/spec/{dummy_5 → dummy_5.0}/app/controllers/likes_controller.rb +0 -0
  27. data/spec/{dummy_5 → dummy_5.0}/app/controllers/users_controller.rb +0 -0
  28. data/spec/{dummy_5 → dummy_5.0}/app/helpers/application_helper.rb +0 -0
  29. data/spec/{dummy_5 → dummy_5.0}/app/mailers/notifier.rb +0 -0
  30. data/spec/{dummy_5 → dummy_5.0}/app/models/like.rb +0 -0
  31. data/spec/{dummy_5 → dummy_5.0}/app/models/user.rb +0 -0
  32. data/spec/{dummy_5 → dummy_5.0}/app/views/home/_cover_sheet.xlsx.axlsx +0 -0
  33. data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.html.erb +0 -0
  34. data/spec/{dummy_5 → dummy_5.0}/app/views/home/index.xlsx.axlsx +0 -0
  35. data/spec/{dummy_5 → dummy_5.0}/app/views/home/only_html.html.erb +0 -0
  36. data/spec/{dummy_5 → dummy_5.0}/app/views/home/useheader.xlsx.axlsx +0 -0
  37. data/spec/{dummy_5 → dummy_5.0}/app/views/home/withpartial.xlsx.axlsx +0 -0
  38. data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/application.html.erb +0 -0
  39. data/spec/{dummy_5 → dummy_5.0}/app/views/layouts/users.html.erb +0 -0
  40. data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.html.erb +0 -0
  41. data/spec/{dummy_5 → dummy_5.0}/app/views/likes/index.xlsx.axlsx +0 -0
  42. data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.html.erb +0 -0
  43. data/spec/{dummy_5 → dummy_5.0}/app/views/notifier/instructions.txt.erb +0 -0
  44. data/spec/{dummy_5 → dummy_5.0}/app/views/users/export.xlsx.axlsx +0 -0
  45. data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.html.erb +0 -0
  46. data/spec/{dummy_5 → dummy_5.0}/app/views/users/index.xlsx.axlsx +0 -0
  47. data/spec/{dummy_5 → dummy_5.0}/app/views/users/noaction.xlsx.axlsx +0 -0
  48. data/spec/{dummy_5 → dummy_5.0}/app/views/users/respond_with.xlsx.axlsx +0 -0
  49. data/spec/{dummy_5 → dummy_5.0}/app/views/users/send_instructions.xlsx.axlsx +0 -0
  50. data/spec/{dummy_5 → dummy_5.0}/bin/bundle +0 -0
  51. data/spec/{dummy_5 → dummy_5.0}/bin/rails +0 -0
  52. data/spec/{dummy_5 → dummy_5.0}/bin/rake +0 -0
  53. data/spec/{dummy_5 → dummy_5.0}/config/application.rb +0 -0
  54. data/spec/{dummy_5 → dummy_5.0}/config/boot.rb +0 -0
  55. data/spec/{dummy_5 → dummy_5.0}/config/database.yml +0 -0
  56. data/spec/{dummy_5 → dummy_5.0}/config/environment.rb +0 -0
  57. data/spec/{dummy_5 → dummy_5.0}/config/environments/development.rb +0 -0
  58. data/spec/{dummy_5 → dummy_5.0}/config/environments/production.rb +0 -0
  59. data/spec/{dummy_5 → dummy_5.0}/config/environments/test.rb +0 -0
  60. data/spec/{dummy_5 → dummy_5.0}/config/initializers/backtrace_silencers.rb +0 -0
  61. data/spec/{dummy_5 → dummy_5.0}/config/initializers/cookies_serializer.rb +0 -0
  62. data/spec/{dummy_5 → dummy_5.0}/config/initializers/filter_parameter_logging.rb +0 -0
  63. data/spec/{dummy_5 → dummy_5.0}/config/initializers/inflections.rb +0 -0
  64. data/spec/{dummy_5 → dummy_5.0}/config/initializers/mime_types.rb +0 -0
  65. data/spec/{dummy_5 → dummy_5.0}/config/initializers/secret_token.rb +0 -0
  66. data/spec/{dummy_5 → dummy_5.0}/config/initializers/session_store.rb +0 -0
  67. data/spec/{dummy_5 → dummy_5.0}/config/initializers/wrap_parameters.rb +0 -0
  68. data/spec/{dummy_5 → dummy_5.0}/config/locales/en.yml +0 -0
  69. data/spec/{dummy_5 → dummy_5.0}/config/routes.rb +0 -0
  70. data/spec/{dummy_5 → dummy_5.0}/config/secrets.yml +0 -0
  71. data/spec/{dummy_5 → dummy_5.0}/config.ru +0 -0
  72. data/spec/{dummy_5 → dummy_5.0}/db/migrate/20120717192452_create_users.rb +0 -0
  73. data/spec/{dummy_5 → dummy_5.0}/db/migrate/20121206210955_create_likes.rb +0 -0
  74. data/spec/{dummy_5 → dummy_5.0}/db/schema.rb +0 -0
  75. data/spec/{dummy_5 → dummy_5.0}/public/404.html +0 -0
  76. data/spec/{dummy_5 → dummy_5.0}/public/422.html +0 -0
  77. data/spec/{dummy_5 → dummy_5.0}/public/500.html +0 -0
  78. data/spec/{dummy_5 → dummy_5.0}/public/favicon.ico +0 -0
  79. data/spec/dummy_5.1/Rakefile +6 -0
  80. data/spec/dummy_5.1/app/assets/javascripts/application.js +13 -0
  81. data/spec/dummy_5.1/app/assets/stylesheets/application.css +15 -0
  82. data/spec/dummy_5.1/app/controllers/application_controller.rb +5 -0
  83. data/spec/dummy_5.1/app/controllers/home_controller.rb +56 -0
  84. data/spec/dummy_5.1/app/controllers/likes_controller.rb +18 -0
  85. data/spec/dummy_5.1/app/controllers/users_controller.rb +37 -0
  86. data/spec/dummy_5.1/app/helpers/application_helper.rb +2 -0
  87. data/spec/dummy_5.1/app/mailers/notifier.rb +14 -0
  88. data/spec/dummy_5.1/app/models/like.rb +3 -0
  89. data/spec/dummy_5.1/app/models/user.rb +10 -0
  90. data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
  91. data/spec/dummy_5.1/app/views/home/index.html.erb +4 -0
  92. data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +8 -0
  93. data/spec/dummy_5.1/app/views/home/only_html.html.erb +1 -0
  94. data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +8 -0
  95. data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +9 -0
  96. data/spec/dummy_5.1/app/views/layouts/application.html.erb +12 -0
  97. data/spec/dummy_5.1/app/views/layouts/users.html.erb +12 -0
  98. data/spec/dummy_5.1/app/views/likes/index.html.erb +17 -0
  99. data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +7 -0
  100. data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +14 -0
  101. data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +6 -0
  102. data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +8 -0
  103. data/spec/dummy_5.1/app/views/users/index.html.erb +23 -0
  104. data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +1 -0
  105. data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +1 -0
  106. data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +8 -0
  107. data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +5 -0
  108. data/spec/dummy_5.1/bin/bundle +3 -0
  109. data/spec/dummy_5.1/bin/rails +4 -0
  110. data/spec/dummy_5.1/bin/rake +4 -0
  111. data/spec/dummy_5.1/config/application.rb +23 -0
  112. data/spec/dummy_5.1/config/boot.rb +5 -0
  113. data/spec/dummy_5.1/config/database.yml +25 -0
  114. data/spec/dummy_5.1/config/environment.rb +5 -0
  115. data/spec/dummy_5.1/config/environments/development.rb +37 -0
  116. data/spec/dummy_5.1/config/environments/production.rb +83 -0
  117. data/spec/dummy_5.1/config/environments/test.rb +40 -0
  118. data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +7 -0
  119. data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +3 -0
  120. data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +4 -0
  121. data/spec/dummy_5.1/config/initializers/inflections.rb +16 -0
  122. data/spec/dummy_5.1/config/initializers/mime_types.rb +4 -0
  123. data/spec/dummy_5.1/config/initializers/secret_token.rb +2 -0
  124. data/spec/dummy_5.1/config/initializers/session_store.rb +3 -0
  125. data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +14 -0
  126. data/spec/dummy_5.1/config/locales/en.yml +23 -0
  127. data/spec/dummy_5.1/config/routes.rb +17 -0
  128. data/spec/dummy_5.1/config/secrets.yml +22 -0
  129. data/spec/dummy_5.1/config.ru +4 -0
  130. data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +12 -0
  131. data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +10 -0
  132. data/spec/dummy_5.1/db/schema.rb +31 -0
  133. data/spec/dummy_5.1/db/test.sqlite3 +0 -0
  134. data/spec/dummy_5.1/log/test.log +3645 -0
  135. data/spec/dummy_5.1/public/404.html +67 -0
  136. data/spec/dummy_5.1/public/422.html +67 -0
  137. data/spec/dummy_5.1/public/500.html +66 -0
  138. data/spec/dummy_5.1/public/favicon.ico +0 -0
  139. data/spec/dummy_5.2/Rakefile +6 -0
  140. data/spec/dummy_5.2/app/assets/javascripts/application.js +13 -0
  141. data/spec/dummy_5.2/app/assets/stylesheets/application.css +15 -0
  142. data/spec/dummy_5.2/app/controllers/application_controller.rb +5 -0
  143. data/spec/dummy_5.2/app/controllers/home_controller.rb +56 -0
  144. data/spec/dummy_5.2/app/controllers/likes_controller.rb +18 -0
  145. data/spec/dummy_5.2/app/controllers/users_controller.rb +37 -0
  146. data/spec/dummy_5.2/app/helpers/application_helper.rb +2 -0
  147. data/spec/dummy_5.2/app/mailers/notifier.rb +14 -0
  148. data/spec/dummy_5.2/app/models/like.rb +3 -0
  149. data/spec/dummy_5.2/app/models/user.rb +10 -0
  150. data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
  151. data/spec/dummy_5.2/app/views/home/index.html.erb +4 -0
  152. data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +8 -0
  153. data/spec/dummy_5.2/app/views/home/only_html.html.erb +1 -0
  154. data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +8 -0
  155. data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +9 -0
  156. data/spec/dummy_5.2/app/views/layouts/application.html.erb +12 -0
  157. data/spec/dummy_5.2/app/views/layouts/users.html.erb +12 -0
  158. data/spec/dummy_5.2/app/views/likes/index.html.erb +17 -0
  159. data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +7 -0
  160. data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +14 -0
  161. data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +6 -0
  162. data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +8 -0
  163. data/spec/dummy_5.2/app/views/users/index.html.erb +23 -0
  164. data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +1 -0
  165. data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +1 -0
  166. data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +8 -0
  167. data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +5 -0
  168. data/spec/dummy_5.2/bin/bundle +3 -0
  169. data/spec/dummy_5.2/bin/rails +4 -0
  170. data/spec/dummy_5.2/bin/rake +4 -0
  171. data/spec/dummy_5.2/config/application.rb +23 -0
  172. data/spec/dummy_5.2/config/boot.rb +5 -0
  173. data/spec/dummy_5.2/config/database.yml +25 -0
  174. data/spec/dummy_5.2/config/environment.rb +5 -0
  175. data/spec/dummy_5.2/config/environments/development.rb +37 -0
  176. data/spec/dummy_5.2/config/environments/production.rb +83 -0
  177. data/spec/dummy_5.2/config/environments/test.rb +40 -0
  178. data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +7 -0
  179. data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +3 -0
  180. data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +4 -0
  181. data/spec/dummy_5.2/config/initializers/inflections.rb +16 -0
  182. data/spec/dummy_5.2/config/initializers/mime_types.rb +4 -0
  183. data/spec/dummy_5.2/config/initializers/secret_token.rb +2 -0
  184. data/spec/dummy_5.2/config/initializers/session_store.rb +3 -0
  185. data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +14 -0
  186. data/spec/dummy_5.2/config/locales/en.yml +23 -0
  187. data/spec/dummy_5.2/config/routes.rb +17 -0
  188. data/spec/dummy_5.2/config/secrets.yml +22 -0
  189. data/spec/dummy_5.2/config.ru +4 -0
  190. data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +12 -0
  191. data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +10 -0
  192. data/spec/dummy_5.2/db/schema.rb +31 -0
  193. data/spec/dummy_5.2/db/test.sqlite3 +0 -0
  194. data/spec/dummy_5.2/log/test.log +3645 -0
  195. data/spec/dummy_5.2/public/404.html +67 -0
  196. data/spec/dummy_5.2/public/422.html +67 -0
  197. data/spec/dummy_5.2/public/500.html +66 -0
  198. data/spec/dummy_5.2/public/favicon.ico +0 -0
  199. data/spec/dummy_6.0/Rakefile +6 -0
  200. data/spec/dummy_6.0/app/assets/javascripts/application.js +13 -0
  201. data/spec/dummy_6.0/app/assets/stylesheets/application.css +15 -0
  202. data/spec/dummy_6.0/app/controllers/application_controller.rb +5 -0
  203. data/spec/dummy_6.0/app/controllers/home_controller.rb +56 -0
  204. data/spec/dummy_6.0/app/controllers/likes_controller.rb +18 -0
  205. data/spec/dummy_6.0/app/controllers/users_controller.rb +37 -0
  206. data/spec/dummy_6.0/app/helpers/application_helper.rb +2 -0
  207. data/spec/dummy_6.0/app/mailers/notifier.rb +14 -0
  208. data/spec/dummy_6.0/app/models/like.rb +3 -0
  209. data/spec/dummy_6.0/app/models/user.rb +10 -0
  210. data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +3 -0
  211. data/spec/dummy_6.0/app/views/home/index.html.erb +4 -0
  212. data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +8 -0
  213. data/spec/dummy_6.0/app/views/home/only_html.html.erb +1 -0
  214. data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +8 -0
  215. data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +9 -0
  216. data/spec/dummy_6.0/app/views/layouts/application.html.erb +12 -0
  217. data/spec/dummy_6.0/app/views/layouts/users.html.erb +12 -0
  218. data/spec/dummy_6.0/app/views/likes/index.html.erb +17 -0
  219. data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +7 -0
  220. data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +14 -0
  221. data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +6 -0
  222. data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +8 -0
  223. data/spec/dummy_6.0/app/views/users/index.html.erb +23 -0
  224. data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +1 -0
  225. data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +1 -0
  226. data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +8 -0
  227. data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +5 -0
  228. data/spec/dummy_6.0/bin/bundle +3 -0
  229. data/spec/dummy_6.0/bin/rails +4 -0
  230. data/spec/dummy_6.0/bin/rake +4 -0
  231. data/spec/dummy_6.0/config/application.rb +23 -0
  232. data/spec/dummy_6.0/config/boot.rb +5 -0
  233. data/spec/dummy_6.0/config/database.yml +25 -0
  234. data/spec/dummy_6.0/config/environment.rb +5 -0
  235. data/spec/dummy_6.0/config/environments/development.rb +37 -0
  236. data/spec/dummy_6.0/config/environments/production.rb +83 -0
  237. data/spec/dummy_6.0/config/environments/test.rb +40 -0
  238. data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +7 -0
  239. data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +3 -0
  240. data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +4 -0
  241. data/spec/dummy_6.0/config/initializers/inflections.rb +16 -0
  242. data/spec/dummy_6.0/config/initializers/mime_types.rb +4 -0
  243. data/spec/dummy_6.0/config/initializers/secret_token.rb +2 -0
  244. data/spec/dummy_6.0/config/initializers/session_store.rb +3 -0
  245. data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +14 -0
  246. data/spec/dummy_6.0/config/locales/en.yml +23 -0
  247. data/spec/dummy_6.0/config/routes.rb +17 -0
  248. data/spec/dummy_6.0/config/secrets.yml +22 -0
  249. data/spec/dummy_6.0/config.ru +4 -0
  250. data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +12 -0
  251. data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +10 -0
  252. data/spec/dummy_6.0/db/schema.rb +31 -0
  253. data/spec/dummy_6.0/public/404.html +67 -0
  254. data/spec/dummy_6.0/public/422.html +67 -0
  255. data/spec/dummy_6.0/public/500.html +66 -0
  256. data/spec/dummy_6.0/public/favicon.ico +0 -0
  257. data/spec/spec_helper.rb +12 -3
  258. data/spec/test_5.0.sh +1 -1
  259. data/spec/test_5.1.sh +1 -1
  260. data/spec/test_5.2.sh +16 -0
  261. data/spec/test_6.0.sh +16 -0
  262. data/spec/test_all_rails.sh +4 -2
  263. metadata +564 -231
@@ -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
+  (1.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
4328
+  (0.1ms) select sqlite_version(*)
4329
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4330
+ ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
4331
+ Migrating to CreateUsers (20120717192452)
4332
+  (0.0ms) begin transaction
4333
+  (0.3ms) 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
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20120717192452"]]
4335
+  (0.7ms) commit transaction
4336
+ Migrating to CreateLikes (20121206210955)
4337
+  (0.0ms) begin transaction
4338
+  (0.3ms) CREATE TABLE "likes" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "user_id" integer, "created_at" datetime, "updated_at" datetime)
4339
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20121206210955"]]
4340
+  (0.7ms) commit transaction
4341
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4342
+  (0.1ms) begin transaction
4343
+ SQL (0.3ms) 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
+  (1.3ms) commit transaction
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
+ User Load (0.1ms) 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
+ 6OkSgu3Uwk9umRJk3jef857afZKdBf1/i10V9NuHHnwY5Pw4qpOwdXz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dsIAAB4bC93b3Jrc2hl
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
+ User Load (0.2ms) SELECT "users".* FROM "users"
4481
+  (0.0ms) begin transaction
4482
+ SQL (0.5ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
4483
+  (1.1ms) commit transaction
4484
+  (0.0ms) begin transaction
4485
+ SQL (0.2ms) 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
+  (1.0ms) commit transaction
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
+  (0.1ms) begin transaction
4493
+ SQL (0.3ms) 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.842923"], ["updated_at", "2018-06-06 07:51:50.842923"]]
4494
+  (0.9ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
4509
+  (0.0ms) begin transaction
4510
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 2]]
4511
+  (0.9ms) commit transaction
4512
+  (0.0ms) begin transaction
4513
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 3]]
4514
+  (0.4ms) commit transaction
4515
+  (0.0ms) begin transaction
4516
+ SQL (0.3ms) 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.908722"], ["updated_at", "2018-06-06 07:51:50.908722"]]
4517
+  (1.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["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
+ User Load (0.1ms) SELECT "users".* FROM "users"
4541
+  (0.0ms) begin transaction
4542
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 4]]
4543
+  (1.1ms) commit transaction
4544
+  (0.1ms) begin transaction
4545
+ SQL (0.2ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (1.2ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 5]]
4551
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
+ User Load (0.1ms) SELECT "users".* FROM "users"
4584
+  (0.0ms) begin transaction
4585
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 5]]
4586
+  (1.3ms) commit transaction
4587
+  (0.0ms) begin transaction
4588
+ SQL (0.4ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (1.0ms) commit transaction
4590
+  (0.0ms) begin transaction
4591
+ SQL (0.2ms) 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
+  (1.0ms) commit transaction
4593
+  (0.0ms) begin transaction
4594
+ SQL (0.1ms) INSERT INTO "likes" ("name", "user_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "Celery"], ["user_id", 6], ["created_at", "2018-06-06 07:51:51.080607"], ["updated_at", "2018-06-06 07:51:51.080607"]]
4595
+  (1.4ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 6]]
4600
+ Like Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
4604
+  (0.0ms) begin transaction
4605
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 6]]
4606
+  (1.0ms) commit transaction
4607
+  (0.0ms) begin transaction
4608
+ SQL (0.2ms) 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
+  (1.1ms) commit transaction
4610
+  (0.0ms) begin transaction
4611
+ SQL (0.2ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.9ms) 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
+ User Load (0.6ms) SELECT "users".* FROM "users"
4616
+ Rendered users/noaction.xlsx.axlsx (5.8ms)
4617
+ Completed 200 OK in 7ms (Views: 6.6ms | ActiveRecord: 0.6ms)
4618
+ User Load (0.1ms) SELECT "users".* FROM "users"
4619
+  (0.0ms) begin transaction
4620
+ SQL (0.1ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 7]]
4621
+  (1.0ms) commit transaction
4622
+  (0.0ms) begin transaction
4623
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 8]]
4624
+  (1.0ms) commit transaction
4625
+  (0.2ms) begin transaction
4626
+ SQL (0.3ms) 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
+  (1.2ms) commit transaction
4628
+  (0.0ms) begin transaction
4629
+ SQL (0.2ms) INSERT INTO "users" ("name", "last_name", "address", "email", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["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
+  (0.9ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users"
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
@@ -3638,3 +3638,8 @@ Processing by LikesController#index as XLSX
3638
3638
  Like Load (0.2ms) SELECT "likes".* FROM "likes" WHERE "likes"."user_id" = ? [["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
+  (0.1ms) SELECT sqlite_version(*)
3642
+  (24.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
3643
+  (0.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3644
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
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
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -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,5 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -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