exposed 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 (64) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +138 -0
  3. data/Rakefile +40 -0
  4. data/app/controllers/exposed/base.rb +84 -0
  5. data/config/routes.rb +2 -0
  6. data/lib/exposed.rb +4 -0
  7. data/lib/exposed/engine.rb +5 -0
  8. data/lib/exposed/version.rb +3 -0
  9. data/lib/tasks/exposed_tasks.rake +4 -0
  10. data/test/dummy/README.rdoc +261 -0
  11. data/test/dummy/Rakefile +7 -0
  12. data/test/dummy/app/assets/javascripts/application.js +15 -0
  13. data/test/dummy/app/assets/javascripts/posts.js +2 -0
  14. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  15. data/test/dummy/app/assets/stylesheets/posts.css +4 -0
  16. data/test/dummy/app/controllers/application_controller.rb +2 -0
  17. data/test/dummy/app/controllers/posts_controller.rb +2 -0
  18. data/test/dummy/app/helpers/application_helper.rb +2 -0
  19. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  20. data/test/dummy/app/models/comment.rb +4 -0
  21. data/test/dummy/app/models/post.rb +4 -0
  22. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  23. data/test/dummy/config.ru +4 -0
  24. data/test/dummy/config/application.rb +59 -0
  25. data/test/dummy/config/boot.rb +10 -0
  26. data/test/dummy/config/database.yml +25 -0
  27. data/test/dummy/config/environment.rb +5 -0
  28. data/test/dummy/config/environments/development.rb +37 -0
  29. data/test/dummy/config/environments/production.rb +67 -0
  30. data/test/dummy/config/environments/test.rb +37 -0
  31. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  32. data/test/dummy/config/initializers/inflections.rb +15 -0
  33. data/test/dummy/config/initializers/mime_types.rb +5 -0
  34. data/test/dummy/config/initializers/secret_token.rb +7 -0
  35. data/test/dummy/config/initializers/session_store.rb +8 -0
  36. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/test/dummy/config/locales/en.yml +5 -0
  38. data/test/dummy/config/routes.rb +5 -0
  39. data/test/dummy/db/development.sqlite3 +0 -0
  40. data/test/dummy/db/migrate/20121013230139_create_posts.rb +10 -0
  41. data/test/dummy/db/migrate/20121013230216_create_comments.rb +10 -0
  42. data/test/dummy/db/schema.rb +30 -0
  43. data/test/dummy/db/test.sqlite3 +0 -0
  44. data/test/dummy/log/development.log +422 -0
  45. data/test/dummy/log/test.log +2067 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +25 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/dummy/test/fixtures/comments.yml +13 -0
  52. data/test/dummy/test/fixtures/posts.yml +11 -0
  53. data/test/dummy/test/functional/posts_controller_test.rb +18 -0
  54. data/test/dummy/test/unit/comment_test.rb +7 -0
  55. data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
  56. data/test/dummy/test/unit/post_test.rb +7 -0
  57. data/test/dummy/tmp/pids/server.pid +1 -0
  58. data/test/exposed_test.rb +7 -0
  59. data/test/integration/delete_test.rb +25 -0
  60. data/test/integration/get_test.rb +53 -0
  61. data/test/integration/post_test.rb +25 -0
  62. data/test/integration/put_test.rb +25 -0
  63. data/test/test_helper.rb +41 -0
  64. metadata +186 -0
