templator_chabz 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +32 -0
- data/lib/generators/templator_chabz/install_generator.rb +81 -0
- data/lib/generators/templator_chabz/template_generator.rb +31 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/banded.html.erb +116 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/banner-home.html.erb +125 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/blog.html.erb +154 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/feed.html.erb +165 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/grid.html.erb +258 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/orbit.html.erb +121 -0
- data/lib/generators/templator_chabz/templates/foundation/erb/sidebar.html.erb +111 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/banded.html.haml +88 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/banner-home.html.haml +114 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/blog.html.haml +107 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/feed.html.haml +155 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/grid.html.haml +216 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/orbit.html.haml +90 -0
- data/lib/generators/templator_chabz/templates/foundation/haml/sidebar.html.haml +92 -0
- data/lib/tasks/templator_chabz_tasks.rake +4 -0
- data/lib/templator_chabz.rb +3 -0
- data/lib/templator_chabz/engine.rb +6 -0
- data/lib/templator_chabz/version.rb +3 -0
- data/test/dummy/Gemfile +18 -0
- data/test/dummy/Gemfile.lock +127 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/posts/_form.html.haml +16 -0
- data/test/dummy/app/views/posts/edit.html.haml +7 -0
- data/test/dummy/app/views/posts/index.html.haml +21 -0
- data/test/dummy/app/views/posts/index.json.jbuilder +4 -0
- data/test/dummy/app/views/posts/new.html.haml +5 -0
- data/test/dummy/app/views/posts/show.html.haml +12 -0
- data/test/dummy/app/views/posts/show.json.jbuilder +1 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20131006054133_create_tests.rb +8 -0
- data/test/dummy/db/migrate/20131006115208_create_posts.rb +10 -0
- data/test/dummy/db/schema.rb +28 -0
- data/test/dummy/log/development.log +2299 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
- data/test/dummy/test/fixtures/posts.yml +9 -0
- data/test/dummy/test/fixtures/tests.yml +11 -0
- data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/models/post_test.rb +7 -0
- data/test/dummy/test/models/test_test.rb +7 -0
- data/test/dummy/tmp/cache/assets/development/sass/5e65457e8790b21bb66467547fe443e595671eb3/foundation.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_alert-boxes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_block-grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_breadcrumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_button-groups.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_clearing.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_custom-forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_dropdown.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_flex-video.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_forms.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_global.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_grid.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_inline-lists.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_joyride.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_keystrokes.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_labels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_magellan.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_orbit.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pagination.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_panels.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_pricing-tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_progress-bars.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_reveal.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_section.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_side-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_split-buttons.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_sub-nav.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_switch.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_thumbs.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_tooltips.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_top-bar.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_type.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/942db8b2be953c9bac7f632a6f4ac941579d2216/_visibility.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/be6f7d6cf81a3a6db6a6427662e44ee1833019b8/_variables.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/foundation_and_overrides.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/posts.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sass/ea369932e64bc5225aea5605bf0ed7dad0149c7c/scaffolds.css.scssc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/08662e474ce1579b97884ab50e2e2643 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/0a99b6b60d901e7347ae702a774c460d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/109364ff23b8c3f298666d5b3ed59f8f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/10fcfbe6ebae11a40c8eac41939a1b9a +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1a821c95f916421780abe99813b3c91b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/1f186ab17df208d8f9291c4ec5793626 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/204247b3a9d449797de892002beb9ff0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/210743f18402df668a8eac0f97fe9792 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21510ea8264eaa94d48104f903b60f39 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/21b774bcf777796eb33a2f79ef74e215 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/22f08f9bfd17b861b64760e60468d81b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2b2fc669f5a079c5eb55160b13687322 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2d64858078c6c6e2fe621b48bb2f44a9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/302401b849544f478d71b360f959de1b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/35c4ebb0728d94f58835f5a834ee410b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/3794b356552fe398efb67a9f13603852 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/40e4dc27315c8bb23ab744a9b4109d6d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/45608fceae9d088671ac5d2ee16d87da +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4582dca43473c600d2a889c0ceacb6e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4a31b996e5ba29ae4ae8296e024d72e2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/4b0af6b796cc38d45f669c27eb80317c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5322bf09526bb349f4db53733d00708d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/554fbf86fb6ebbfba471462aece61b71 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/59ee4111f5f3ae4c0e2611fe56f27d41 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a2122189d95df7e073f20347a1f4d1d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a6dc5b720e91c7d5b96f8978e8c099c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5a903d903ff1031711d0cb82b0e4c473 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/5f0c911bac0bdade86492175727353a0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/6f9f5b80c345a75b6ed3c682bb12b4a2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/71ed84561ff87a5b5e970969ee1071d1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/76ede84da6cefda9c2aa52569d397ab6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b17de2aa94f5206252e277afe1df40c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7b50d5f08a3a319773b0c52f4483ee4f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/7e4be92eadae28f8b72b8c1f6ee3d80d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8b590831eed712236b632c539da643e9 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/8e99ae8c4ddf076611fbae06243721d8 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/90c20156d1c9a5163e51c8c056ff5777 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/92088122fa40322c86cc0083551a4528 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9227d7172d559066f794a189c599e1fc +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9ef8b3034506be9061b9df2e00698d80 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9f93e00a58310561d1989b82ab7b83a7 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/9fdd00562d6dea819db33bdf1f5cab5b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a2559a19bfb0a6b5f9651b4e9dbe559c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/a531964bec6d6cb36895a13f8bdab7e0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aac4628c5d4049f6abe72c1b0e42097b +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/aada318492cd92ae01885ef3911e2717 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/abb46c9cfc4b1dca83447d9672fb9b8d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0acf2933cfdb22eaeb8c9d80a87ccd1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0e2c03464284b32461db11132ceaa42 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b0f8eeb3d384a02c7915be1d63860345 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b184b27f67d8e8736980a0b8984fd9ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b4c7391482ed7db125856b4a5611c8e0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b4d05ba000729f99077402d6f3ebc6a5 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b64602f02c6f0bd3701cdcc16fe1cdb1 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/b7edc309227cdee7658c29674a5eb30f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bd3936370d0f952ada5774e2230046ed +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/bfca04565e745a9dcb660191f63c2dd0 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c0541f37a48c06469f284192ae351f9c +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c32dd6e27182c620c704715b6f312863 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c3bc360cff83ffddb8e0f46b918957d2 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c4a4cc465b11c1d68b8c960371d85011 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/c8ef7534699ea82b3fb3658b8c10cf91 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cc3949ebb617002ef1f538cfd4caa5df +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d3404752cf23ba5902ef142cb4f1d72d +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d70fca14dd961df1ddacfb404e68f641 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e35e5cf8df356b11ca306cb025aec9ff +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/e459168835a5f27b832ace20874f7c10 +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f4db7f07159837dd9f31e436c623d99e +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f767bf7733f9d255bda5d7ad033ab87f +0 -0
- data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/templator_chabz_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- 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,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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|