acts_as_permalinkable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +32 -0
  4. data/lib/acts_as_permalinkable.rb +11 -0
  5. data/lib/acts_as_permalinkable/version.rb +3 -0
  6. data/lib/tasks/acts_as_permalinkable_tasks.rake +4 -0
  7. data/test/acts_as_permalinkable_test.rb +7 -0
  8. data/test/dummy/README.rdoc +28 -0
  9. data/test/dummy/Rakefile +6 -0
  10. data/test/dummy/app/assets/javascripts/application.js +13 -0
  11. data/test/dummy/app/assets/javascripts/posts.js +2 -0
  12. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/test/dummy/app/assets/stylesheets/posts.css +4 -0
  14. data/test/dummy/app/assets/stylesheets/scaffold.css +56 -0
  15. data/test/dummy/app/controllers/application_controller.rb +5 -0
  16. data/test/dummy/app/controllers/posts_controller.rb +58 -0
  17. data/test/dummy/app/helpers/application_helper.rb +2 -0
  18. data/test/dummy/app/helpers/posts_helper.rb +2 -0
  19. data/test/dummy/app/models/post.rb +3 -0
  20. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  21. data/test/dummy/app/views/posts/_form.html.erb +29 -0
  22. data/test/dummy/app/views/posts/edit.html.erb +6 -0
  23. data/test/dummy/app/views/posts/index.html.erb +29 -0
  24. data/test/dummy/app/views/posts/new.html.erb +5 -0
  25. data/test/dummy/app/views/posts/show.html.erb +19 -0
  26. data/test/dummy/bin/bundle +3 -0
  27. data/test/dummy/bin/rails +4 -0
  28. data/test/dummy/bin/rake +4 -0
  29. data/test/dummy/config.ru +4 -0
  30. data/test/dummy/config/application.rb +23 -0
  31. data/test/dummy/config/boot.rb +5 -0
  32. data/test/dummy/config/database.yml +25 -0
  33. data/test/dummy/config/environment.rb +5 -0
  34. data/test/dummy/config/environments/development.rb +37 -0
  35. data/test/dummy/config/environments/production.rb +82 -0
  36. data/test/dummy/config/environments/test.rb +39 -0
  37. data/test/dummy/config/initializers/assets.rb +8 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  40. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  41. data/test/dummy/config/initializers/inflections.rb +16 -0
  42. data/test/dummy/config/initializers/mime_types.rb +4 -0
  43. data/test/dummy/config/initializers/session_store.rb +3 -0
  44. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  45. data/test/dummy/config/locales/en.yml +23 -0
  46. data/test/dummy/config/routes.rb +58 -0
  47. data/test/dummy/config/secrets.yml +22 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/migrate/20140905082902_create_posts.rb +12 -0
  50. data/test/dummy/db/schema.rb +26 -0
  51. data/test/dummy/log/development.log +551 -0
  52. data/test/dummy/public/404.html +67 -0
  53. data/test/dummy/public/422.html +67 -0
  54. data/test/dummy/public/500.html +66 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/dummy/test/controllers/posts_controller_test.rb +49 -0
  57. data/test/dummy/test/fixtures/posts.yml +11 -0
  58. data/test/dummy/test/helpers/posts_helper_test.rb +4 -0
  59. data/test/dummy/test/models/post_test.rb +7 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  75. data/test/test_helper.rb +15 -0
  76. metadata +187 -0
