scaffold_assoc 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +32 -0
  5. data/lib/generators/scaffold_assoc/install/install_generator.rb +21 -0
  6. data/lib/generators/scaffold_assoc/scaffold_assoc_generator.rb +158 -0
  7. data/lib/generators/scaffold_assoc/templates/controller.rb +75 -0
  8. data/lib/generators/scaffold_assoc/templates/erb/_form.html.erb +37 -0
  9. data/lib/generators/scaffold_assoc/templates/erb/edit.html.erb +6 -0
  10. data/lib/generators/scaffold_assoc/templates/erb/index.html.erb +29 -0
  11. data/lib/generators/scaffold_assoc/templates/erb/new.html.erb +5 -0
  12. data/lib/generators/scaffold_assoc/templates/erb/show.html.erb +11 -0
  13. data/lib/generators/scaffold_assoc/templates/haml/_form.html.haml +15 -0
  14. data/lib/generators/scaffold_assoc/templates/haml/edit.html.haml +7 -0
  15. data/lib/generators/scaffold_assoc/templates/haml/index.html.haml +23 -0
  16. data/lib/generators/scaffold_assoc/templates/haml/new.html.haml +4 -0
  17. data/lib/generators/scaffold_assoc/templates/haml/show.html.haml +11 -0
  18. data/lib/generators/scaffold_assoc/templates/migration.rb +15 -0
  19. data/lib/generators/scaffold_assoc/templates/model.rb +3 -0
  20. data/lib/scaffold_assoc/version.rb +3 -0
  21. data/lib/scaffold_assoc.rb +2 -0
  22. data/lib/tasks/scaffold_assoc_tasks.rake +4 -0
  23. data/test/dummy/README.rdoc +28 -0
  24. data/test/dummy/Rakefile +6 -0
  25. data/test/dummy/app/assets/javascripts/application.js +13 -0
  26. data/test/dummy/app/assets/javascripts/posts.js +2 -0
  27. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/test/dummy/app/assets/stylesheets/posts.css +4 -0
  29. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  30. data/test/dummy/app/controllers/application_controller.rb +5 -0
  31. data/test/dummy/app/controllers/comments_controller.rb +65 -0
  32. data/test/dummy/app/controllers/posts_controller.rb +58 -0
  33. data/test/dummy/app/helpers/application_helper.rb +2 -0
  34. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  35. data/test/dummy/app/models/comment.rb +3 -0
  36. data/test/dummy/app/models/post.rb +2 -0
  37. data/test/dummy/app/views/comments/_form.html.erb +25 -0
  38. data/test/dummy/app/views/comments/edit.html.erb +6 -0
  39. data/test/dummy/app/views/comments/index.html.erb +27 -0
  40. data/test/dummy/app/views/comments/new.html.erb +5 -0
  41. data/test/dummy/app/views/comments/show.html.erb +14 -0
  42. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  43. data/test/dummy/app/views/posts/_form.html.erb +25 -0
  44. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  45. data/test/dummy/app/views/posts/index.html.erb +29 -0
  46. data/test/dummy/app/views/posts/new.html.erb +5 -0
  47. data/test/dummy/app/views/posts/show.html.erb +15 -0
  48. data/test/dummy/bin/bundle +3 -0
  49. data/test/dummy/bin/rails +4 -0
  50. data/test/dummy/bin/rake +4 -0
  51. data/test/dummy/config/application.rb +23 -0
  52. data/test/dummy/config/boot.rb +5 -0
  53. data/test/dummy/config/database.yml +25 -0
  54. data/test/dummy/config/environment.rb +5 -0
  55. data/test/dummy/config/environments/development.rb +29 -0
  56. data/test/dummy/config/environments/production.rb +80 -0
  57. data/test/dummy/config/environments/test.rb +36 -0
  58. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  59. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  60. data/test/dummy/config/initializers/inflections.rb +16 -0
  61. data/test/dummy/config/initializers/mime_types.rb +5 -0
  62. data/test/dummy/config/initializers/secret_token.rb +12 -0
  63. data/test/dummy/config/initializers/session_store.rb +3 -0
  64. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  65. data/test/dummy/config/locales/en.yml +23 -0
  66. data/test/dummy/config/routes.rb +63 -0
  67. data/test/dummy/config.ru +4 -0
  68. data/test/dummy/db/development.sqlite3 +0 -0
  69. data/test/dummy/db/migrate/20150408174454_create_posts.rb +10 -0
  70. data/test/dummy/db/migrate/20150408174500_create_comments.rb +17 -0
  71. data/test/dummy/db/schema.rb +31 -0
  72. data/test/dummy/log/development.log +693 -0
  73. data/test/dummy/public/404.html +58 -0
  74. data/test/dummy/public/422.html +58 -0
  75. data/test/dummy/public/500.html +57 -0
  76. data/test/dummy/public/favicon.ico +0 -0
  77. data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
  78. data/test/dummy/test/fixtures/posts.yml +9 -0
  79. data/test/dummy/test/models/post_test.rb +7 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  92. data/test/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
  93. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  94. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  95. data/test/scaffold_assoc_test.rb +7 -0
  96. data/test/test_helper.rb +15 -0
  97. metadata +240 -0
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
Binary file
@@ -0,0 +1,10 @@
1
+ class CreatePosts < ActiveRecord::Migration
2
+ def change
3
+ create_table :posts do |t|
4
+ t.string :title
5
+ t.text :content
6
+
7
+ t.timestamps null: false
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,17 @@
1
+ class CreateComments < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :comments do |t|
4
+
5
+ t.string :title
6
+
7
+ t.text :content
8
+
9
+ t.integer :post_id
10
+ t.timestamps
11
+ end
12
+ end
13
+
14
+ def self.down
15
+ drop_table :comments
16
+ end
17
+ end
@@ -0,0 +1,31 @@
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: 20150408174500) do
15
+
16
+ create_table "comments", force: :cascade do |t|
17
+ t.string "title"
18
+ t.text "content"
19
+ t.integer "post_id"
20
+ t.datetime "created_at"
21
+ t.datetime "updated_at"
22
+ end
23
+
24
+ create_table "posts", force: :cascade do |t|
25
+ t.string "title"
26
+ t.text "content"
27
+ t.datetime "created_at", null: false
28
+ t.datetime "updated_at", null: false
29
+ end
30
+
31
+ end
@@ -0,0 +1,693 @@
1
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
2
+  (0.1ms) select sqlite_version(*)
3
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
+ Migrating to CreatePosts (20150408173116)
6
+  (0.1ms) begin transaction
7
+  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
8
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150408173116"]]
9
+  (0.6ms) commit transaction
10
+ Migrating to CreateComments (20150408173132)
11
+  (0.0ms) begin transaction
12
+  (0.1ms) rollback transaction
13
+  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
14
+  (0.1ms) select sqlite_version(*)
15
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
+ Migrating to CreatePosts (20150408173116)
18
+  (0.0ms) begin transaction
19
+  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
20
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150408173116"]]
21
+  (0.5ms) commit transaction
22
+ Migrating to CreateComments (20150408173257)
23
+  (0.0ms) begin transaction
24
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/rafaelnowrotek/Documents/Projekte/Project Play/scaffold_assoc/test/dummy/db/migrate/20150408173257_create_comments.rb:8)
25
+  (0.2ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" text, "post_id" integer, "created_at" datetime, "updated_at" datetime)
26
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150408173257"]]
27
+  (0.5ms) commit transaction
28
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
+
30
+
31
+ Started GET "/posts/comments" for 127.0.0.1 at 2015-04-08 19:33:30 +0200
32
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ Processing by PostsController#show as HTML
34
+ Parameters: {"id"=>"comments"}
35
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 0]]
36
+ Completed 404 Not Found in 9ms (ActiveRecord: 0.6ms)
37
+
38
+ ActiveRecord::RecordNotFound (Couldn't find Post with 'id'=comments):
39
+ app/controllers/posts_controller.rb:51:in `set_post'
40
+
41
+
42
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (3.6ms)
43
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms)
44
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (8.1ms)
45
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (26.8ms)
46
+
47
+
48
+ Started GET "/posts/" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
49
+ Processing by PostsController#index as HTML
50
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
51
+ Rendered posts/index.html.erb within layouts/application (1.4ms)
52
+ Completed 200 OK in 31ms (Views: 30.4ms | ActiveRecord: 0.1ms)
53
+
54
+
55
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
56
+
57
+
58
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
59
+
60
+
61
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
62
+
63
+
64
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
65
+
66
+
67
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:34 +0200
68
+
69
+
70
+ Started GET "/posts/new" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
71
+ Processing by PostsController#new as HTML
72
+ Rendered posts/_form.html.erb (14.9ms)
73
+ Rendered posts/new.html.erb within layouts/application (19.3ms)
74
+ Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.0ms)
75
+
76
+
77
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
78
+
79
+
80
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
81
+
82
+
83
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
84
+
85
+
86
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
87
+
88
+
89
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:36 +0200
90
+
91
+
92
+ Started POST "/posts" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
93
+ Processing by PostsController#create as HTML
94
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"GpJiKp/5Tmj8zjy476ptumabQ5xO62gwv4KpZyKDt2xe/Wi75hcY84Q4ypO8V1h0ZxTgR+FlFqE/+a2lZip4Yg==", "post"=>{"title"=>"dfs dfsfsfds"}, "commit"=>"Create Post"}
95
+  (0.1ms) begin transaction
96
+ SQL (0.7ms) INSERT INTO "posts" ("title", "created_at", "updated_at") VALUES (?, ?, ?) [["title", "dfs dfsfsfds"], ["created_at", "2015-04-08 17:33:39.242641"], ["updated_at", "2015-04-08 17:33:39.242641"]]
97
+  (0.5ms) commit transaction
98
+ Redirected to http://localhost:3000/posts/1
99
+ Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
100
+
101
+
102
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
103
+ Processing by PostsController#show as HTML
104
+ Parameters: {"id"=>"1"}
105
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
106
+ Rendered posts/show.html.erb within layouts/application (1.6ms)
107
+ Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.1ms)
108
+
109
+
110
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
111
+
112
+
113
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
114
+
115
+
116
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
117
+
118
+
119
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
120
+
121
+
122
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:39 +0200
123
+
124
+
125
+ Started GET "/posts/1/edit" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
126
+ Processing by PostsController#edit as HTML
127
+ Parameters: {"id"=>"1"}
128
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
129
+ Rendered posts/_form.html.erb (1.4ms)
130
+ Rendered posts/edit.html.erb within layouts/application (2.5ms)
131
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms)
132
+
133
+
134
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
135
+
136
+
137
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
138
+
139
+
140
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
141
+
142
+
143
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
144
+
145
+
146
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:42 +0200
147
+
148
+
149
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
150
+ Processing by PostsController#show as HTML
151
+ Parameters: {"id"=>"1"}
152
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
153
+ Rendered posts/show.html.erb within layouts/application (0.5ms)
154
+ Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms)
155
+
156
+
157
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
158
+
159
+
160
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
161
+
162
+
163
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
164
+
165
+
166
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
167
+
168
+
169
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:33:44 +0200
170
+
171
+
172
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
173
+ Processing by CommentsController#index as HTML
174
+ Parameters: {"post_id"=>"1"}
175
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
176
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
177
+ Rendered comments/index.html.erb within layouts/application (2.7ms)
178
+ Completed 200 OK in 18ms (Views: 7.4ms | ActiveRecord: 0.4ms)
179
+
180
+
181
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
182
+
183
+
184
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
185
+
186
+
187
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
188
+
189
+
190
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
191
+
192
+
193
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:02 +0200
194
+
195
+
196
+ Started GET "/posts/1/comments/new" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
197
+ Processing by CommentsController#new as HTML
198
+ Parameters: {"post_id"=>"1"}
199
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
200
+ Rendered comments/_form.html.erb (4.4ms)
201
+ Rendered comments/new.html.erb within layouts/application (6.3ms)
202
+ Completed 200 OK in 20ms (Views: 10.2ms | ActiveRecord: 0.2ms)
203
+
204
+
205
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
206
+
207
+
208
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
209
+
210
+
211
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
212
+
213
+
214
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
215
+
216
+
217
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:04 +0200
218
+
219
+
220
+ Started POST "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
221
+ Processing by CommentsController#create as HTML
222
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"t6vN2lh+j6//Mq65K9sHlsTXXoQTEQQBvxsJa8M0Na3zxMdLIZDZNIfEWJJ4JjJYxVj9X7yfepA/YA2ph536ow==", "comment"=>{"content"=>"sdfsfsfsf"}, "commit"=>"Create Comment", "post_id"=>"1"}
223
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
224
+  (0.1ms) begin transaction
225
+ SQL (0.3ms) INSERT INTO "comments" ("content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["content", "sdfsfsfsf"], ["post_id", 1], ["created_at", "2015-04-08 17:34:07.041021"], ["updated_at", "2015-04-08 17:34:07.041021"]]
226
+  (1.1ms) commit transaction
227
+ Redirected to http://localhost:3000/posts/1/comments/1
228
+ Completed 302 Found in 5ms (ActiveRecord: 1.6ms)
229
+
230
+
231
+ Started GET "/posts/1/comments/1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
232
+ Processing by CommentsController#show as HTML
233
+ Parameters: {"post_id"=>"1", "id"=>"1"}
234
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
235
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", 1]]
236
+ Rendered comments/show.html.erb within layouts/application (1.0ms)
237
+ Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
238
+
239
+
240
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
241
+
242
+
243
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
244
+
245
+
246
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
247
+
248
+
249
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
250
+
251
+
252
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:07 +0200
253
+
254
+
255
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
256
+ Processing by CommentsController#index as HTML
257
+ Parameters: {"post_id"=>"1"}
258
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
259
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
260
+ Rendered comments/index.html.erb within layouts/application (0.8ms)
261
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
262
+
263
+
264
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
265
+
266
+
267
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
268
+
269
+
270
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
271
+
272
+
273
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
274
+
275
+
276
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:09 +0200
277
+
278
+
279
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
280
+ Processing by CommentsController#index as HTML
281
+ Parameters: {"post_id"=>"1"}
282
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
283
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
284
+ Rendered comments/index.html.erb within layouts/application (0.8ms)
285
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
286
+
287
+
288
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
289
+
290
+
291
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
292
+
293
+
294
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
295
+
296
+
297
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
298
+
299
+
300
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:34:59 +0200
301
+
302
+
303
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:41:21 +0200
304
+ Processing by PostsController#show as HTML
305
+ Parameters: {"id"=>"1"}
306
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
307
+ Rendered posts/show.html.erb within layouts/application (1.4ms)
308
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms)
309
+
310
+ ActionView::Template::Error (undefined method `each' for nil:NilClass):
311
+ 16: </thead>
312
+ 17:
313
+ 18: <tbody>
314
+ 19: <% @posts.each do |post| %>
315
+ 20: <tr>
316
+ 21: <td><%= post.title %></td>
317
+ 22: <td><%= link_to 'Show', post %></td>
318
+ app/views/posts/show.html.erb:19:in `_app_views_posts_show_html_erb___3646462634428918543_70281281978500'
319
+
320
+
321
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (4.8ms)
322
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
323
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.7ms)
324
+ Rendered /Users/rafaelnowrotek/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (15.6ms)
325
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
326
+  (0.0ms) select sqlite_version(*)
327
+  (0.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
328
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
329
+ Migrating to CreatePosts (20150408174454)
330
+  (0.0ms) begin transaction
331
+  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
332
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150408174454"]]
333
+  (0.5ms) commit transaction
334
+ Migrating to CreateComments (20150408174500)
335
+  (0.1ms) begin transaction
336
+ DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/rafaelnowrotek/Documents/Projekte/Project Play/scaffold_assoc/test/dummy/db/migrate/20150408174500_create_comments.rb:10)
337
+  (0.4ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "post_id" integer, "created_at" datetime, "updated_at" datetime)
338
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150408174500"]]
339
+  (0.5ms) commit transaction
340
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
341
+
342
+
343
+ Started GET "/posts" for 127.0.0.1 at 2015-04-08 19:45:18 +0200
344
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
345
+ Processing by PostsController#index as HTML
346
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
347
+ Rendered posts/index.html.erb within layouts/application (10.2ms)
348
+ Completed 200 OK in 33ms (Views: 32.1ms | ActiveRecord: 0.2ms)
349
+
350
+
351
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:19 +0200
352
+
353
+
354
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:19 +0200
355
+
356
+
357
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:19 +0200
358
+
359
+
360
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:19 +0200
361
+
362
+
363
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:19 +0200
364
+
365
+
366
+ Started GET "/posts/new" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
367
+ Processing by PostsController#new as HTML
368
+ Rendered posts/_form.html.erb (14.7ms)
369
+ Rendered posts/new.html.erb within layouts/application (18.0ms)
370
+ Completed 200 OK in 30ms (Views: 27.1ms | ActiveRecord: 0.2ms)
371
+
372
+
373
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
374
+
375
+
376
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
377
+
378
+
379
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
380
+
381
+
382
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
383
+
384
+
385
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:22 +0200
386
+
387
+
388
+ Started POST "/posts" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
389
+ Processing by PostsController#create as HTML
390
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tj5MVDgYEsrIWRgF/M+CmKSPWZUH1oDQO/XUESKsApDyUUbFQfZEUbCv7i6vMrdWpQD6TqhY/kG7jtDTZgXNng==", "post"=>{"title"=>"sfsdfsfsfs", "content"=>"sfsfsf"}, "commit"=>"Create Post"}
391
+  (0.1ms) begin transaction
392
+ SQL (0.6ms) INSERT INTO "posts" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "sfsdfsfsfs"], ["content", "sfsfsf"], ["created_at", "2015-04-08 17:45:26.317068"], ["updated_at", "2015-04-08 17:45:26.317068"]]
393
+  (0.5ms) commit transaction
394
+ Redirected to http://localhost:3000/posts/1
395
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
396
+
397
+
398
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
399
+ Processing by PostsController#show as HTML
400
+ Parameters: {"id"=>"1"}
401
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
402
+ Rendered posts/show.html.erb within layouts/application (1.0ms)
403
+ Completed 200 OK in 10ms (Views: 4.2ms | ActiveRecord: 0.2ms)
404
+
405
+
406
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
407
+
408
+
409
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
410
+
411
+
412
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
413
+
414
+
415
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
416
+
417
+
418
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:45:26 +0200
419
+
420
+
421
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
422
+ Processing by PostsController#show as HTML
423
+ Parameters: {"id"=>"1"}
424
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
425
+ Rendered posts/show.html.erb within layouts/application (0.9ms)
426
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
427
+
428
+
429
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
430
+
431
+
432
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
433
+
434
+
435
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
436
+
437
+
438
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
439
+
440
+
441
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:48:12 +0200
442
+
443
+
444
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
445
+ Processing by CommentsController#index as HTML
446
+ Parameters: {"post_id"=>"1"}
447
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
448
+ Comment Load (0.3ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
449
+ Rendered comments/index.html.erb within layouts/application (1.7ms)
450
+ Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 0.5ms)
451
+
452
+
453
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
454
+
455
+
456
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
457
+
458
+
459
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
460
+
461
+
462
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
463
+
464
+
465
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:48:16 +0200
466
+
467
+
468
+ Started GET "/posts/1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
469
+ Processing by PostsController#show as HTML
470
+ Parameters: {"id"=>"1"}
471
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
472
+ Rendered posts/show.html.erb within layouts/application (1.4ms)
473
+ Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.1ms)
474
+
475
+
476
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
477
+
478
+
479
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
480
+
481
+
482
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
483
+
484
+
485
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
486
+
487
+
488
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:55 +0200
489
+
490
+
491
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
492
+ Processing by CommentsController#index as HTML
493
+ Parameters: {"post_id"=>"1"}
494
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
495
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
496
+ Rendered comments/index.html.erb within layouts/application (0.6ms)
497
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)
498
+
499
+
500
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
501
+
502
+
503
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
504
+
505
+
506
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
507
+
508
+
509
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
510
+
511
+
512
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:57 +0200
513
+
514
+
515
+ Started GET "/posts/1/comments/new" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
516
+ Processing by CommentsController#new as HTML
517
+ Parameters: {"post_id"=>"1"}
518
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
519
+ Rendered comments/_form.html.erb (3.7ms)
520
+ Rendered comments/new.html.erb within layouts/application (4.9ms)
521
+ Completed 200 OK in 16ms (Views: 7.9ms | ActiveRecord: 0.1ms)
522
+
523
+
524
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
525
+
526
+
527
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
528
+
529
+
530
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
531
+
532
+
533
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
534
+
535
+
536
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:53:58 +0200
537
+
538
+
539
+ Started POST "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
540
+ Processing by CommentsController#create as HTML
541
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"KuWCnTv026FoqgDirAFf8p6Cup9ny8SlxHlqPkpsTORuiogMQhqNOhBc9sn//Go8nw0ZRMhFujREAm78DsWD6g==", "comment"=>{"title"=>"sdfsdfsd", "content"=>"sdfsfsfds"}, "commit"=>"Create Comment", "post_id"=>"1"}
542
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
543
+  (0.1ms) begin transaction
544
+ SQL (0.3ms) INSERT INTO "comments" ("title", "content", "post_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["title", "sdfsdfsd"], ["content", "sdfsfsfds"], ["post_id", 1], ["created_at", "2015-04-08 17:54:02.062232"], ["updated_at", "2015-04-08 17:54:02.062232"]]
545
+  (0.6ms) commit transaction
546
+ Redirected to http://localhost:3000/posts/1/comments/1
547
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
548
+
549
+
550
+ Started GET "/posts/1/comments/1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
551
+ Processing by CommentsController#show as HTML
552
+ Parameters: {"post_id"=>"1", "id"=>"1"}
553
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
554
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", 1]]
555
+ Rendered comments/show.html.erb within layouts/application (1.0ms)
556
+ Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)
557
+
558
+
559
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
560
+
561
+
562
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
563
+
564
+
565
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
566
+
567
+
568
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
569
+
570
+
571
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:02 +0200
572
+
573
+
574
+ Started GET "/posts/1/comments/1/edit" for 127.0.0.1 at 2015-04-08 19:54:03 +0200
575
+ Processing by CommentsController#edit as HTML
576
+ Parameters: {"post_id"=>"1", "id"=>"1"}
577
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
578
+ Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", 1]]
579
+ Rendered comments/_form.html.erb (2.0ms)
580
+ Rendered comments/edit.html.erb within layouts/application (3.0ms)
581
+ Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.1ms)
582
+
583
+
584
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:04 +0200
585
+
586
+
587
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:04 +0200
588
+
589
+
590
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:04 +0200
591
+
592
+
593
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:04 +0200
594
+
595
+
596
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:04 +0200
597
+
598
+
599
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
600
+ Processing by CommentsController#index as HTML
601
+ Parameters: {"post_id"=>"1"}
602
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
603
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
604
+ Rendered comments/index.html.erb within layouts/application (0.7ms)
605
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms)
606
+
607
+
608
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
609
+
610
+
611
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
612
+
613
+
614
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
615
+
616
+
617
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
618
+
619
+
620
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 19:54:19 +0200
621
+
622
+
623
+ Started GET "/posts/1/comments" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
624
+ Processing by CommentsController#index as HTML
625
+ Parameters: {"post_id"=>"1"}
626
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
627
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
628
+ Rendered comments/index.html.erb within layouts/application (1.1ms)
629
+ Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.2ms)
630
+
631
+
632
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
633
+
634
+
635
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
636
+
637
+
638
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
639
+
640
+
641
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
642
+
643
+
644
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:24 +0200
645
+
646
+
647
+ Started GET "/posts/1/comments/1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
648
+ Processing by CommentsController#show as HTML
649
+ Parameters: {"post_id"=>"1", "id"=>"1"}
650
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
651
+ Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", 1]]
652
+ Rendered comments/show.html.erb within layouts/application (0.6ms)
653
+ Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)
654
+
655
+
656
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
657
+
658
+
659
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
660
+
661
+
662
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
663
+
664
+
665
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
666
+
667
+
668
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:26 +0200
669
+
670
+
671
+ Started GET "/posts/1/comments/1/edit" for 127.0.0.1 at 2015-04-08 20:06:27 +0200
672
+ Processing by CommentsController#edit as HTML
673
+ Parameters: {"post_id"=>"1", "id"=>"1"}
674
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]]
675
+ Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."id" = ? LIMIT 1 [["id", 1]]
676
+ Rendered comments/_form.html.erb (1.5ms)
677
+ Rendered comments/edit.html.erb within layouts/application (2.3ms)
678
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)
679
+
680
+
681
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:27 +0200
682
+
683
+
684
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:27 +0200
685
+
686
+
687
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2015-04-08 20:06:27 +0200
688
+
689
+
690
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:27 +0200
691
+
692
+
693
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2015-04-08 20:06:27 +0200