rails_custom_error_pages 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +7 -0
  4. data/app/assets/javascripts/rails_custom_error_pages/application.js +13 -0
  5. data/app/assets/stylesheets/rails_custom_error_pages/application.scss +6 -0
  6. data/app/controllers/rails_custom_error_pages/application_controller.rb +5 -0
  7. data/app/controllers/rails_custom_error_pages/errors_controller.rb +13 -0
  8. data/app/helpers/rails_custom_error_pages/application_helper.rb +4 -0
  9. data/app/views/layouts/rails_custom_error_pages/application.html.erb +14 -0
  10. data/app/views/rails_custom_error_pages/errors/show.html.erb +20 -0
  11. data/config/initializers/error_pages.rb +1 -0
  12. data/config/locales/en.yml +11 -0
  13. data/config/locales/pl.yml +11 -0
  14. data/config/routes.rb +2 -0
  15. data/lib/generators/rails_custom_error_pages/views_generator.rb +15 -0
  16. data/lib/rails_custom_error_pages/engine.rb +7 -0
  17. data/lib/rails_custom_error_pages/version.rb +3 -0
  18. data/lib/rails_custom_error_pages.rb +4 -0
  19. data/lib/tasks/rails_custom_error_pages_tasks.rake +4 -0
  20. data/spec/dummy/README.rdoc +28 -0
  21. data/spec/dummy/Rakefile +6 -0
  22. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  23. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  24. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  25. data/spec/dummy/app/controllers/errors_controller.rb +2 -0
  26. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/bin/bundle +3 -0
  29. data/spec/dummy/bin/rails +4 -0
  30. data/spec/dummy/bin/rake +4 -0
  31. data/spec/dummy/bin/setup +29 -0
  32. data/spec/dummy/config/application.rb +26 -0
  33. data/spec/dummy/config/boot.rb +5 -0
  34. data/spec/dummy/config/database.yml +25 -0
  35. data/spec/dummy/config/environment.rb +5 -0
  36. data/spec/dummy/config/environments/development.rb +41 -0
  37. data/spec/dummy/config/environments/production.rb +79 -0
  38. data/spec/dummy/config/environments/test.rb +42 -0
  39. data/spec/dummy/config/initializers/assets.rb +11 -0
  40. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  42. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/spec/dummy/config/initializers/inflections.rb +16 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  45. data/spec/dummy/config/initializers/session_store.rb +3 -0
  46. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  47. data/spec/dummy/config/locales/en.yml +23 -0
  48. data/spec/dummy/config/routes.rb +3 -0
  49. data/spec/dummy/config/secrets.yml +22 -0
  50. data/spec/dummy/config.ru +4 -0
  51. data/spec/dummy/db/test.sqlite3 +0 -0
  52. data/spec/dummy/log/test.log +5882 -0
  53. data/spec/dummy/public/404.html +67 -0
  54. data/spec/dummy/public/422.html +67 -0
  55. data/spec/dummy/public/500.html +66 -0
  56. data/spec/dummy/public/favicon.ico +0 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0F/0FAZ2MYVsvXum2XdmD7HwNP0rZwif6c2KQec6vMfdHM.cache +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0j/0jQgqUeToNlxZaYm4GsY6jUwuGhidFgmJf_up-dGHfA.cache +0 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pLutbisc7OF97LhI8sUwwwRGdsWTWWeJ06imDPamHc.cache +1 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/1m/1mAH47io_AJGhG6twQzwTf9-Q7-h5SXmWyWgh9dfiX0.cache +1 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2J/2JehxW6N_macfXmDjv89gIwB93SydNWZSQdDcx7LD_I.cache +0 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2T/2THKHrZjHyOmb6V6Tnr6LQ5UIFupguiGdFjWAr90qcQ.cache +0 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2q/2qPt4UQnx3K4v_YKV1t8IFVXbDod2gV-O4qTdqrZXVQ.cache +0 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2v/2volr6rhAx3VGhPtAC6xS_eKpIUJg7AWf1x-s-UtRs4.cache +0 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2w/2wB7fAlU551HZKh9hwpjLvpd6C7RqV8sEVd_vRhbDdQ.cache +0 -0
  66. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3I/3IBs8zl4yGYbMEg-cqOaMRhebOIZkeVBUUvn653gwpI.cache +0 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/3O/3ONRAmqiIOGrMc2zCeu-HL6rw2HD6ggRp8hYftcXKE4.cache +1 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/4J/4JoCRFIJIkTK4iq2qFC1G_12v2GA3tbDU3EvB4RwCjE.cache +0 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5F/5F7dRYPWB82GbispQrv1IRvDefpNnviJ7hwedkiF7q4.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5i/5iW1dGh_4bjw9H2YJuaZyF9vnejgyOWIPSATStdUDBA.cache +0 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5v/5v05hdonDcx1aTGuaU6SIpy29Q3dVW_YNvhzaP-TkLQ.cache +0 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/5w/5whCjyEbVU5ub9GdxxhI4-JPihVaE47a36ad4whOjPw.cache +1 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/68/68PLosGrpFKFG_h_A23boVhTCChRvdReKVrsy1aFL5c.cache +0 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6B/6BrC7wyUpQzC6ih_Rs2maUcnvHWwQYy0gzQX2AxkTaU.cache +0 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6f/6fGZLiB0KrlDLuyf09GE4fXRtbNStrlqb9cKIRICVWA.cache +0 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/6t/6ttNCBJpZdfFOv8tuJF9VmDx162U4m_PboJkNGrp4h4.cache +1 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/71/71MnJM1Y4UyKa8_o9FkrZ3CRvvFRg0d-vsDSbZ1RPc8.cache +0 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/79/79xprBdFxSE03V6xhuKWXmhV_qv_UxwR665FBlquPL8.cache +1 -0
  80. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7o/7oaxErrBjg-QB_Ud6zBTQAM8KqsX0TTR3dDGNVRQ-m8.cache +0 -0
  81. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/7r/7rC__9wPYEDVGARbdo8Sm_4-7BIApDPRLdZQN7150EI.cache +1 -0
  82. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8D/8DwfqPnloTW4gxNo2jqRyJ3LGWaKzVasuGSa97RUaPI.cache +0 -0
  83. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8d/8dpGMgLzOCrvQzevwKwxzCdXrw_TIZ5iBB-d4HA7ZBg.cache +0 -0
  84. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9K/9K2h0wk96kjWq7PCO6p1OYk_7NFvGFv5aONM0vfPYZY.cache +1 -0
  85. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/AR/ARI_ucQlC-x9t57N8YLKIdNi82jWSB5vrVQ2JotGDvE.cache +0 -0
  86. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/BY/BY4vBBr_IYMtTnXYK_Y9P1sZ3XhQmQKGY2oFGb5t0oc.cache +0 -0
  87. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Bz/BznQ68XcJEcZLip5qi_Txd9bZhWtwf_8TOAy6SpNkrI.cache +1 -0
  88. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ca/CaFObOHw8dbFNozwKvIbABnvOa-JSfADcV8SFtQP3qo.cache +0 -0
  89. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Cq/CqxSfcPZenzvVCXPuPtJr9bDiyAQkfyiafuDdZt-dlY.cache +0 -0
  90. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DC/DCNT4OZWuTnsyI95x5PtkLSZ8MXcFZYQtOPVipuCvgk.cache +1 -0
  91. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/DW/DWm1YDC8tXvPgcD30jkm74R5KbxrI8Ufj2qrFUqBtwU.cache +0 -0
  92. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Dt/DtcofZ-9Q1uF9sOXFpRtfNaQ6itjRy2hCrPteL5FEmk.cache +2 -0
  93. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/E2/E2DUQfwyRN1oFomCKYiRRYszafQ8DzT0msnnVfNenlA.cache +0 -0
  94. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Eo/EodXrHes9kFR6yA-PAADqYQK5Qk3uzMzotUzPwmYXCA.cache +0 -0
  95. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/FS/FSsp3eaxjI_kuBlO2Gr2dOtmNPJAqqbGXYAl3z2yNrI.cache +0 -0
  96. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Fs/FsCaENaCSxEWXKAbLah8NkHmPD9p6jZ-DaTECdekXVM.cache +1 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/GI/GIvrHpP4yEyRm-MrDVYOZ3JSXTAt9DbkrSKbqnmJqWo.cache +1 -0
  98. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H0/H02lVL1ZSynR2yyNQ9KVpuVXyU05J5r8H2myjop5yLQ.cache +0 -0
  99. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H8/H8xgrYo_UpVh8pRabSX8Jl_0PmEYFC8nY9wmV1BGOMM.cache +1 -0
  100. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/H9/H9DbNzILsYnXNpC6QLAXo6hV-4Z42lyoekdG1qHOSfY.cache +2 -0
  101. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/HA/HAHbETeuJEsPbGV3P-4kNvUir6LLQU2VsYBDZjHbzDc.cache +0 -0
  102. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Hn/HnaQLQas1U_Doc-scTXFGots90wPEreqnt0QctgHf-g.cache +0 -0
  103. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/I-/I-vjGICsa-bfgZx_-eV9kARN9e19K_8ANU1wvcA4uIk.cache +1 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/I9/I9jUMhNLUV_jQjE2RUNUC1977G31Kl15S3lyFBScVFo.cache +1 -0
  105. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IE/IE_qH4lEgGFt0C1oxympuC7SrEUaKf4OD6T6z--koEE.cache +0 -0
  106. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/IW/IWuLeeS5TyWD-p0VYfDQVWsIGODmU2IeavjIHtP6Gp4.cache +0 -0
  107. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ig/IgU3Em_jvalzXdCyzl7PCgXVZJTKUFVk0onuHvX3lEk.cache +0 -0
  108. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Im/ImsAOJursGPgxTSEPKzQa6NrYCazet8bWKgFweIqCPw.cache +0 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Ix/IxMctKqNIL-heGQAR4T9Jv0AtBMKDtxwEYEF4ziKSPs.cache +0 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J1/J1-iPrebl7FAZH--earuIirCy1wV_eX0JgNWMso6SS4.cache +0 -0
  111. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/J2/J2Ib6F-Lmc5JgzrWHyxoAKUD9pi6GRnnjyHmSMeCIAA.cache +0 -0
  112. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/JP/JPFBo1bw4R8xLLtryZVNcA5K6_-XORckJu_K4MMmDPw.cache +1 -0
  113. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jk/JkmErw_5ucX5SP6b5cUcedh0OrBWjD9JpCEokratfNw.cache +0 -0
  114. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Jy/Jym2cWn7YR9PAievMYeGjbYNzhb-2-1CgywbxYmMhGM.cache +0 -0
  115. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/KR/KRPpDxnWHO0R3tnetbf_fNx4p5-8p9p-P5iZ4ADdy-M.cache +0 -0
  116. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Kt/Ktn9LA77tZBXYndrtX7EysoXyuxcoKFMeVcGJrCZA44.cache +1 -0
  117. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/LC/LCNzoLxRZS9RZv2fY95xDzIADP4c2BO9V2IY4-wIet4.cache +0 -0
  118. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lr/LrUKB6HX4DMK4-hEOE038_9C3Qny8O9ArHM5XbiP_rw.cache +1 -0
  119. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Lr/LrofhhdfmUnBmYyS2o-LhKAk0ET3TPEMzZStmxTPmlw.cache +0 -0
  120. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/N5/N5AhSCZ1dzePxcphGbbcZgAL1fXUiXlEilezKn3kpl8.cache +1 -0
  121. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Nd/Ndv8WVSTqdy9FHN926Z7iGnwXFmde5EvB1nA1HNLSXE.cache +0 -0
  122. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/O6/O6vdSMU4VvPJTHsyDyOZNAXEWkfpGrxUxgLTIDXjtYg.cache +1 -0
  123. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OC/OC0r_T0h_ssaJQvKahFgdNlgwHkzWZ1_3RD8vP5k5GY.cache +0 -0
  124. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  125. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ON/ONwXeEwqzTIR2Bkt6QyqDL3usEWvCqljuQsDk8EMdCE.cache +0 -0
  126. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Os/OsvUmrtOWH4zF1Pouo2dnhd9mtaHc_b3smvz5GYmtBk.cache +0 -0
  127. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Os/Osxy9qcENqJm7bX219Ne8Paz2KmNfsLxHWAt8SQaEds.cache +1 -0
  128. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PK/PKpJ1NgoGlLFiU3XxF8XCcXKttRLngBtwXUiWtDLCSQ.cache +0 -0
  129. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/PZ/PZrq_Y1W-SQTHdJzoCLXKJKLyjy7GzSxw5LH2vHTTJ4.cache +1 -0
  130. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QB/QBWBVD_ii6Eh9mBIlbKviEXVhWm07lT5_ZyGuDXy7Uk.cache +0 -0
  131. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/QY/QYOKzYTqpL0zx6QwAbh1-qZ_Ux8QY1QOGcDovQSrl0I.cache +0 -0
  132. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Qm/QmnKfknRuUL2jIOWLiD9a5CTQwbp_FSGk5gf6PCyjpo.cache +0 -0
  133. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/R3/R3B8-KoW4jYTyp3eqtK5AHHSXybvwF0XKi1tQo6_sYQ.cache +1 -0
  134. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/SK/SKM56cUqpP58AHkIbihgA49JhJ0Ju49pAppMtb3L_rA.cache +0 -0
  135. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Se/SejBMGEg2hufZvd1yIwucVV8CNNK-zbZDi_hSVq-zkw.cache +0 -0
  136. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/So/SoEsGmWwqnd6_ujTN2Pvwcn1-TidO2kyFow69vS8Prs.cache +1 -0
  137. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sp/Sp63nrRjOtEtLxjvdlmygB75IP1UfGrNiJB4esr8Qc0.cache +0 -0
  138. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/St/StSZJ_6QVheeA0dr_XJb2vvaSRpV3zL3xukvif7UDgA.cache +1 -0
  139. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Sx/Sx2gxmK3kUvOb49Z_e-fSCwdECL788ZjiPcxEC-Mg2w.cache +0 -0
  140. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/TW/TWP0aEiUG3m5oHG38lU60JlCu4NbTWZIq1BwkAlAYVU.cache +0 -0
  141. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Td/TdevvWdWseAJBMREki2WlAR-dDRqkXWklrSkSrm9fHg.cache +0 -0
  142. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tf/TfHlWgkPXHA5jQi8FFaUt5nMn1TaW90NJI4kIegjUAk.cache +0 -0
  143. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Tp/TpnmiZBw2YxQ8y99ocX063VaFmh7S89DhFEuIZt4Y58.cache +1 -0
  144. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UG/UG8pvkDNlNnybAyuXDcnmLBlnI0i9xrOYHjLlc61M0c.cache +1 -0
  145. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/UL/ULAerW5UsmQOo7OAYvjfb0dKv2G_yFguJg92qZ0lST0.cache +0 -0
  146. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Vk/VkF5PdUn4zruQfOplMDJK0UkBXXGLOkF9P6HiGQVjyk.cache +1 -0
  147. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WC/WCXeKezcQdpG9q2wIZ74bN-RhdGA0JBhCLaSOPQ57uM.cache +1 -0
  148. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WK/WKrry01f7Q2U6NEaSGdBBFLWAH6oDS-1lFxQGUJa2iw.cache +1 -0
  149. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/WN/WNmHvzq8ygUJsESgIc1k1xBF1KTERrfCPhsqToxy49Q.cache +1 -0
  150. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wc/WcYnLPpKZeRktxpjkKPvakASNQcDwMeKmPF2hlmQPqU.cache +0 -0
  151. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Wg/WgXlN8vhs5Q4UN1ZuxDCX8mkVZPhjCULhR8aulXvHBE.cache +1 -0
  152. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/X5/X5llx_ulaJFAst1-YV2-EPKD5fElCjdMYZdUTFy10Os.cache +1 -0
  153. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/XW/XWdkhy6G0pCMdTF7sbDxVkqE1jKlloT961SuD7fZp_I.cache +1 -0
  154. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xb/Xbhl0wcceUm9LLJ_aBSgTr66ee58jf583QGkkPCp8io.cache +0 -0
  155. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Xe/XeRQVfix6UbcewMHtKIMXpNCdH2ifw7NyApOL_WYePw.cache +0 -0
  156. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YE/YE3YmMT8fiGYMqmajrUrYyj4TMzQe5lrfsTcMq_4N5I.cache +1 -0
  157. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/YM/YM909vMEcqEvQqhLlolGhoFLEnbtp4pHlD0d8hic11s.cache +1 -0
  158. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Yd/YdCztmcIaCrITbcxTQpwJ7arxCGrVkN_8f2EpxZp5gk.cache +1 -0
  159. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZC/ZCeB5rj-QDNvs0SlP-jeUqT1BO7QbssARIWaIaOKh3Y.cache +1 -0
  160. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZF/ZFeJO22lm_kybGSC5lJSww_IKW3-1WSZaOwRF0gAzBE.cache +1 -0
  161. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZG/ZGjulyZJR_sBQX_iFRxDSlW7_CJOOtfU0xMUzt8G8D0.cache +1 -0
  162. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ZZ/ZZ6XPBELbZ5-J7cg26mBhah8ZIlsXodMLdB0eqcue1Q.cache +0 -0
  163. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/Zt/Zt_FPgYYF9eMs7MtIdfUdK0Q1GZ8ZEw83AMvmE-Y5vY.cache +2 -0
  164. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_2/_2Fx6D81XTtQ5xxEb7MNsZdD_uAYVF_U3_dSxnPIOn0.cache +0 -0
  165. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_E/_E3cHOYzwN8sbwopLEswxp5FAXdqLkodrk-SLWmgLCc.cache +1 -0
  166. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_R/_Rlap1HrKSTCP4KJti5a7rH5SOSNTTuAryefWsVsJJk.cache +1 -0
  167. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/_r/_rxUTTVlEXOurraZuhBU5dYelGp5g_-1_EHT20VocHE.cache +1 -0
  168. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ax/axLccWT8R14bhXaEyooJVi_qcipAlB0ughQDveWi4us.cache +0 -0
  169. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/c1/c1_OC2fSXSxX59KHBVD53-uz8IAdg-90Z-EUwmIs-HU.cache +0 -0
  170. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cI/cI37KLwRUeljhwLz5LloHGs4JnYu69FxmdxoTpAR-8s.cache +0 -0
  171. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cJ/cJNe7xfiIIDlRHhkru_ox_q8Gud7esYOqgUXGG-FNJQ.cache +1 -0
  172. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/cO/cOLHHM_aS3EdTABR91jSWkNe9kNJ9jzQNTg1xAalsLM.cache +0 -0
  173. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ca/ca6ALy8WHTUGKHpdlHsN5p3aT7DtmJwFSipfR0la_Ko.cache +0 -0
  174. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dQ/dQe9fPGlyjsuhqHxNehBVXNSRieXSc95rX3TkVaO3eQ.cache +1 -0
  175. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dS/dSwjexlDfgPy2ADvBKOopsXgNAEgmby_iuyKhlVnC6Q.cache +0 -0
  176. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/dW/dWVjpvEatMBOaUuIXaVzHGrQyAZztFKe4QrZBKWFJM4.cache +0 -0
  177. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eF/eF1YSkVpPhYxdgvh1NOtCAfAytVAEPMIzLYddXOwJtY.cache +0 -0
  178. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eL/eLLPQtYaSu4LZ_9xW2Mt-p2-WltE2UtRRgl8hVAEWW8.cache +0 -0
  179. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eR/eR3oVCsczG5BEEFgxA_H6ZqG_H627xr0XeifQt8RPYY.cache +1 -0
  180. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/eU/eUwAhdEqWX2A6cUJBkK8M1QgODS8psWC5NCE4DDl6Zw.cache +0 -0
  181. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ed/edMf8n-S-zqSGtZQzyxOCHGvt3ONu8_U13Y0mPZJT-g.cache +1 -0
  182. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ez/ezLhByk7t_l83KYFkRH9-vmHgqOS-aEHnQ-xjthYPAk.cache +1 -0
  183. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8XVsNnGO-1lEc5Fr3R-p1g7G_zq-r8XnSimUBGkeT4.cache +0 -0
  184. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fC/fCn6dlp4tLK8SaL192fMd-rL6XBHuHmDAxz_sC46XMU.cache +1 -0
  185. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fP/fPUOlomka97VWQLp6IRJXqdRUb7V3UCHk-F3OkCL-xM.cache +1 -0
  186. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/fV/fVTbp3vSMHue2MLCqzK7Q64AR559rfhCGFovLvNmZw4.cache +1 -0
  187. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/g8/g88iRWKayw_IzZgN8x1GwgQkuFT32rlkq1hQpGtueFY.cache +1 -0
  188. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gB/gBwjuRGUn1kWCt3wyVMMXhsgCe6wE25osUOUHmaSFnM.cache +0 -0
  189. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/gM/gM3r17YtnKIi_57auxh1qJJnxqgS4wAYr55zt20S2Kk.cache +1 -0
  190. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/h5/h5sOgqgzYjBUZDyyYwGmxMWbMx6qOiVHR_GXmmIG29s.cache +0 -0
  191. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hZ/hZi1k6tpxxCGYxRe7zY74ItcOI8gZrREOpGuA8JSpGg.cache +2 -0
  192. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iI/iI25e3Kmv7nfNEGeAhjIr6JI8Vj10NK_fAZPtvo_4J0.cache +1 -0
  193. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iY/iYfugT1hYA2QfkrsBuxS5_RjnKw38XP_ojujgUaFrHs.cache +1 -0
  194. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ih/ihDtz3A1ppiXFCuamOxnlZUv1dYbkhTgQwTKZ2Ybp5g.cache +1 -0
  195. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/iq/iqmWXfS5rtWtxuds5kZDg8-d-hMh0giDNBp0F0E2-YY.cache +2 -0
  196. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ir/irVfvukneUc3K5TV5digv6Jty49XWUOcwSOQUay73nA.cache +2 -0
  197. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jE/jE-ekNo3KxJ2r2QgvQtK24pnyk_4qIXFoLaPIRl77aU.cache +0 -0
  198. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jG/jGD79JSUgSz7OMp14UQR3_DQmHSK6fufDN_iHO_uKOo.cache +0 -0
  199. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jR/jRe0OpbAXjNfySMHiHCK04d3jA1M5fhOVrON-xi_Zyc.cache +1 -0
  200. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/jq/jqeBHioxvttfhTP04Ab12o7A94nVp2aehyg69TLFcdQ.cache +1 -0
  201. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/k1/k162olH6r-fm1rESngVJYrFgyIKGro9rcd2_JFs6QUI.cache +1 -0
  202. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/kV/kVWey75xww_aIy_7NlHXSXul0YoP7ZbR4QNqr8yCgk4.cache +1 -0
  203. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/l5/l5nbSP1wKFgEH68yRj61JIg6ewBSVUvw-YnOyqVttwk.cache +0 -0
  204. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lI/lIcWcnkKPEZZIml0KkHz-B96eXjkgHoAe4S2gYPPCxM.cache +0 -0
  205. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lZ/lZl9vsjoDp-WP6J4ufmyRMn_Lkx9U4Ns-HzAFIyHQ6g.cache +1 -0
  206. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lr/lroCEYKc4vUyzZCIiGKHiTtqfIlKWD5aQnCBsRjo_SQ.cache +1 -0
  207. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/m0/m0AjXceh_VWpt49oVhVdsKt7eW6PF1gBHYEUMHEXfhk.cache +1 -0
  208. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mU/mUUXFVUebpd_jo-IPlW7dZuZ0HudQe3rNpAHs951xVM.cache +0 -0
  209. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/mZ/mZDmHzTxgTgW4mwiJ0buykEmryfcQIihatIR9R4yGvs.cache +1 -0
  210. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/n9/n9h-cOcLmvIodMAhFiUI6cq1FtWEtgMgzZF1z7u0FN4.cache +0 -0
  211. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nE/nEYQvTYn7CglFbbTw77lYYV_2Pv0zptzhp2qOwMra4c.cache +0 -0
  212. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nH/nHp9-y6vaBOO2NlmQj7OmhG-k3oMgFmNe-k2-Tr7lF8.cache +2 -0
  213. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/nP/nP54bZ7suSdz4LRtuEm46lVtEBPaHte216GK48Vu7yc.cache +1 -0
  214. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ne/ne8tbL7LIDthYRHPaaKUDwNoiRzHRISqrrEvs1hyews.cache +0 -0
  215. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/o9/o9VaIEQCZSysqsFl9T5QE90PJbtMn3-3CApcGlt_oDc.cache +0 -0
  216. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oN/oN393aaTlEyH_xHj6nXwpxbfAdKkBNK9fsFq5cQgQ4E.cache +1 -0
  217. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oa/oax9uRKEG3YPwb-0RrO_KYX93IM5pNruFsBINGjfdO0.cache +1 -0
  218. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/om/omHtE_cp5Aw9D2SfUYaLZvUADOg8bOQdhp0Njp9r3to.cache +1 -0
  219. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/om/omJbCSy3ZLnKWV0-JAwqw12n_StJH3woEytqnAE8Q10.cache +3 -0
  220. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/pE/pEhaat2KBd5SrT7szC_8R1_6hK17FTpvoRFkmCRSD3M.cache +2 -0
  221. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q8/q8MkBrYm2e0vUBWlIJVjsKR7b75Ilay0RrrG6fNzTr0.cache +0 -0
  222. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qC/qCuuYSfa8IuekBR3DTo98mDB9_9pHRTS5_EJR5q_MyU.cache +1 -0
  223. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/qc/qcikhnLXr-303Z3OU_kbQZwkpD5NrKSeM2nNL-ffdgc.cache +0 -0
  224. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/r0/r0eiZO-Tkr3OyiB-geIn-YPNakLkrIx2WePws_SnstM.cache +0 -0
  225. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/rA/rAGHOJBWB19FprudG3doyaCcNSPk7n1e7HhXb-YHMeg.cache +0 -0
  226. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sG/sGP9Fh5fL3bOFgMq-qajeS3Z44flJz3M9kmOHWY2SYo.cache +2 -0
  227. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHut5tvC-pdqJdH2LtftQa_C-nFdpV0ten28U0LuVjA.cache +2 -0
  228. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sI/sI7lNBzoNRHjHHLH3UpbmEqscJ01Pdb8Htj5e4bDbX0.cache +1 -0
  229. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sP/sPKvPOduedJNh9z59XpMWCz9NN8YA4Xe0LMcLCWBnYM.cache +0 -0
  230. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sR/sR62I_DwgMj3PWLF1H6focqsRvaajVCvE3zPj5udWgE.cache +1 -0
  231. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sY/sYN0pTdTuXPO30Fk6crr0Oi8ML_mSaI1fstgXPIBMpc.cache +2 -0
  232. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sZ/sZP35QjSyLeEbgplr7T_i-JFyfB9PtiyvPiqpqhS0GY.cache +1 -0
  233. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/tH/tHr2MpuKhjYPi6ZFlUQ2X448K4WOfbPo_iw8m-BkGfM.cache +1 -0
  234. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/u2/u2zoJwsN3CZaGd_bSQ97OVeH7PL9OdKg6IihY5Vz9ng.cache +1 -0
  235. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/uV/uV6f1hlkUzGccf1OBvJBrt5RAdvfIP23hcmVjoEEWk0.cache +1 -0
  236. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vD/vDsMVy8ZJXOL8NlY5MANZxbPcsihPam-Iro8ElbDNKI.cache +0 -0
  237. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vL/vL_0KgZot8P1_YzvlADQWFdPNE3c9Rm8_0JnxgUXDPw.cache +0 -0
  238. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vQ/vQd5-0L7ItEOSQZilrlb-ZXKBeLtns1W-4n8RPjGoQs.cache +0 -0
  239. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/v_/v_A4xjDv63bX306EGU_HK5o58pH1skq-lQ2fF9hUQ_k.cache +1 -0
  240. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/vn/vnI-WaofhTms8NUPvS45Lu2-O0pajiXkAOUTmDQUqCc.cache +0 -0
  241. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/w0/w0AxRw37g3akr3HtBUi_DQHd4ybra_t5v23TvX8ghz8.cache +0 -0
  242. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wl/wlnIUoJ2YbtNCJgWwKAqtbMnpfXusScgaQJrTKVsEtw.cache +1 -0
  243. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x6/x6t65K72D9rt4hNrdIKlvbdv2Ujh5gxXDIGjXGbAqqA.cache +2 -0
  244. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x8/x8jSJSjwypRN9f2kxFGDOiA13335WiJzEtZ5Fsf3ZBo.cache +1 -0
  245. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/xS/xSU4DhJUOjFVTtM2xf5uS-gY0FyR_k4AZr8e4jgvKrc.cache +0 -0
  246. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yD/yDUVjwjAtvl8ViYdEQzZkgmeo9qLhCL6TlvnNJfWPhw.cache +1 -0
  247. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yN/yNxYRBVC84KATmBZPO-1XRLpnRBFh8TshohLQp_TMUE.cache +1 -0
  248. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yQ/yQXBr76kfl6sKPuuCmEBGRufo_NK1Ch74iqajEnup7s.cache +0 -0
  249. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yu/yuFviD-M0v9aaJUEOI7L1qIFMO-FijDxzp_c-HUpUSc.cache +0 -0
  250. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/yy/yyxZOz7Ax7WkFvv1OzPnIJI952DHxJ2yfcZ8eEMmwoI.cache +0 -0
  251. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z1/z1eG7GkJliY-vqSdAF1Q-JM2PvxNDlzIBMOPwzhbv3I.cache +0 -0
  252. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/z6/z6bYjemt6e-R7YLuLBIM4pBfz1ee2gkizvJWpskbj10.cache +1 -0
  253. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/zw/zw95XrE9ydpj-YZIfgdpe1fmuwHisH72Fw3TLKrY7x8.cache +0 -0
  254. data/spec/features/errors_spec.rb +53 -0
  255. data/spec/spec_helper.rb +5 -0
  256. metadata +604 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 594ef8981e8deda6a7dd38f9b57cbf3552ce9b4b