@@ -0,0 +1,30 @@
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 to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20121013230216) do
15
+
16
+ create_table "comments", :force => true do |t|
17
+ t.integer "post_id"
18
+ t.string "content"
19
+ t.datetime "created_at", :null => false
20
+ t.datetime "updated_at", :null => false
21
+ end
22
+
23
+ create_table "posts", :force => true do |t|
24
+ t.string "title"
25
+ t.string "content"
26
+ t.datetime "created_at", :null => false
27
+ t.datetime "updated_at", :null => false
28
+ end
29
+
30
+ end
@@ -0,0 +1,422 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+ Connecting to database specified by database.yml
5
+  (0.1ms) select sqlite_version(*)
6
+  (22.4ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
7
+  (0.1ms) PRAGMA index_list("schema_migrations")
8
+  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
9
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
10
+ Migrating to CreatePosts (20121013230139)
11
+  (0.1ms) begin transaction
12
+  (0.1ms) rollback transaction
13
+ Connecting to database specified by database.yml
14
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
15
+ Migrating to CreatePosts (20121013230139)
16
+  (0.0ms) select sqlite_version(*)
17
+  (0.0ms) begin transaction
18
+  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
19
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121013230139')
20
+  (17.7ms) commit transaction
21
+ Migrating to CreateComments (20121013230216)
22
+  (0.1ms) begin transaction
23
+  (0.4ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
24
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20121013230216')
25
+  (4.2ms) commit transaction
26
+  (0.5ms) select sqlite_version(*)
27
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
28
+  (0.0ms) PRAGMA index_list("comments")
29
+  (0.0ms) PRAGMA index_list("posts")
30
+
31
+
32
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 01:56:15 +0200
33
+ Connecting to database specified by database.yml
34
+ Processing by PostsController#index as HTML
35
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
36
+ Completed 200 OK in 62ms (Views: 0.2ms | ActiveRecord: 3.8ms)
37
+ Connecting to database specified by database.yml
38
+ Connecting to database specified by database.yml
39
+ Connecting to database specified by database.yml
40
+
41
+
42
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 02:04:39 +0200
43
+ Connecting to database specified by database.yml
44
+ Processing by PostsController#index as HTML
45
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
46
+ Completed 200 OK in 47ms (Views: 1.2ms | ActiveRecord: 4.2ms)
47
+
48
+
49
+ Started GET "/posts/1" for 192.168.56.1 at 2012-10-14 02:04:53 +0200
50
+ Processing by PostsController#show as HTML
51
+ Parameters: {"id"=>"1"}
52
+ Post Load (0.5ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
53
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.5ms)
54
+
55
+
56
+ Started GET "/posts/1?include=comments" for 192.168.56.1 at 2012-10-14 02:05:01 +0200
57
+ Processing by PostsController#show as HTML
58
+ Parameters: {"include"=>"comments", "id"=>"1"}
59
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
60
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
61
+ Completed 200 OK in 57ms (Views: 0.6ms | ActiveRecord: 0.9ms)
62
+
63
+
64
+ Started GET "/posts/1?include=comments" for 192.168.56.1 at 2012-10-14 05:51:47 +0200
65
+ Connecting to database specified by database.yml
66
+ Processing by PostsController#show as HTML
67
+ Parameters: {"include"=>"comments", "id"=>"1"}
68
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
69
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
70
+ Completed 200 OK in 108ms (Views: 1.6ms | ActiveRecord: 4.5ms)
71
+
72
+
73
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 05:51:55 +0200
74
+ Processing by PostsController#index as HTML
75
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
76
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 0.2ms)
77
+
78
+
79
+ Started GET "/posts/index" for 192.168.56.1 at 2012-10-14 05:52:00 +0200
80
+ Processing by PostsController#show as HTML
81
+ Parameters: {"id"=>"index"}
82
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "index"]]
83
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
84
+
85
+
86
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 05:52:05 +0200
87
+ Processing by PostsController#index as HTML
88
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
89
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.2ms)
90
+
91
+
92
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 05:53:12 +0200
93
+ Processing by PostsController#index as HTML
94
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
95
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 0.6ms)
96
+
97
+
98
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:53:17 +0200
99
+ Processing by PostsController#show as HTML
100
+ Parameters: {"id"=>"blah"}
101
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
102
+ Completed 404 Not Found in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
103
+
104
+
105
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:53:29 +0200
106
+ Connecting to database specified by database.yml
107
+ Processing by PostsController#show as HTML
108
+ Parameters: {"id"=>"blah"}
109
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
110
+ Completed 404 Not Found in 40ms (Views: 0.2ms | ActiveRecord: 3.9ms)
111
+
112
+
113
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:53:50 +0200
114
+ Processing by PostsController#show as HTML
115
+ Parameters: {"id"=>"blah"}
116
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
117
+ Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms)
118
+
119
+
120
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:54:25 +0200
121
+ Connecting to database specified by database.yml
122
+ Processing by PostsController#show as HTML
123
+ Parameters: {"id"=>"blah"}
124
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
125
+ Completed 404 Not Found in 41ms (Views: 0.2ms | ActiveRecord: 4.6ms)
126
+
127
+
128
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:54:55 +0200
129
+ Processing by PostsController#show as HTML
130
+ Parameters: {"id"=>"blah"}
131
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
132
+ Completed 404 Not Found in 5ms (Views: 0.2ms | ActiveRecord: 1.9ms)
133
+
134
+
135
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:55:10 +0200
136
+ Connecting to database specified by database.yml
137
+ Processing by PostsController#show as HTML
138
+ Parameters: {"id"=>"blah"}
139
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
140
+ Completed 404 Not Found in 40ms (Views: 0.2ms | ActiveRecord: 5.7ms)
141
+
142
+
143
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:55:29 +0200
144
+ Processing by PostsController#show as HTML
145
+ Parameters: {"id"=>"blah"}
146
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
147
+ Completed 404 Not Found in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
148
+
149
+
150
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:55:54 +0200
151
+ Processing by PostsController#show as HTML
152
+ Parameters: {"id"=>"blah"}
153
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
154
+ Completed 404 Not Found in 4ms (Views: 0.2ms | ActiveRecord: 0.8ms)
155
+
156
+
157
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:55:56 +0200
158
+ Processing by PostsController#show as HTML
159
+ Parameters: {"id"=>"blah"}
160
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
161
+ Completed 404 Not Found in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
162
+
163
+
164
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:56:05 +0200
165
+ Processing by PostsController#show as HTML
166
+ Parameters: {"id"=>"blah"}
167
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
168
+ Completed 404 Not Found in 3ms (Views: 0.4ms | ActiveRecord: 0.8ms)
169
+
170
+
171
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:57:35 +0200
172
+ Connecting to database specified by database.yml
173
+ Processing by PostsController#show as HTML
174
+ Parameters: {"id"=>"blah"}
175
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
176
+
177
+
178
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:58:18 +0200
179
+ Connecting to database specified by database.yml
180
+ Processing by PostsController#show as HTML
181
+ Parameters: {"id"=>"blah"}
182
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
183
+ Completed 404 Not Found in 40ms (Views: 0.2ms | ActiveRecord: 4.1ms)
184
+
185
+
186
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 05:58:45 +0200
187
+ Processing by PostsController#show as HTML
188
+ Parameters: {"id"=>"blah"}
189
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
190
+ Completed 404 Not Found in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms)
191
+
192
+
193
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 06:01:21 +0200
194
+ Connecting to database specified by database.yml
195
+ Processing by PostsController#show as HTML
196
+ Parameters: {"id"=>"blah"}
197
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
198
+ Completed 404 Not Found in 40ms (Views: 0.2ms | ActiveRecord: 7.4ms)
199
+
200
+
201
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 06:01:30 +0200
202
+ Processing by PostsController#show as HTML
203
+ Parameters: {"id"=>"blah"}
204
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
205
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
206
+
207
+
208
+ Started GET "/posts/blah" for 192.168.56.1 at 2012-10-14 10:09:44 +0200
209
+ Connecting to database specified by database.yml
210
+ Processing by PostsController#show as HTML
211
+ Parameters: {"id"=>"blah"}
212
+ Post Load (0.4ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "blah"]]
213
+ Completed 404 Not Found in 45ms (Views: 0.4ms | ActiveRecord: 3.5ms)
214
+
215
+
216
+ Started GET "/posts" for 192.168.56.1 at 2012-10-14 10:09:47 +0200
217
+ Processing by PostsController#index as HTML
218
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
219
+ Completed 200 OK in 12ms (Views: 0.8ms | ActiveRecord: 0.2ms)
220
+
221
+
222
+ Started GET "/posts?include=comments" for 192.168.56.1 at 2012-10-14 10:10:04 +0200
223
+ Processing by PostsController#index as HTML
224
+ Parameters: {"include"=>"comments"}
225
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
226
+ Comment Load (5.7ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)
227
+ Completed 200 OK in 74ms (Views: 0.6ms | ActiveRecord: 6.2ms)
228
+
229
+
230
+ Started GET "/posts?include=comments" for 192.168.56.1 at 2012-10-14 10:25:25 +0200
231
+ Processing by PostsController#index as HTML
232
+ Parameters: {"include"=>"comments"}
233
+ Post Load (0.0ms) SELECT "posts".* FROM "posts" 
234
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)
235
+ Completed 200 OK in 15ms (Views: 0.5ms | ActiveRecord: 1.2ms)
236
+
237
+
238
+ Started GET "/posts?include=comments" for 192.168.56.1 at 2012-10-14 10:25:27 +0200
239
+ Processing by PostsController#index as HTML
240
+ Parameters: {"include"=>"comments"}
241
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
242
+ Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)
243
+ Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.4ms)
244
+
245
+
246
+ Started GET "/posts" for 192.168.56.1 at 2012-10-27 08:21:43 +0200
247
+ Connecting to database specified by database.yml
248
+ Processing by PostsController#index as HTML
249
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
250
+ Completed 200 OK in 41ms (Views: 1.5ms | ActiveRecord: 7.6ms)
251
+
252
+
253
+ Started GET "/posts?include=comments" for 192.168.56.1 at 2012-10-27 08:21:53 +0200
254
+ Processing by PostsController#index as HTML
255
+ Parameters: {"include"=>"comments"}
256
+ Post Load (0.0ms) SELECT "posts".* FROM "posts"
257
+ Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)
258
+ Completed 200 OK in 41ms (Views: 0.6ms | ActiveRecord: 0.7ms)
259
+ Connecting to database specified by database.yml
260
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
261
+  (0.3ms) select sqlite_version(*)
262
+  (17.7ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
263
+  (4.2ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
264
+  (4.5ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
265
+  (0.0ms) PRAGMA index_list("schema_migrations")
266
+  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
267
+  (0.1ms) SELECT version FROM "schema_migrations"
268
+  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20121013230216')
269
+  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20121013230139')
270
+
271
+
272
+ Started GET "/posts" for 192.168.56.1 at 2013-02-07 14:28:21 +0100
273
+ Connecting to database specified by database.yml
274
+ Processing by PostsController#index as HTML
275
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
276
+ Completed 200 OK in 80ms (Views: 6.8ms | ActiveRecord: 13.2ms)
277
+
278
+
279
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-07 14:29:47 +0100
280
+ Processing by PostsController#show as HTML
281
+ Parameters: {"id"=>"1"}
282
+ Post Load (0.7ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
283
+ Completed 200 OK in 7ms (Views: 0.5ms | ActiveRecord: 0.7ms)
284
+
285
+
286
+ Started GET "/posts/1/comments" for 192.168.56.1 at 2013-02-07 14:29:53 +0100
287
+
288
+ ActionController::RoutingError (No route matches [GET] "/posts/1/comments"):
289
+ actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
290
+ actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
291
+ railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app'
292
+ railties (3.2.8) lib/rails/rack/logger.rb:16:in `call'
293
+ actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call'
294
+ rack (1.4.1) lib/rack/methodoverride.rb:21:in `call'
295
+ rack (1.4.1) lib/rack/runtime.rb:17:in `call'
296
+ activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
297
+ rack (1.4.1) lib/rack/lock.rb:15:in `call'
298
+ actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call'
299
+ railties (3.2.8) lib/rails/engine.rb:479:in `call'
300
+ railties (3.2.8) lib/rails/application.rb:223:in `call'
301
+ rack (1.4.1) lib/rack/content_length.rb:14:in `call'
302
+ railties (3.2.8) lib/rails/rack/log_tailer.rb:17:in `call'
303
+ rack (1.4.1) lib/rack/handler/webrick.rb:59:in `service'
304
+ /home/rod/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
305
+ /home/rod/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
306
+ /home/rod/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
307
+
308
+
309
+ Rendered /home/rod/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (3.3ms)
310
+
311
+
312
+ Started GET "/posts/1?include=comments" for 192.168.56.1 at 2013-02-07 14:30:41 +0100
313
+ Processing by PostsController#show as HTML
314
+ Parameters: {"include"=>"comments", "id"=>"1"}
315
+ Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
316
+ Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1
317
+ Completed 200 OK in 65ms (Views: 0.5ms | ActiveRecord: 0.6ms)
318
+
319
+
320
+ Started GET "/posts" for 192.168.56.1 at 2013-02-10 15:19:25 +0100
321
+ Connecting to database specified by database.yml
322
+ Processing by PostsController#index as HTML
323
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" 
324
+ Completed 200 OK in 59ms (Views: 1.4ms | ActiveRecord: 5.0ms)
325
+
326
+
327
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:19:30 +0100
328
+ Processing by PostsController#show as HTML
329
+ Parameters: {"id"=>"1"}
330
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
331
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)
332
+
333
+
334
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:20:22 +0100
335
+ Processing by PostsController#show as HTML
336
+ Parameters: {"id"=>"1"}
337
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
338
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
339
+
340
+
341
+ Started GET "/posts/1/" for 192.168.56.1 at 2013-02-10 15:23:46 +0100
342
+ Processing by PostsController#show as HTML
343
+ Parameters: {"id"=>"1"}
344
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
345
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
346
+
347
+
348
+ Started GET "/posts/2" for 192.168.56.1 at 2013-02-10 15:23:49 +0100
349
+ Processing by PostsController#show as HTML
350
+ Parameters: {"id"=>"2"}
351
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "2"]]
352
+ Completed 404 Not Found in 3ms (Views: 0.1ms | ActiveRecord: 0.2ms)
353
+
354
+
355
+ Started GET "/posts/3" for 192.168.56.1 at 2013-02-10 15:23:53 +0100
356
+ Processing by PostsController#show as HTML
357
+ Parameters: {"id"=>"3"}
358
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "3"]]
359
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
360
+
361
+
362
+ Started GET "/posts/3" for 192.168.56.1 at 2013-02-10 15:24:03 +0100
363
+ Processing by PostsController#show as HTML
364
+ Parameters: {"id"=>"3"}
365
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "3"]]
366
+ Completed 404 Not Found in 1ms (Views: 0.1ms | ActiveRecord: 0.1ms)
367
+
368
+
369
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:24:09 +0100
370
+ Processing by PostsController#show as HTML
371
+ Parameters: {"id"=>"1"}
372
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
373
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
374
+
375
+
376
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:24:15 +0100
377
+ Processing by PostsController#show as HTML
378
+ Parameters: {"id"=>"1"}
379
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
380
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
381
+
382
+
383
+ Started GET "/posts/1" for 127.0.0.1 at 2013-02-10 15:28:10 +0100
384
+ Processing by PostsController#show as */*
385
+ Parameters: {"id"=>"1"}
386
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
387
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
388
+
389
+
390
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:29:46 +0100
391
+ Processing by PostsController#show as HTML
392
+ Parameters: {"id"=>"1"}
393
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
394
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
395
+
396
+
397
+ Started GET "/posts/1" for 192.168.56.1 at 2013-02-10 15:39:28 +0100
398
+ Processing by PostsController#show as HTML
399
+ Parameters: {"id"=>"1"}
400
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "1"]]
401
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
402
+
403
+
404
+ Started GET "/posts" for 192.168.56.1 at 2013-02-10 15:39:56 +0100
405
+ Processing by PostsController#index as HTML
406
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" 
407
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)
408
+
409
+
410
+ Started GET "/posts" for 192.168.56.1 at 2013-02-11 14:24:02 +0100
411
+ Connecting to database specified by database.yml
412
+ Processing by PostsController#index as HTML
413
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" 
414
+ Completed 200 OK in 52ms (Views: 1.2ms | ActiveRecord: 4.9ms)
415
+
416
+
417
+ Started GET "/posts?include=comments" for 192.168.56.1 at 2013-02-11 14:24:22 +0100
418
+ Processing by PostsController#index as HTML
419
+ Parameters: {"include"=>"comments"}
420
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
421
+ Comment Load (0.4ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)
422
+ Completed 200 OK in 54ms (Views: 0.5ms | ActiveRecord: 0.9ms)