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.
- data/MIT-LICENSE +20 -0
- data/README.md +138 -0
- data/Rakefile +40 -0
- data/app/controllers/exposed/base.rb +84 -0
- data/config/routes.rb +2 -0
- data/lib/exposed.rb +4 -0
- data/lib/exposed/engine.rb +5 -0
- data/lib/exposed/version.rb +3 -0
- data/lib/tasks/exposed_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/posts.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/posts.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +2 -0
- data/test/dummy/app/controllers/posts_controller.rb +2 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/posts_helper.rb +2 -0
- data/test/dummy/app/models/comment.rb +4 -0
- data/test/dummy/app/models/post.rb +4 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +5 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20121013230139_create_posts.rb +10 -0
- data/test/dummy/db/migrate/20121013230216_create_comments.rb +10 -0
- data/test/dummy/db/schema.rb +30 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +422 -0
- data/test/dummy/log/test.log +2067 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/comments.yml +13 -0
- data/test/dummy/test/fixtures/posts.yml +11 -0
- data/test/dummy/test/functional/posts_controller_test.rb +18 -0
- data/test/dummy/test/unit/comment_test.rb +7 -0
- data/test/dummy/test/unit/helpers/posts_helper_test.rb +4 -0
- data/test/dummy/test/unit/post_test.rb +7 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- data/test/exposed_test.rb +7 -0
- data/test/integration/delete_test.rb +25 -0
- data/test/integration/get_test.rb +53 -0
- data/test/integration/post_test.rb +25 -0
- data/test/integration/put_test.rb +25 -0
- data/test/test_helper.rb +41 -0
- 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
|
Binary file
|
@@ -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
|
+
[1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
|
6
|
+
[1m[35m (22.4ms)[0m CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
|
7
|
+
[1m[36m (0.1ms)[0m [1mPRAGMA index_list("schema_migrations")[0m
|
8
|
+
[1m[35m (5.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
9
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
10
|
+
Migrating to CreatePosts (20121013230139)
|
11
|
+
[1m[35m (0.1ms)[0m begin transaction
|
12
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
15
|
+
Migrating to CreatePosts (20121013230139)
|
16
|
+
[1m[35m (0.0ms)[0m select sqlite_version(*)
|
17
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
18
|
+
[1m[35m (0.9ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121013230139')[0m
|
20
|
+
[1m[35m (17.7ms)[0m commit transaction
|
21
|
+
Migrating to CreateComments (20121013230216)
|
22
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ('20121013230216')[0m
|
25
|
+
[1m[35m (4.2ms)[0m commit transaction
|
26
|
+
[1m[36m (0.5ms)[0m [1mselect sqlite_version(*)[0m
|
27
|
+
[1m[35m (0.1ms)[0m SELECT "schema_migrations"."version" FROM "schema_migrations"
|
28
|
+
[1m[36m (0.0ms)[0m [1mPRAGMA index_list("comments")[0m
|
29
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.5ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
60
|
+
[1m[35mComment Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
69
|
+
[1m[35mComment Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
226
|
+
[1m[35mComment Load (5.7ms)[0m 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
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
234
|
+
[1m[35mComment Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
242
|
+
[1m[35mComment Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.0ms)[0m SELECT "posts".* FROM "posts"
|
257
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)[0m
|
258
|
+
Completed 200 OK in 41ms (Views: 0.6ms | ActiveRecord: 0.7ms)
|
259
|
+
Connecting to database specified by database.yml
|
260
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
261
|
+
[1m[35m (0.3ms)[0m select sqlite_version(*)
|
262
|
+
[1m[36m (17.7ms)[0m [1mCREATE 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) [0m
|
263
|
+
[1m[35m (4.2ms)[0m 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
|
+
[1m[36m (4.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
265
|
+
[1m[35m (0.0ms)[0m PRAGMA index_list("schema_migrations")
|
266
|
+
[1m[36m (2.5ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
267
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
268
|
+
[1m[36m (3.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20121013230216')[0m
|
269
|
+
[1m[35m (3.0ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.7ms)[0m 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
|
+
[1m[36mPost Load (0.0ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["id", "1"]]
|
316
|
+
[1m[35mComment Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.2ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1[0m [["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
|
+
[1m[35mPost Load (0.1ms)[0m 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
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" [0m
|
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
|
+
[1m[35mPost Load (0.1ms)[0m SELECT "posts".* FROM "posts"
|
421
|
+
[1m[36mComment Load (0.4ms)[0m [1mSELECT "comments".* FROM "comments" WHERE "comments"."post_id" IN (1)[0m
|
422
|
+
Completed 200 OK in 54ms (Views: 0.5ms | ActiveRecord: 0.9ms)
|