quick_dry 0.0.1.1 → 0.1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/quick_dry/quick_dry_controller.rb +65 -19
  3. data/config/routes.rb +8 -8
  4. data/lib/quick_dry/version.rb +1 -1
  5. metadata +3 -149
  6. data/test/dummy/app/assets/javascripts/comments.js +0 -2
  7. data/test/dummy/app/assets/javascripts/posts.js +0 -2
  8. data/test/dummy/app/assets/stylesheets/comments.css +0 -4
  9. data/test/dummy/app/assets/stylesheets/posts.css +0 -4
  10. data/test/dummy/app/assets/stylesheets/scaffold.css +0 -56
  11. data/test/dummy/app/controllers/comments_controller.rb +0 -58
  12. data/test/dummy/app/controllers/posts_controller.rb +0 -58
  13. data/test/dummy/app/helpers/comments_helper.rb +0 -2
  14. data/test/dummy/app/helpers/posts_helper.rb +0 -2
  15. data/test/dummy/app/models/comment.rb +0 -2
  16. data/test/dummy/app/models/post.rb +0 -2
  17. data/test/dummy/app/views/comments/_form.html.erb +0 -25
  18. data/test/dummy/app/views/comments/edit.html.erb +0 -6
  19. data/test/dummy/app/views/comments/index.html.erb +0 -27
  20. data/test/dummy/app/views/comments/new.html.erb +0 -5
  21. data/test/dummy/app/views/comments/show.html.erb +0 -14
  22. data/test/dummy/app/views/posts/_form.html.erb +0 -25
  23. data/test/dummy/app/views/posts/edit.html.erb +0 -6
  24. data/test/dummy/app/views/posts/index.html.erb +0 -27
  25. data/test/dummy/app/views/posts/new.html.erb +0 -5
  26. data/test/dummy/app/views/posts/show.html.erb +0 -14
  27. data/test/dummy/db/development.sqlite3 +0 -0
  28. data/test/dummy/db/migrate/20141014142634_create_comments.rb +0 -10
  29. data/test/dummy/db/migrate/20141014142659_create_posts.rb +0 -10
  30. data/test/dummy/db/schema.rb +0 -30
  31. data/test/dummy/log/development.log +0 -15567
  32. data/test/dummy/test/controllers/comments_controller_test.rb +0 -49
  33. data/test/dummy/test/controllers/posts_controller_test.rb +0 -49
  34. data/test/dummy/test/fixtures/comments.yml +0 -9
  35. data/test/dummy/test/fixtures/posts.yml +0 -9
  36. data/test/dummy/test/helpers/comments_helper_test.rb +0 -4
  37. data/test/dummy/test/helpers/posts_helper_test.rb +0 -4
  38. data/test/dummy/test/models/comment_test.rb +0 -7
  39. data/test/dummy/test/models/post_test.rb +0 -7
  40. data/test/dummy/tmp/cache/assets/development/sprockets/0dd5163be147a1ee2f93f5abb9a0fd32 +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/206236caf137ae7dd3cae0aac897f4b2 +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/37c31816befce62c4f5d52026a23287d +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/412ab75ab0fc70ac2d7f96418d4c1d43 +0 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/5eccfa2606a027a0b509bdb46f03d701 +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/73510521b58326509331d135128ad92e +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/8244190c3c743ce907b74854faabcb0b +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/8288ddc9a4e9f4196c50036ee1eda4b8 +0 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/886a4f506bfbabff5d6b407aedbb80d0 +0 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/952d783e1981cc269524cb5a2890409d +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/9c7264225a395d67bc2a2d9181a19571 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/aa844f54ad5b802f23b19beb26e81435 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/ae2c9e8cd2d7afe29ae08c4e049fb57a +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/b3ee3550542b56da2fa6ed034609648c +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/b86ae80f0c5c9fda3e212df5e11179c7 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/b9de2fc513b54720f71ab4d2a2df3004 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/c40e7666f601d5bab36418512d6b76ee +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/c5cb5b72ad5b8996bce2c68b02dff3a5 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/cba44a33ec96893200b56f4695586826 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/e1ca254e5fdbd2901067c0a9d95e6dd5 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/e584db490f8a31d32e707b821c61fa75 +0 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/e912bd2d77f53416b8fa30878918d082 +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/f13f0412b3245894f220e57919843e97 +0 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/f3dabd6fc74da6af45a775c1ddb019f7 +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
