templator_chabz 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/generators/templator_chabz/install_generator.rb +81 -0
  6. data/lib/generators/templator_chabz/template_generator.rb +31 -0
  7. data/lib/generators/templator_chabz/templates/foundation/erb/banded.html.erb +116 -0
  8. data/lib/generators/templator_chabz/templates/foundation/erb/banner-home.html.erb +125 -0
  9. data/lib/generators/templator_chabz/templates/foundation/erb/blog.html.erb +154 -0
  10. data/lib/generators/templator_chabz/templates/foundation/erb/feed.html.erb +165 -0
  11. data/lib/generators/templator_chabz/templates/foundation/erb/grid.html.erb +258 -0
  12. data/lib/generators/templator_chabz/templates/foundation/erb/orbit.html.erb +121 -0
  13. data/lib/generators/templator_chabz/templates/foundation/erb/sidebar.html.erb +111 -0
  14. data/lib/generators/templator_chabz/templates/foundation/haml/banded.html.haml +88 -0
  15. data/lib/generators/templator_chabz/templates/foundation/haml/banner-home.html.haml +114 -0
  16. data/lib/generators/templator_chabz/templates/foundation/haml/blog.html.haml +107 -0
  17. data/lib/generators/templator_chabz/templates/foundation/haml/feed.html.haml +155 -0
  18. data/lib/generators/templator_chabz/templates/foundation/haml/grid.html.haml +216 -0
  19. data/lib/generators/templator_chabz/templates/foundation/haml/orbit.html.haml +90 -0
  20. data/lib/generators/templator_chabz/templates/foundation/haml/sidebar.html.haml +92 -0
  21. data/lib/tasks/templator_chabz_tasks.rake +4 -0
  22. data/lib/templator_chabz.rb +3 -0
  23. data/lib/templator_chabz/engine.rb +6 -0
  24. data/lib/templator_chabz/version.rb +3 -0
  25. data/test/dummy/Gemfile +18 -0
  26. data/test/dummy/Gemfile.lock +127 -0
  27. data/test/dummy/README.rdoc +28 -0
  28. data/test/dummy/Rakefile +6 -0
  29. data/test/dummy/app/assets/javascripts/application.js +13 -0
  30. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  31. data/test/dummy/app/controllers/application_controller.rb +5 -0
  32. data/test/dummy/app/helpers/application_helper.rb +2 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  34. data/test/dummy/app/views/posts/_form.html.haml +16 -0
  35. data/test/dummy/app/views/posts/edit.html.haml +7 -0
  36. data/test/dummy/app/views/posts/index.html.haml +21 -0
  37. data/test/dummy/app/views/posts/index.json.jbuilder +4 -0
  38. data/test/dummy/app/views/posts/new.html.haml +5 -0
  39. data/test/dummy/app/views/posts/show.html.haml +12 -0
  40. data/test/dummy/app/views/posts/show.json.jbuilder +1 -0
  41. data/test/dummy/bin/bundle +3 -0
  42. data/test/dummy/bin/rails +4 -0
  43. data/test/dummy/bin/rake +4 -0
  44. data/test/dummy/config.ru +4 -0
  45. data/test/dummy/config/application.rb +23 -0
  46. data/test/dummy/config/boot.rb +5 -0
  47. data/test/dummy/config/database.yml +25 -0
  48. data/test/dummy/config/environment.rb +5 -0
  49. data/test/dummy/config/environments/development.rb +29 -0
  50. data/test/dummy/config/environments/production.rb +80 -0
  51. data/test/dummy/config/environments/test.rb +36 -0
  52. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  53. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  54. data/test/dummy/config/initializers/inflections.rb +16 -0
  55. data/test/dummy/config/initializers/mime_types.rb +5 -0
  56. data/test/dummy/config/initializers/secret_token.rb +12 -0
  57. data/test/dummy/config/initializers/session_store.rb +3 -0
  58. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  59. data/test/dummy/config/locales/en.yml +23 -0
  60. data/test/dummy/config/routes.rb +56 -0
  61. data/test/dummy/db/development.sqlite3 +0 -0
  62. data/test/dummy/db/migrate/20131006054133_create_tests.rb +8 -0
  63. data/test/dummy/db/migrate/20131006115208_create_posts.rb +10 -0
  64. data/test/dummy/db/schema.rb +28 -0
  65. data/test/dummy/log/development.log +2299 -0
  66. data/test/dummy/public/404.html +58 -0
  67. data/test/dummy/public/422.html +58 -0
  68. data/test/dummy/public/500.html +57 -0
  69. data/test/dummy/public/favicon.ico +0 -0
  70. data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
  71. data/test/dummy/test/fixtures/posts.yml +9 -0
  72. data/test/dummy/test/fixtures/tests.yml +11 -0
  73. data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
  74. data/test/dummy/test/models/post_test.rb +7 -0
  75. data/test/dummy/test/models/test_test.rb +7 -0
  76. data/test/dummy/tmp/cache/assets/development/sass/5e65457e8790b21bb66467547fe443e595671eb3/foundation.scssc +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_alert-boxes.scssc +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_block-grid.scssc +0 -0
  79. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_breadcrumbs.scssc +0 -0
  80. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_button-groups.scssc +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_buttons.scssc +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_clearing.scssc +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_custom-forms.scssc +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown-buttons.scssc +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown.scssc +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_flex-video.scssc +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_forms.scssc +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_global.scssc +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_grid.scssc +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_inline-lists.scssc +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_joyride.scssc +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_keystrokes.scssc +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_labels.scssc +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_magellan.scssc +0 -0
  95. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_orbit.scssc +0 -0
  96. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pagination.scssc +0 -0
  97. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_panels.scssc +0 -0
  98. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pricing-tables.scssc +0 -0
  99. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_progress-bars.scssc +0 -0
  100. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_reveal.scssc +0 -0
  101. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_section.scssc +0 -0
  102. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_side-nav.scssc +0 -0
  103. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_split-buttons.scssc +0 -0
  104. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_sub-nav.scssc +0 -0
  105. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_switch.scssc +0 -0
  106. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tables.scssc +0 -0
  107. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_thumbs.scssc +0 -0
  108. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tooltips.scssc +0 -0
  109. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_top-bar.scssc +0 -0
  110. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_type.scssc +0 -0
  111. data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_visibility.scssc +0 -0
  112. data/test/dummy/tmp/cache/assets/development/sass/be6f7d6cf81a3a6db6a6427662e44ee1833019b8/_variables.scssc +0 -0
  113. data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/foundation_and_overrides.scssc +0 -0
  114. data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/posts.css.scssc +0 -0
  115. data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/scaffolds.css.scssc +0 -0
  116. data/test/dummy/tmp/cache/assets/development/sprockets/08662e474ce1579b97884ab50e2e2643 +0 -0
  117. data/test/dummy/tmp/cache/assets/development/sprockets/0a99b6b60d901e7347ae702a774c460d +0 -0
  118. data/test/dummy/tmp/cache/assets/development/sprockets/109364ff23b8c3f298666d5b3ed59f8f +0 -0
  119. data/test/dummy/tmp/cache/assets/development/sprockets/10fcfbe6ebae11a40c8eac41939a1b9a +0 -0
  120. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  121. data/test/dummy/tmp/cache/assets/development/sprockets/1a821c95f916421780abe99813b3c91b +0 -0
  122. data/test/dummy/tmp/cache/assets/development/sprockets/1f186ab17df208d8f9291c4ec5793626 +0 -0
  123. data/test/dummy/tmp/cache/assets/development/sprockets/204247b3a9d449797de892002beb9ff0 +0 -0
  124. data/test/dummy/tmp/cache/assets/development/sprockets/210743f18402df668a8eac0f97fe9792 +0 -0
  125. data/test/dummy/tmp/cache/assets/development/sprockets/21510ea8264eaa94d48104f903b60f39 +0 -0
  126. data/test/dummy/tmp/cache/assets/development/sprockets/21b774bcf777796eb33a2f79ef74e215 +0 -0
  127. data/test/dummy/tmp/cache/assets/development/sprockets/22f08f9bfd17b861b64760e60468d81b +0 -0
  128. data/test/dummy/tmp/cache/assets/development/sprockets/2b2fc669f5a079c5eb55160b13687322 +0 -0
  129. data/test/dummy/tmp/cache/assets/development/sprockets/2d64858078c6c6e2fe621b48bb2f44a9 +0 -0
  130. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  131. data/test/dummy/tmp/cache/assets/development/sprockets/302401b849544f478d71b360f959de1b +0 -0
  132. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  133. data/test/dummy/tmp/cache/assets/development/sprockets/35c4ebb0728d94f58835f5a834ee410b +0 -0
  134. data/test/dummy/tmp/cache/assets/development/sprockets/3794b356552fe398efb67a9f13603852 +0 -0
  135. data/test/dummy/tmp/cache/assets/development/sprockets/40e4dc27315c8bb23ab744a9b4109d6d +0 -0
  136. data/test/dummy/tmp/cache/assets/development/sprockets/45608fceae9d088671ac5d2ee16d87da +0 -0
  137. data/test/dummy/tmp/cache/assets/development/sprockets/4582dca43473c600d2a889c0ceacb6e9 +0 -0
  138. data/test/dummy/tmp/cache/assets/development/sprockets/4a31b996e5ba29ae4ae8296e024d72e2 +0 -0
  139. data/test/dummy/tmp/cache/assets/development/sprockets/4b0af6b796cc38d45f669c27eb80317c +0 -0
  140. data/test/dummy/tmp/cache/assets/development/sprockets/5322bf09526bb349f4db53733d00708d +0 -0
  141. data/test/dummy/tmp/cache/assets/development/sprockets/554fbf86fb6ebbfba471462aece61b71 +0 -0
  142. data/test/dummy/tmp/cache/assets/development/sprockets/59ee4111f5f3ae4c0e2611fe56f27d41 +0 -0
  143. data/test/dummy/tmp/cache/assets/development/sprockets/5a2122189d95df7e073f20347a1f4d1d +0 -0
  144. data/test/dummy/tmp/cache/assets/development/sprockets/5a6dc5b720e91c7d5b96f8978e8c099c +0 -0
  145. data/test/dummy/tmp/cache/assets/development/sprockets/5a903d903ff1031711d0cb82b0e4c473 +0 -0
  146. data/test/dummy/tmp/cache/assets/development/sprockets/5f0c911bac0bdade86492175727353a0 +0 -0
  147. data/test/dummy/tmp/cache/assets/development/sprockets/6f9f5b80c345a75b6ed3c682bb12b4a2 +0 -0
  148. data/test/dummy/tmp/cache/assets/development/sprockets/71ed84561ff87a5b5e970969ee1071d1 +0 -0
  149. data/test/dummy/tmp/cache/assets/development/sprockets/76ede84da6cefda9c2aa52569d397ab6 +0 -0
  150. data/test/dummy/tmp/cache/assets/development/sprockets/7b17de2aa94f5206252e277afe1df40c +0 -0
  151. data/test/dummy/tmp/cache/assets/development/sprockets/7b50d5f08a3a319773b0c52f4483ee4f +0 -0
  152. data/test/dummy/tmp/cache/assets/development/sprockets/7e4be92eadae28f8b72b8c1f6ee3d80d +0 -0
  153. data/test/dummy/tmp/cache/assets/development/sprockets/8b590831eed712236b632c539da643e9 +0 -0
  154. data/test/dummy/tmp/cache/assets/development/sprockets/8e99ae8c4ddf076611fbae06243721d8 +0 -0
  155. data/test/dummy/tmp/cache/assets/development/sprockets/90c20156d1c9a5163e51c8c056ff5777 +0 -0
  156. data/test/dummy/tmp/cache/assets/development/sprockets/92088122fa40322c86cc0083551a4528 +0 -0
  157. data/test/dummy/tmp/cache/assets/development/sprockets/9227d7172d559066f794a189c599e1fc +0 -0
  158. data/test/dummy/tmp/cache/assets/development/sprockets/9ef8b3034506be9061b9df2e00698d80 +0 -0
  159. data/test/dummy/tmp/cache/assets/development/sprockets/9f93e00a58310561d1989b82ab7b83a7 +0 -0
  160. data/test/dummy/tmp/cache/assets/development/sprockets/9fdd00562d6dea819db33bdf1f5cab5b +0 -0
  161. data/test/dummy/tmp/cache/assets/development/sprockets/a2559a19bfb0a6b5f9651b4e9dbe559c +0 -0
  162. data/test/dummy/tmp/cache/assets/development/sprockets/a531964bec6d6cb36895a13f8bdab7e0 +0 -0
  163. data/test/dummy/tmp/cache/assets/development/sprockets/aac4628c5d4049f6abe72c1b0e42097b +0 -0
  164. data/test/dummy/tmp/cache/assets/development/sprockets/aada318492cd92ae01885ef3911e2717 +0 -0
  165. data/test/dummy/tmp/cache/assets/development/sprockets/abb46c9cfc4b1dca83447d9672fb9b8d +0 -0
  166. data/test/dummy/tmp/cache/assets/development/sprockets/b0acf2933cfdb22eaeb8c9d80a87ccd1 +0 -0
  167. data/test/dummy/tmp/cache/assets/development/sprockets/b0e2c03464284b32461db11132ceaa42 +0 -0
  168. data/test/dummy/tmp/cache/assets/development/sprockets/b0f8eeb3d384a02c7915be1d63860345 +0 -0
  169. data/test/dummy/tmp/cache/assets/development/sprockets/b184b27f67d8e8736980a0b8984fd9ff +0 -0
  170. data/test/dummy/tmp/cache/assets/development/sprockets/b4c7391482ed7db125856b4a5611c8e0 +0 -0
  171. data/test/dummy/tmp/cache/assets/development/sprockets/b4d05ba000729f99077402d6f3ebc6a5 +0 -0
  172. data/test/dummy/tmp/cache/assets/development/sprockets/b64602f02c6f0bd3701cdcc16fe1cdb1 +0 -0
  173. data/test/dummy/tmp/cache/assets/development/sprockets/b7edc309227cdee7658c29674a5eb30f +0 -0
  174. data/test/dummy/tmp/cache/assets/development/sprockets/bd3936370d0f952ada5774e2230046ed +0 -0
  175. data/test/dummy/tmp/cache/assets/development/sprockets/bfca04565e745a9dcb660191f63c2dd0 +0 -0
  176. data/test/dummy/tmp/cache/assets/development/sprockets/c0541f37a48c06469f284192ae351f9c +0 -0
  177. data/test/dummy/tmp/cache/assets/development/sprockets/c32dd6e27182c620c704715b6f312863 +0 -0
  178. data/test/dummy/tmp/cache/assets/development/sprockets/c3bc360cff83ffddb8e0f46b918957d2 +0 -0
  179. data/test/dummy/tmp/cache/assets/development/sprockets/c4a4cc465b11c1d68b8c960371d85011 +0 -0
  180. data/test/dummy/tmp/cache/assets/development/sprockets/c8ef7534699ea82b3fb3658b8c10cf91 +0 -0
  181. data/test/dummy/tmp/cache/assets/development/sprockets/cc3949ebb617002ef1f538cfd4caa5df +0 -0
  182. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  183. data/test/dummy/tmp/cache/assets/development/sprockets/d3404752cf23ba5902ef142cb4f1d72d +0 -0
  184. data/test/dummy/tmp/cache/assets/development/sprockets/d70fca14dd961df1ddacfb404e68f641 +0 -0
  185. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  186. data/test/dummy/tmp/cache/assets/development/sprockets/e35e5cf8df356b11ca306cb025aec9ff +0 -0
  187. data/test/dummy/tmp/cache/assets/development/sprockets/e459168835a5f27b832ace20874f7c10 +0 -0
  188. data/test/dummy/tmp/cache/assets/development/sprockets/f4db7f07159837dd9f31e436c623d99e +0 -0
  189. data/test/dummy/tmp/cache/assets/development/sprockets/f767bf7733f9d255bda5d7ad033ab87f +0 -0
  190. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  191. data/test/templator_chabz_test.rb +7 -0
  192. data/test/test_helper.rb +15 -0
  193. metadata +432 -0
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/404.html -->
52
+ <div class="dialog">
53
+ <h1>The page you were looking for doesn't exist.</h1>
54
+ <p>You may have mistyped the address or the page may have moved.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,58 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/422.html -->
52
+ <div class="dialog">
53
+ <h1>The change you wanted was rejected.</h1>
54
+ <p>Maybe you tried to change something you didn't have access to.</p>
55
+ </div>
56
+ <p>If you are the application owner check the logs for more information.</p>
57
+ </body>
58
+ </html>
@@ -0,0 +1,57 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style>
6
+ body {
7
+ background-color: #EFEFEF;
8
+ color: #2E2F30;
9
+ text-align: center;
10
+ font-family: arial, sans-serif;
11
+ }
12
+
13
+ div.dialog {
14
+ width: 25em;
15
+ margin: 4em auto 0 auto;
16
+ border: 1px solid #CCC;
17
+ border-right-color: #999;
18
+ border-left-color: #999;
19
+ border-bottom-color: #BBB;
20
+ border-top: #B00100 solid 4px;
21
+ border-top-left-radius: 9px;
22
+ border-top-right-radius: 9px;
23
+ background-color: white;
24
+ padding: 7px 4em 0 4em;
25
+ }
26
+
27
+ h1 {
28
+ font-size: 100%;
29
+ color: #730E15;
30
+ line-height: 1.5em;
31
+ }
32
+
33
+ body > p {
34
+ width: 33em;
35
+ margin: 0 auto 1em;
36
+ padding: 1em 0;
37
+ background-color: #F7F7F7;
38
+ border: 1px solid #CCC;
39
+ border-right-color: #999;
40
+ border-bottom-color: #999;
41
+ border-bottom-left-radius: 4px;
42
+ border-bottom-right-radius: 4px;
43
+ border-top-color: #DADADA;
44
+ color: #666;
45
+ box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
46
+ }
47
+ </style>
48
+ </head>
49
+
50
+ <body>
51
+ <!-- This file lives in public/500.html -->
52
+ <div class="dialog">
53
+ <h1>We're sorry, but something went wrong.</h1>
54
+ </div>
55
+ <p>If you are the application owner check the logs for more information.</p>
56
+ </body>
57
+ </html>
File without changes
@@ -0,0 +1,49 @@
1
+ require 'test_helper'
2
+
3
+ class PostsControllerTest < ActionController::TestCase
4
+ setup do
5
+ @post = posts(:one)
6
+ end
7
+
8
+ test "should get index" do
9
+ get :index
10
+ assert_response :success
11
+ assert_not_nil assigns(:posts)
12
+ end
13
+
14
+ test "should get new" do
15
+ get :new
16
+ assert_response :success
17
+ end
18
+
19
+ test "should create post" do
20
+ assert_difference('Post.count') do
21
+ post :create, post: { body: @post.body, title: @post.title }
22
+ end
23
+
24
+ assert_redirected_to post_path(assigns(:post))
25
+ end
26
+
27
+ test "should show post" do
28
+ get :show, id: @post
29
+ assert_response :success
30
+ end
31
+
32
+ test "should get edit" do
33
+ get :edit, id: @post
34
+ assert_response :success
35
+ end
36
+
37
+ test "should update post" do
38
+ patch :update, id: @post, post: { body: @post.body, title: @post.title }
39
+ assert_redirected_to post_path(assigns(:post))
40
+ end
41
+
42
+ test "should destroy post" do
43
+ assert_difference('Post.count', -1) do
44
+ delete :destroy, id: @post
45
+ end
46
+
47
+ assert_redirected_to posts_path
48
+ end
49
+ end
@@ -0,0 +1,9 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ title: MyString
5
+ body: MyText
6
+
7
+ two:
8
+ title: MyString
9
+ body: MyText
@@ -0,0 +1,11 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ # This model initially had no columns defined. If you add columns to the
4
+ # model remove the '{}' from the fixture names and add the columns immediately
5
+ # below each fixture, per the syntax in the comments below
6
+ #
7
+ one: {}
8
+ # column: value
9
+ #
10
+ two: {}
11
+ # column: value
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class PostsHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PostTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class TestTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end