4
+ data.tar.gz: 028d66ca19e3ef07089feb0fe4b52c1ef0231a3d
5
+ SHA512:
6
+ metadata.gz: d405e242e4c9bf3e54c870734f42a0514a05a49aec9ad69c4f0915b8d37af1055540522991aa3c0edc1548bc26364c8da862be383ea2e7edf732f6f122ebb60a
7
+ data.tar.gz: a962a7d1a622cc4c5b235e5a442c2e757ac99acca61aee54b4d917746d410c3ef88effe8e0768fe783f4d971994db8de2bfc932c646d9f74f50eb69f5f4d7f96
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2016 Damian Baćkowski
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,7 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task :default => :spec
7
+ task :test => :spec
@@ -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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,6 @@
1
+ @import "bootstrap-sprockets";
2
+ @import "bootstrap";
3
+
4
+ body {
5
+ padding-top: 60px;
6
+ }
@@ -0,0 +1,5 @@
1
+ module RailsCustomErrorPages
2
+ class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
4
+ end
5
+ end
@@ -0,0 +1,13 @@
1
+ module RailsCustomErrorPages
2
+ class ErrorsController < ApplicationController
3
+ layout false
4
+
5
+ def show
6
+ @exception = env['action_dispatch.exception']
7
+ @status_code = ActionDispatch::ExceptionWrapper.new(env, @exception).status_code
8
+ @rescue_response = ActionDispatch::ExceptionWrapper.rescue_responses[@exception.class.name]
9
+
10
+ render :show, status: @status_code
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,4 @@
1
+ module RailsCustomErrorPages
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>RailsCustomErrorPages</title>
5
+ <%= stylesheet_link_tag "rails_custom_error_pages/application", media: "all" %>
6
+ <%= javascript_include_tag "rails_custom_error_pages/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <title><%= t('.title', status_code: @status_code) %></title>
8
+ <%= stylesheet_link_tag "rails_custom_error_pages/application", media: "all" %>
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <div class="jumbotron">
13
+ <h1><%= @status_code %></h1>
14
+ <p>
15
+ <%= t(".#{@status_code}.description") %>
16
+ </p>
17
+ </div>
18
+ </div>
19
+ </body>
20
+ </html>
@@ -0,0 +1 @@
1
+ Rails.application.config.exceptions_app = ->(env) { RailsCustomErrorPages::ErrorsController.action(:show).call(env) }
@@ -0,0 +1,11 @@
1
+ en:
2
+ rails_custom_error_pages:
3
+ errors:
4
+ show:
5
+ title: Error %{status_code}
6
+ '404':
7
+ description: The page you were looking for doesn't exist.
8
+ '422':
9
+ description: The change you wanted was rejected.
10
+ '500':
11
+ description: We're sorry, but something went wrong.
@@ -0,0 +1,11 @@
1
+ pl:
2
+ rails_custom_error_pages:
3
+ errors:
4
+ show:
5
+ title: Błąd %{status_code}
6
+ '404':
7
+ description: Strona której szukaj nie istnieje.
8
+ '422':
9
+ description: Zmiana którą chcesz dokonać została odrzucona.
10
+ '500':
11
+ description: Wewnętrzny błąd serwera.
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ RailsCustomErrorPages::Engine.routes.draw do
2
+ end
@@ -0,0 +1,15 @@
1
+ module RailsCustomErrorPages
2
+ module Generators
3
+ class ViewsGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../../../../app/views', __FILE__)
5
+
6
+ def self.banner
7
+ "Copy error pages template to your application"
8
+ end
9
+
10
+ def copy_config_file
11
+ directory 'rails_custom_error_pages', 'app/views/rails_custom_error_pages'
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,7 @@
1
+ module RailsCustomErrorPages
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace RailsCustomErrorPages
4
+
5
+ config.i18n.load_path += Dir[config.root.join('locales', '*.yml').to_s]
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module RailsCustomErrorPages
2
+ VERSION = "1.0.0"
3
+ end
@@ -0,0 +1,4 @@
1
+ require "rails_custom_error_pages/engine"
2
+
3
+ module RailsCustomErrorPages
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :rails_custom_error_pages do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -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 any plugin's vendor/assets/javascripts directory 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/rails/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 any plugin's vendor/assets/stylesheets directory 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,2 @@
1
+ class ErrorsController < ApplicationController
2
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require(*Rails.groups)
6
+ require "rails_custom_error_pages"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
15
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
16
+ # config.time_zone = 'Central Time (US & Canada)'
17
+
18
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
19
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
20
+ # config.i18n.default_locale = :de
21
+
22
+ # Do not swallow errors in after_commit/after_rollback callbacks.
23
+ #config.active_record.raise_in_transactional_callbacks = true
24
+ end
25
+ end
26
+
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,41 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -0,0 +1,79 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
+
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
30
+
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
32
+ config.assets.compile = false
33
+
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
36
+ config.assets.digest = true
37
+
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
+
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
50
+
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
53
+
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+ end
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'