@@ -1,27 +0,0 @@
1
- <h1>Listing comments</h1>
2
-
3
- <table>
4
- <thead>
5
- <tr>
6
- <th>User</th>
7
- <th>Body</th>
8
- <th colspan="3"></th>
9
- </tr>
10
- </thead>
11
-
12
- <tbody>
13
- <% @comments.each do |comment| %>
14
- <tr>
15
- <td><%= comment.User %></td>
16
- <td><%= comment.body %></td>
17
- <td><%= link_to 'Show', comment %></td>
18
- <td><%= link_to 'Edit', edit_comment_path(comment) %></td>
19
- <td><%= link_to 'Destroy', comment, method: :delete, data: { confirm: 'Are you sure?' } %></td>
20
- </tr>
21
- <% end %>
22
- </tbody>
23
- </table>
24
-
25
- <br>
26
-
27
- <%= link_to 'New Comment', new_comment_path %>
@@ -1,5 +0,0 @@
1
- <h1>New comment</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', comments_path %>
@@ -1,14 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>User:</strong>
5
- <%= @comment.User %>
6
- </p>
7
-
8
- <p>
9
- <strong>Body:</strong>
10
- <%= @comment.body %>
11
- </p>
12
-
13
- <%= link_to 'Edit', edit_comment_path(@comment) %> |
14
- <%= link_to 'Back', comments_path %>
@@ -1,25 +0,0 @@
1
- <%= form_for(@post) do |f| %>
2
- <% if @post.errors.any? %>
3
- <div id="error_explanation">
4
- <h2><%= pluralize(@post.errors.count, "error") %> prohibited this post from being saved:</h2>
5
-
6
- <ul>
7
- <% @post.errors.full_messages.each do |message| %>
8
- <li><%= message %></li>
9
- <% end %>
10
- </ul>
11
- </div>
12
- <% end %>
13
-
14
- <div class="field">
15
- <%= f.label :name %><br>
16
- <%= f.text_field :name %>
17
- </div>
18
- <div class="field">
19
- <%= f.label :content %><br>
20
- <%= f.text_field :content %>
21
- </div>
22
- <div class="actions">
23
- <%= f.submit %>
24
- </div>
25
- <% end %>
@@ -1,6 +0,0 @@
1
- <h1>Editing post</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Show', @post %> |
6
- <%= link_to 'Back', posts_path %>
@@ -1,27 +0,0 @@
1
- <h1>Listing posts</h1>
2
-
3
- <table>
4
- <thead>
5
- <tr>
6
- <th>Name</th>
7
- <th>Content</th>
8
- <th colspan="3"></th>
9
- </tr>
10
- </thead>
11
-
12
- <tbody>
13
- <% @posts.each do |post| %>
14
- <tr>
15
- <td><%= post.name %></td>
16
- <td><%= post.content %></td>
17
- <td><%= link_to 'Show', post %></td>
18
- <td><%= link_to 'Edit', edit_post_path(post) %></td>
19
- <td><%= link_to 'Destroy', post, method: :delete, data: { confirm: 'Are you sure?' } %></td>
20
- </tr>
21
- <% end %>
22
- </tbody>
23
- </table>
24
-
25
- <br>
26
-
27
- <%= link_to 'New Post', new_post_path %>
@@ -1,5 +0,0 @@
1
- <h1>New post</h1>
2
-
3
- <%= render 'form' %>
4
-
5
- <%= link_to 'Back', posts_path %>
@@ -1,14 +0,0 @@
1
- <p id="notice"><%= notice %></p>
2
-
3
- <p>
4
- <strong>Name:</strong>
5
- <%= @post.name %>
6
- </p>
7
-
8
- <p>
9
- <strong>Content:</strong>
10
- <%= @post.content %>
11
- </p>
12
-
13
- <%= link_to 'Edit', edit_post_path(@post) %> |
14
- <%= link_to 'Back', posts_path %>
Binary file
@@ -1,10 +0,0 @@
1
- class CreateComments < ActiveRecord::Migration
2
- def change
3
- create_table :comments do |t|
4
- t.string :User
5
- t.string :body
6
-
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,10 +0,0 @@
1
- class CreatePosts < ActiveRecord::Migration
2
- def change
3
- create_table :posts do |t|
4
- t.string :name
5
- t.string :content
6
-
7
- t.timestamps
8
- end
9
- end
10
- end
@@ -1,30 +0,0 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20141014142659) do
15
-
16
- create_table "comments", force: true do |t|
17
- t.string "User"
18
- t.string "body"
19
- t.datetime "created_at"
20
- t.datetime "updated_at"
21
- end
22
-
23
- create_table "posts", force: true do |t|
24
- t.string "name"
25
- t.string "content"
26
- t.datetime "created_at"
27
- t.datetime "updated_at"
28
- end
29
-
30
- end