@@ -0,0 +1,551 @@
1
+  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+  (0.4ms) 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 (20140905082902)
6
+  (0.0ms) begin transaction
7
+  (0.3ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "content" text, "slug" varchar(255), "created_at" datetime, "updated_at" datetime)
8
+  (0.9ms) CREATE UNIQUE INDEX "index_posts_on_slug" ON "posts" ("slug")
9
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140905082902"]]
10
+  (0.6ms) commit transaction
11
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
12
+  (0.1ms)  SELECT sql
13
+ FROM sqlite_master
14
+ WHERE name='index_posts_on_slug' AND type='index'
15
+ UNION ALL
16
+ SELECT sql
17
+ FROM sqlite_temp_master
18
+ WHERE name='index_posts_on_slug' AND type='index'
19
+ 
20
+
21
+
22
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:29:20 +0800
23
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ Processing by PostsController#index as HTML
25
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
26
+ Rendered posts/index.html.erb within layouts/application (1.7ms)
27
+ Completed 200 OK in 59ms (Views: 57.5ms | ActiveRecord: 0.1ms)
28
+
29
+
30
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:29:20 +0800
31
+ Processing by PostsController#index as HTML
32
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
33
+ Rendered posts/index.html.erb within layouts/application (0.5ms)
34
+ Completed 200 OK in 20ms (Views: 19.7ms | ActiveRecord: 0.1ms)
35
+
36
+
37
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:21 +0800
38
+
39
+
40
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:21 +0800
41
+
42
+
43
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:21 +0800
44
+
45
+
46
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:21 +0800
47
+
48
+
49
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:21 +0800
50
+
51
+
52
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:29:23 +0800
53
+ Processing by PostsController#new as HTML
54
+ Rendered posts/_form.html.erb (19.5ms)
55
+ Rendered posts/new.html.erb within layouts/application (23.3ms)
56
+ Completed 200 OK in 40ms (Views: 38.0ms | ActiveRecord: 0.6ms)
57
+
58
+
59
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
60
+ Processing by PostsController#new as HTML
61
+ Rendered posts/_form.html.erb (2.3ms)
62
+ Rendered posts/new.html.erb within layouts/application (3.0ms)
63
+ Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.0ms)
64
+
65
+
66
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
67
+
68
+
69
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
70
+
71
+
72
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
73
+
74
+
75
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
76
+
77
+
78
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:24 +0800
79
+
80
+
81
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
82
+ Processing by PostsController#new as HTML
83
+ Rendered posts/_form.html.erb (4.7ms)
84
+ Rendered posts/new.html.erb within layouts/application (5.3ms)
85
+ Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.4ms)
86
+
87
+
88
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
89
+
90
+
91
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
92
+
93
+
94
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
95
+
96
+
97
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
98
+
99
+
100
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:47 +0800
101
+
102
+
103
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:29:48 +0800
104
+ Processing by PostsController#new as HTML
105
+ Rendered posts/_form.html.erb (2.7ms)
106
+ Rendered posts/new.html.erb within layouts/application (3.5ms)
107
+ Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.0ms)
108
+
109
+
110
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
111
+
112
+
113
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
114
+
115
+
116
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
117
+
118
+
119
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
120
+
121
+
122
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
123
+
124
+
125
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
126
+ Processing by PostsController#new as HTML
127
+ Rendered posts/_form.html.erb (2.0ms)
128
+ Rendered posts/new.html.erb within layouts/application (2.5ms)
129
+ Completed 200 OK in 39ms (Views: 38.3ms | ActiveRecord: 0.0ms)
130
+
131
+
132
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
133
+
134
+
135
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
136
+
137
+
138
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
139
+
140
+
141
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
142
+
143
+
144
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:29:49 +0800
145
+
146
+
147
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:30:03 +0800
148
+ Processing by PostsController#create as HTML
149
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"a asdfasdf asdfasf", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
150
+  (0.1ms) begin transaction
151
+ Post Exists (0.2ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = 'a-asdfasdf-asdfasf' LIMIT 1
152
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", ""], ["created_at", "2014-09-05 08:30:03.376334"], ["slug", "a-asdfasdf-asdfasf"], ["title", "a asdfasdf asdfasf"], ["updated_at", "2014-09-05 08:30:03.376334"]]
153
+  (0.7ms) commit transaction
154
+ Redirected to http://localhost:3000/posts/a-asdfasdf-asdfasf
155
+ Completed 302 Found in 80ms (ActiveRecord: 1.4ms)
156
+
157
+
158
+ Started GET "/posts/a-asdfasdf-asdfasf" for 127.0.0.1 at 2014-09-05 16:30:03 +0800
159
+ Processing by PostsController#show as HTML
160
+ Parameters: {"id"=>"a-asdfasdf-asdfasf"}
161
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 0]]
162
+ Completed 404 Not Found in 1ms
163
+
164
+ ActiveRecord::RecordNotFound (Couldn't find Post with 'id'=a-asdfasdf-asdfasf):
165
+ app/controllers/posts_controller.rb:51:in `set_post'
166
+
167
+
168
+ Rendered /Users/tonytonyjan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.7ms)
169
+ Rendered /Users/tonytonyjan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
170
+ Rendered /Users/tonytonyjan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
171
+ Rendered /Users/tonytonyjan/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/actionpack-4.1.5/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (14.5ms)
172
+
173
+
174
+ Started GET "/posts/a-asdfasdf-asdfasf" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
175
+ Processing by PostsController#show as HTML
176
+ Parameters: {"id"=>"a-asdfasdf-asdfasf"}
177
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."slug" = 'a-asdfasdf-asdfasf' LIMIT 1
178
+ Rendered posts/show.html.erb within layouts/application (1.9ms)
179
+ Completed 200 OK in 26ms (Views: 19.4ms | ActiveRecord: 0.4ms)
180
+
181
+
182
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
183
+
184
+
185
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
186
+
187
+
188
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
189
+
190
+
191
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
192
+
193
+
194
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:19 +0800
195
+
196
+
197
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
198
+ Processing by PostsController#index as HTML
199
+ Post Load (0.1ms) SELECT "posts".* FROM "posts"
200
+ Rendered posts/index.html.erb within layouts/application (1.4ms)
201
+ Completed 200 OK in 18ms (Views: 17.8ms | ActiveRecord: 0.1ms)
202
+
203
+
204
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
205
+
206
+
207
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
208
+
209
+
210
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
211
+
212
+
213
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
214
+
215
+
216
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:21 +0800
217
+
218
+
219
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
220
+ Processing by PostsController#new as HTML
221
+ Rendered posts/_form.html.erb (3.1ms)
222
+ Rendered posts/new.html.erb within layouts/application (3.9ms)
223
+ Completed 200 OK in 28ms (Views: 28.1ms | ActiveRecord: 0.0ms)
224
+
225
+
226
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
227
+
228
+
229
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
230
+
231
+
232
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
233
+
234
+
235
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
236
+
237
+
238
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:22 +0800
239
+
240
+
241
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
242
+ Processing by PostsController#create as HTML
243
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"Hello Work", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
244
+  (0.1ms) begin transaction
245
+ Post Exists (0.2ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = 'hello-work' LIMIT 1
246
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", ""], ["created_at", "2014-09-05 08:30:29.532321"], ["slug", "hello-work"], ["title", "Hello Work"], ["updated_at", "2014-09-05 08:30:29.532321"]]
247
+  (0.6ms) commit transaction
248
+ Redirected to http://localhost:3000/posts/hello-work
249
+ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
250
+
251
+
252
+ Started GET "/posts/hello-work" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
253
+ Processing by PostsController#show as HTML
254
+ Parameters: {"id"=>"hello-work"}
255
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."slug" = 'hello-work' LIMIT 1
256
+ Rendered posts/show.html.erb within layouts/application (0.8ms)
257
+ Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.3ms)
258
+
259
+
260
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
261
+
262
+
263
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
264
+
265
+
266
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
267
+
268
+
269
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
270
+
271
+
272
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:30:29 +0800
273
+
274
+
275
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
276
+ Processing by PostsController#index as HTML
277
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
278
+ Rendered posts/index.html.erb within layouts/application (2.0ms)
279
+ Completed 200 OK in 17ms (Views: 16.8ms | ActiveRecord: 0.2ms)
280
+
281
+
282
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
283
+
284
+
285
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
286
+
287
+
288
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
289
+
290
+
291
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
292
+
293
+
294
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:34:57 +0800
295
+
296
+
297
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
298
+ Processing by PostsController#new as HTML
299
+ Rendered posts/_form.html.erb (2.5ms)
300
+ Rendered posts/new.html.erb within layouts/application (3.4ms)
301
+ Completed 200 OK in 18ms (Views: 17.8ms | ActiveRecord: 0.0ms)
302
+
303
+
304
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
305
+
306
+
307
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
308
+
309
+
310
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
311
+
312
+
313
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
314
+
315
+
316
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:34:59 +0800
317
+
318
+
319
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
320
+ Processing by PostsController#create as HTML
321
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"窘了", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
322
+  (0.1ms) begin transaction
323
+ Post Exists (0.1ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = '' LIMIT 1
324
+  (0.1ms) rollback transaction
325
+ Rendered posts/_form.html.erb (4.4ms)
326
+ Rendered posts/new.html.erb within layouts/application (5.2ms)
327
+ Completed 200 OK in 23ms (Views: 19.0ms | ActiveRecord: 0.3ms)
328
+
329
+
330
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
331
+
332
+
333
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
334
+
335
+
336
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
337
+
338
+
339
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
340
+
341
+
342
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:04 +0800
343
+
344
+
345
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:35:07 +0800
346
+ Processing by PostsController#create as HTML
347
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"窘了", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
348
+  (0.1ms) begin transaction
349
+ Post Exists (0.1ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = '' LIMIT 1
350
+  (0.1ms) rollback transaction
351
+ Rendered posts/_form.html.erb (2.0ms)
352
+ Rendered posts/new.html.erb within layouts/application (6.4ms)
353
+ Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.3ms)
354
+
355
+
356
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:08 +0800
357
+
358
+
359
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:08 +0800
360
+
361
+
362
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:08 +0800
363
+
364
+
365
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:08 +0800
366
+
367
+
368
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:08 +0800
369
+
370
+
371
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:35:15 +0800
372
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
373
+ Processing by PostsController#create as HTML
374
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"窘了", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
375
+  (0.0ms) begin transaction
376
+ Post Exists (0.1ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = '9e5c93' LIMIT 1
377
+ SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", ""], ["created_at", "2014-09-05 08:35:15.830918"], ["slug", "9e5c93"], ["title", "窘了"], ["updated_at", "2014-09-05 08:35:15.830918"]]
378
+  (0.6ms) commit transaction
379
+ Redirected to http://localhost:3000/posts/9e5c93
380
+ Completed 302 Found in 111ms (ActiveRecord: 1.4ms)
381
+
382
+
383
+ Started GET "/posts/9e5c93" for 127.0.0.1 at 2014-09-05 16:35:15 +0800
384
+ Processing by PostsController#show as HTML
385
+ Parameters: {"id"=>"9e5c93"}
386
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."slug" = '9e5c93' LIMIT 1
387
+ Rendered posts/show.html.erb within layouts/application (2.3ms)
388
+ Completed 200 OK in 36ms (Views: 32.7ms | ActiveRecord: 0.2ms)
389
+
390
+
391
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:15 +0800
392
+
393
+
394
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:16 +0800
395
+
396
+
397
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:16 +0800
398
+
399
+
400
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:16 +0800
401
+
402
+
403
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:16 +0800
404
+
405
+
406
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
407
+ Processing by PostsController#index as HTML
408
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
409
+ Rendered posts/index.html.erb within layouts/application (2.9ms)
410
+ Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.2ms)
411
+
412
+
413
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
414
+
415
+
416
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
417
+
418
+
419
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
420
+
421
+
422
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
423
+
424
+
425
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:18 +0800
426
+
427
+
428
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
429
+ Processing by PostsController#new as HTML
430
+ Rendered posts/_form.html.erb (8.5ms)
431
+ Rendered posts/new.html.erb within layouts/application (11.8ms)
432
+ Completed 200 OK in 26ms (Views: 25.6ms | ActiveRecord: 0.0ms)
433
+
434
+
435
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
436
+
437
+
438
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
439
+
440
+
441
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
442
+
443
+
444
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
445
+
446
+
447
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:19 +0800
448
+
449
+
450
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
451
+ Processing by PostsController#create as HTML
452
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"ajsidf jaisfjiasdf哈哈", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
453
+  (0.1ms) begin transaction
454
+ Post Exists (0.1ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = 'ajsidf-jaisfjiasdf' LIMIT 1
455
+ SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "slug", "title", "updated_at") VALUES (?, ?, ?, ?, ?) [["content", ""], ["created_at", "2014-09-05 08:35:25.503082"], ["slug", "ajsidf-jaisfjiasdf"], ["title", "ajsidf jaisfjiasdf哈哈"], ["updated_at", "2014-09-05 08:35:25.503082"]]
456
+  (0.6ms) commit transaction
457
+ Redirected to http://localhost:3000/posts/ajsidf-jaisfjiasdf
458
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
459
+
460
+
461
+ Started GET "/posts/ajsidf-jaisfjiasdf" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
462
+ Processing by PostsController#show as HTML
463
+ Parameters: {"id"=>"ajsidf-jaisfjiasdf"}
464
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."slug" = 'ajsidf-jaisfjiasdf' LIMIT 1
465
+ Rendered posts/show.html.erb within layouts/application (0.7ms)
466
+ Completed 200 OK in 54ms (Views: 52.9ms | ActiveRecord: 0.2ms)
467
+
468
+
469
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
470
+
471
+
472
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
473
+
474
+
475
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
476
+
477
+
478
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
479
+
480
+
481
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:25 +0800
482
+
483
+
484
+ Started GET "/posts" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
485
+ Processing by PostsController#index as HTML
486
+ Post Load (0.2ms) SELECT "posts".* FROM "posts"
487
+ Rendered posts/index.html.erb within layouts/application (2.8ms)
488
+ Completed 200 OK in 18ms (Views: 17.7ms | ActiveRecord: 0.2ms)
489
+
490
+
491
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
492
+
493
+
494
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
495
+
496
+
497
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
498
+
499
+
500
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
501
+
502
+
503
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:36 +0800
504
+
505
+
506
+ Started GET "/posts/new" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
507
+ Processing by PostsController#new as HTML
508
+ Rendered posts/_form.html.erb (3.0ms)
509
+ Rendered posts/new.html.erb within layouts/application (3.7ms)
510
+ Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms)
511
+
512
+
513
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
514
+
515
+
516
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
517
+
518
+
519
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
520
+
521
+
522
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
523
+
524
+
525
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:39 +0800
526
+
527
+
528
+ Started POST "/posts" for 127.0.0.1 at 2014-09-05 16:35:41 +0800
529
+ Processing by PostsController#create as HTML
530
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"tM7T7f6MdY+XBdLnwWdfHu42ckNze5UF4hq4LkcvpCQ=", "post"=>{"title"=>"ajsidf jaisfjiasdf", "content"=>"", "slug"=>""}, "commit"=>"Create Post"}
531
+  (0.1ms) begin transaction
532
+ Post Exists (0.2ms) SELECT 1 AS one FROM "posts" WHERE "posts"."slug" = 'ajsidf-jaisfjiasdf' LIMIT 1
533
+  (0.1ms) rollback transaction
534
+ Rendered posts/_form.html.erb (2.6ms)
535
+ Rendered posts/new.html.erb within layouts/application (3.3ms)
536
+ Completed 200 OK in 21ms (Views: 17.3ms | ActiveRecord: 0.4ms)
537
+
538
+
539
+ Started GET "/assets/posts.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:41 +0800
540
+
541
+
542
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:41 +0800
543
+
544
+
545
+ Started GET "/assets/scaffold.css?body=1" for 127.0.0.1 at 2014-09-05 16:35:41 +0800
546
+
547
+
548
+ Started GET "/assets/posts.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:41 +0800
549
+
550
+
551
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2014-09-05 16:35:41 +0800