blogit 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2011 YOURNAME
1
+ Copyright 2011 Gavin Morrice
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,3 +1,58 @@
1
1
  # Blog
2
2
 
3
- This is a work in progress - please ignore for now
3
+ This is a work in progress - you're welcome to start using it now though
4
+
5
+ ## Installation
6
+
7
+ Add this to your Gemfile
8
+
9
+ ``` ruby
10
+ gem "blogit"
11
+ ```
12
+
13
+ ...and run `bundle install` to install the gem.
14
+
15
+ Next, run:
16
+
17
+ ``` bash
18
+ # add an initializer to config/initializers with all of the
19
+ # configuration options
20
+ $ rails g blogit:install
21
+ ```
22
+
23
+ And finally
24
+
25
+ ``` ruby
26
+ # This will add the necessary migrations to your app's db/migrate directory
27
+ rake blogit:install:migrations
28
+ # This will run any pending migrations
29
+ rake db:migrate
30
+ ```
31
+
32
+ ## Legal Stuff
33
+
34
+ Copyright 2011 Gavin Morrice
35
+
36
+ Permission is hereby granted, free of charge, to any person obtaining
37
+ a copy of this software and associated documentation files (the
38
+ "Software"), to deal in the Software without restriction, including
39
+ without limitation the rights to use, copy, modify, merge, publish,
40
+ distribute, sublicense, and/or sell copies of the Software, and to
41
+ permit persons to whom the Software is furnished to do so, subject to
42
+ the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be
45
+ included in all copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
48
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
49
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
50
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
51
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
52
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
53
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54
+
55
+
56
+ ## Credits
57
+
58
+ Developed by [Bodacious (Gavin Morrice) @ Katana Code](http://gavinmorrice.com)
@@ -24,31 +24,36 @@ module Blogit
24
24
  def show
25
25
  end
26
26
 
27
- def new
28
- end
27
+ # Don't include admin actions if not
28
+ if blogit_conf.include_admin_actions
29
29
 
30
- def edit
31
- end
30
+ def new
31
+ end
32
32
 
33
- def create
34
- if post.save
35
- redirect_to post, notice: 'Blog post was successfully created.'
36
- else
37
- render action: "new"
33
+ def edit
38
34
  end
39
- end
40
35
 
41
- def update
42
- if post.update_attributes(params[:post])
43
- redirect_to post, notice: 'Blog post was successfully updated.'
44
- else
45
- render action: "edit"
36
+ def create
37
+ if post.save
38
+ redirect_to post, notice: 'Blog post was successfully created.'
39
+ else
40
+ render action: "new"
41
+ end
42
+ end
43
+
44
+ def update
45
+ if post.update_attributes(params[:post])
46
+ redirect_to post, notice: 'Blog post was successfully updated.'
47
+ else
48
+ render action: "edit"
49
+ end
46
50
  end
47
- end
48
51
 
49
- def destroy
50
- post.destroy
51
- redirect_to posts_url, notice: "Blog post was successfully destroyed."
52
+ def destroy
53
+ post.destroy
54
+ redirect_to posts_url, notice: "Blog post was successfully destroyed."
55
+ end
56
+
52
57
  end
53
58
 
54
59
  end
data/config/routes.rb CHANGED
@@ -1,9 +1,14 @@
1
1
  Blogit::Engine.routes.draw do
2
-
3
- resources :posts, except: [:index] do
2
+
3
+ resources :posts, constraints: {id: /\d+[\-a-z]*/i}, only: [:index, :show] do
4
4
  resources :comments, only: [:create, :destroy]
5
5
  end
6
6
 
7
+ # admin actions
8
+ if Blogit.configuration.include_admin_actions
9
+ resources :posts, only: [:new, :create, :edit, :update, :destroy]
10
+ end
11
+
7
12
  match "/(page/:page)" => "posts#index"
8
13
  root to: "posts#index"
9
14
  end
@@ -33,7 +33,6 @@ module Blogit
33
33
 
34
34
  # If set to true, only the user who authored the post may, edit or destroy.
35
35
  # Defaults to false
36
- # @note This has not been properly implemented yet
37
36
  attr_accessor :author_edits_only
38
37
 
39
38
  # If set to true, the comments form will POST and DELETE to the comments
@@ -1,3 +1,3 @@
1
1
  module Blogit
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -28,7 +28,6 @@ Blogit.configure do |config|
28
28
  # If set to true, the create, edit, update and destroy actions
29
29
  # will be included. If set to false, you'll have to set these
30
30
  # yourself elsewhere in the app.
31
- # @note - This is not currently implemented
32
31
  config.include_admin_actions = true
33
32
 
34
33
  # The default format for parsing the blog content.
Binary file
@@ -21143,3 +21143,410 @@ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21143
21143
 
21144
21144
  Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-14 21:45:01 +0000
21145
21145
  Served asset /application.js - 304 Not Modified (0ms)
21146
+
21147
+
21148
+ Started GET "/" for 127.0.0.1 at 2011-11-16 20:25:48 +0000
21149
+
21150
+ ActionController::RoutingError (undefined local variable or method `blogit_config' for Blogit::PostsController:Class):
21151
+
21152
+
21153
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (10.0ms)
21154
+
21155
+
21156
+ Started GET "/" for 127.0.0.1 at 2011-11-16 20:26:12 +0000
21157
+ Processing by Blogit::PostsController#index as HTML
21158
+ User Load (17.5ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21159
+ Blogit::Post Load (1.3ms) SELECT "blog_posts".* FROM "blog_posts" ORDER BY updated_at DESC LIMIT 5 OFFSET 0
21160
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (119.5ms)
21161
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (1.2ms)
21162
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21163
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (1.1ms)
21164
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21165
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (117.3ms)
21166
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (2.0ms)
21167
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (0.9ms)
21168
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21169
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21170
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.5ms)
21171
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21172
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (0.8ms)
21173
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (1.1ms)
21174
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (326.9ms)
21175
+  (7.9ms) SELECT COUNT(*) FROM "blog_posts" 
21176
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_pagination.html.erb (11.0ms)
21177
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/index.html.erb within layouts/application (465.7ms)
21178
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21179
+ Cache for Asset (application.js) is stale
21180
+ /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/jquery-rails-1.0.13/vendor/assets/javascripts/jquery.js isn't in paths: /Users/Gavin/Gems/blogit/spec/dummy/app/assets/javascripts, /Users/Gavin/Gems/blogit/spec/dummy/app/assets/stylesheets, /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/jquery-rails-1.0.17/vendor/assets/javascripts, /Users/Gavin/Gems/blogit/app/assets/javascripts, /Users/Gavin/Gems/blogit/app/assets/stylesheets
21181
+ Compiled application.js (17ms) (pid 16977)
21182
+ Compiled jquery.js (12ms) (pid 16977)
21183
+ Compiled jquery_ujs.js (1ms) (pid 16977)
21184
+ Completed 200 OK in 627ms (Views: 598.9ms | ActiveRecord: 27.5ms)
21185
+
21186
+
21187
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21188
+ Served asset /blogit/comments.css - 200 OK (2ms)
21189
+
21190
+
21191
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21192
+ Served asset /blogit.css - 200 OK (0ms)
21193
+
21194
+
21195
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21196
+ Served asset /application.css - 200 OK (0ms)
21197
+
21198
+
21199
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21200
+ Served asset /blogit.js - 200 OK (0ms)
21201
+
21202
+
21203
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21204
+ Served asset /blogit/posts.css - 200 OK (2ms)
21205
+
21206
+
21207
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21208
+ Served asset /jquery.js - 200 OK (5ms)
21209
+
21210
+
21211
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21212
+ Served asset /application.js - 200 OK (0ms)
21213
+
21214
+
21215
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 20:26:13 +0000
21216
+ Served asset /jquery_ujs.js - 200 OK (1ms)
21217
+
21218
+
21219
+ Started GET "/blog/posts/n21" for 127.0.0.1 at 2011-11-16 20:26:22 +0000
21220
+ Processing by Blogit::PostsController#show as HTML
21221
+ Parameters: {"id"=>"n21"}
21222
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "n21"]]
21223
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (81.7ms)
21224
+ Completed 500 Internal Server Error in 159ms
21225
+
21226
+ ActionView::Template::Error (Couldn't find Blogit::Post with id=n21):
21227
+ 1: <%= render post %>
21228
+ 2: <% if blogit_conf.include_comments %>
21229
+ 3: <div id="comments">
21230
+ 4: <%= render comments %>
21231
+
21232
+
21233
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
21234
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
21235
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (121.7ms)
21236
+
21237
+
21238
+ Started GET "/blog/posts/new" for 127.0.0.1 at 2011-11-16 20:26:25 +0000
21239
+ Processing by Blogit::PostsController#show as HTML
21240
+ Parameters: {"id"=>"new"}
21241
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "new"]]
21242
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (1.8ms)
21243
+ Completed 500 Internal Server Error in 6ms
21244
+
21245
+ ActionView::Template::Error (Couldn't find Blogit::Post with id=new):
21246
+ 1: <%= render post %>
21247
+ 2: <% if blogit_conf.include_comments %>
21248
+ 3: <div id="comments">
21249
+ 4: <%= render comments %>
21250
+
21251
+
21252
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
21253
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.9ms)
21254
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (3.8ms)
21255
+
21256
+
21257
+ Started GET "/blog/posts/new" for 127.0.0.1 at 2011-11-16 20:28:04 +0000
21258
+
21259
+ ActionController::RoutingError (No route matches [GET] "/blog/posts/new"):
21260
+
21261
+
21262
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (9.0ms)
21263
+
21264
+
21265
+ Started GET "/blog/posts/1-this-is-a-test-post" for 127.0.0.1 at 2011-11-16 20:28:08 +0000
21266
+
21267
+ ActionController::RoutingError (No route matches [GET] "/blog/posts/1-this-is-a-test-post"):
21268
+
21269
+
21270
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
21271
+
21272
+
21273
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 20:28:15 +0000
21274
+ Processing by Blogit::PostsController#show as HTML
21275
+ Parameters: {"id"=>"1"}
21276
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21277
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (101.5ms)
21278
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (102.8ms)
21279
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (118.6ms)
21280
+ Completed 500 Internal Server Error in 123ms
21281
+
21282
+ ActionView::Template::Error (No route matches {:action=>"show", :controller=>"blogit/posts", :id=>#<Blogit::Post id: 1, title: "This is an example post all about Lorem Ipsum", body: "Lorem ipsum dolor sit amet, consectetur adipiscing ...", blogger_id: 1, blogger_type: "User", comments_count: 1, created_at: "2011-11-13 20:08:12", updated_at: "2011-11-14 21:05:51">}):
21283
+ 1: <%= blog_post_tag :header do %>
21284
+ 2: <%= content_tag(:h1, link_to(post.title, post)) %>
21285
+ 3: <% end %>
21286
+
21287
+
21288
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)
21289
+
21290
+
21291
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 20:28:49 +0000
21292
+
21293
+ ActionController::RoutingError (No route matches [GET] "/blog/posts/1"):
21294
+
21295
+
21296
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
21297
+
21298
+
21299
+ Started GET "/blog/posts/1-this-is-a-test-post" for 127.0.0.1 at 2011-11-16 20:28:53 +0000
21300
+ Processing by Blogit::PostsController#show as HTML
21301
+ Parameters: {"id"=>"1-this-is-a-test-post"}
21302
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1-this-is-a-test-post"]]
21303
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21304
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (1.2ms)
21305
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21306
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (19.9ms)
21307
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21308
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (64.0ms)
21309
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (89.0ms)
21310
+ Blogit::Comment Load (14.9ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21311
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21312
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (1.7ms)
21313
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (33.5ms)
21314
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (301.0ms)
21315
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21316
+ Completed 200 OK in 320ms (Views: 303.4ms | ActiveRecord: 16.0ms)
21317
+
21318
+
21319
+ Started GET "/blog/posts/1-this-is-a-test-post" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21320
+ Processing by Blogit::PostsController#show as HTML
21321
+ Parameters: {"id"=>"1-this-is-a-test-post"}
21322
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1-this-is-a-test-post"]]
21323
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21324
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21325
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21326
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (7.1ms)
21327
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21328
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.9ms)
21329
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (16.5ms)
21330
+ Blogit::Comment Load (0.2ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21331
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21332
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (6.3ms)
21333
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.2ms)
21334
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (71.1ms)
21335
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21336
+ Completed 200 OK in 78ms (Views: 76.9ms | ActiveRecord: 1.3ms)
21337
+
21338
+
21339
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21340
+ Served asset /blogit/comments.css - 304 Not Modified (3ms)
21341
+
21342
+
21343
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21344
+ Served asset /blogit/posts.css - 304 Not Modified (1ms)
21345
+
21346
+
21347
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21348
+ Served asset /blogit.css - 304 Not Modified (0ms)
21349
+
21350
+
21351
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21352
+ Served asset /blogit.js - 304 Not Modified (0ms)
21353
+
21354
+
21355
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21356
+ Served asset /jquery.js - 304 Not Modified (1ms)
21357
+
21358
+
21359
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21360
+ Served asset /application.css - 304 Not Modified (0ms)
21361
+
21362
+
21363
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21364
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
21365
+
21366
+
21367
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:04 +0000
21368
+ Served asset /application.js - 304 Not Modified (0ms)
21369
+
21370
+
21371
+ Started GET "/blog/posts/1" for 127.0.0.1 at 2011-11-16 20:29:06 +0000
21372
+ Processing by Blogit::PostsController#show as HTML
21373
+ Parameters: {"id"=>"1"}
21374
+ Blogit::Post Load (0.1ms) SELECT "blog_posts".* FROM "blog_posts" WHERE "blog_posts"."id" = ? LIMIT 1 [["id", "1"]]
21375
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (1.2ms)
21376
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21377
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21378
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (6.6ms)
21379
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21380
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (4.3ms)
21381
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (15.7ms)
21382
+ Blogit::Comment Load (0.2ms) SELECT "blog_comments".* FROM "blog_comments" WHERE "blog_comments"."post_id" = 1
21383
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21384
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_comment.html.erb (33.2ms)
21385
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/comments/_form.html.erb (3.4ms)
21386
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/show.html.erb within layouts/application (70.4ms)
21387
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21388
+ Completed 200 OK in 77ms (Views: 75.6ms | ActiveRecord: 1.2ms)
21389
+
21390
+
21391
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21392
+ Served asset /blogit/comments.css - 304 Not Modified (0ms)
21393
+
21394
+
21395
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21396
+ Served asset /blogit/posts.css - 304 Not Modified (0ms)
21397
+
21398
+
21399
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21400
+ Served asset /blogit.css - 304 Not Modified (0ms)
21401
+
21402
+
21403
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21404
+ Served asset /jquery.js - 304 Not Modified (0ms)
21405
+
21406
+
21407
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21408
+ Served asset /application.css - 304 Not Modified (0ms)
21409
+
21410
+
21411
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21412
+ Served asset /blogit.js - 304 Not Modified (0ms)
21413
+
21414
+
21415
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21416
+ Served asset /jquery_ujs.js - 304 Not Modified (0ms)
21417
+
21418
+
21419
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:07 +0000
21420
+ Served asset /application.js - 304 Not Modified (0ms)
21421
+
21422
+
21423
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 20:29:15 +0000
21424
+
21425
+ ActionController::RoutingError (No route matches [GET] "/blog/posts/1/edit"):
21426
+
21427
+
21428
+ Rendered /Users/Gavin/.rvm/gems/ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.4ms)
21429
+
21430
+
21431
+ Started GET "/blog/posts/1/edit" for 127.0.0.1 at 2011-11-16 20:29:34 +0000
21432
+ Processing by Blogit::PostsController#edit as HTML
21433
+ Parameters: {"id"=>"1"}
21434
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21435
+ Redirected to http://localhost:3000/blog/
21436
+ Completed 302 Found in 19ms
21437
+
21438
+
21439
+ Started GET "/blog/" for 127.0.0.1 at 2011-11-16 20:29:34 +0000
21440
+ Processing by Blogit::PostsController#index as HTML
21441
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21442
+ Blogit::Post Load (0.3ms) SELECT "blog_posts".* FROM "blog_posts" ORDER BY updated_at DESC LIMIT 5 OFFSET 0
21443
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (84.2ms)
21444
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (1.4ms)
21445
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21446
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (1.0ms)
21447
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21448
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (62.1ms)
21449
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (1.5ms)
21450
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (0.7ms)
21451
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21452
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21453
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.6ms)
21454
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21455
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (0.8ms)
21456
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (0.6ms)
21457
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (167.6ms)
21458
+  (0.1ms) SELECT COUNT(*) FROM "blog_posts"
21459
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_pagination.html.erb (2.5ms)
21460
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/index.html.erb within layouts/application (194.8ms)
21461
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21462
+ Completed 200 OK in 243ms (Views: 241.9ms | ActiveRecord: 1.0ms)
21463
+
21464
+
21465
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21466
+ Served asset /blogit/comments.css - 304 Not Modified (1ms)
21467
+
21468
+
21469
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21470
+ Served asset /blogit/posts.css - 304 Not Modified (4ms)
21471
+
21472
+
21473
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21474
+ Served asset /application.css - 304 Not Modified (0ms)
21475
+
21476
+
21477
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21478
+ Served asset /blogit.css - 304 Not Modified (0ms)
21479
+
21480
+
21481
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21482
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
21483
+
21484
+
21485
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21486
+ Served asset /blogit.js - 304 Not Modified (0ms)
21487
+
21488
+
21489
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21490
+ Served asset /jquery.js - 304 Not Modified (1ms)
21491
+
21492
+
21493
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:29:35 +0000
21494
+ Served asset /application.js - 304 Not Modified (0ms)
21495
+
21496
+
21497
+ Started GET "/blog/" for 127.0.0.1 at 2011-11-16 20:52:02 +0000
21498
+ Processing by Blogit::PostsController#index as HTML
21499
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21500
+ Blogit::Post Load (0.2ms) SELECT "blog_posts".* FROM "blog_posts" ORDER BY updated_at DESC LIMIT 5 OFFSET 0
21501
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (64.1ms)
21502
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (24.4ms)
21503
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21504
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (1.1ms)
21505
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21506
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (39.7ms)
21507
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (1.5ms)
21508
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_head.html.erb (0.9ms)
21509
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_body.html.erb (0.6ms)
21510
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21511
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post_links.html.erb (0.5ms)
21512
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
21513
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_blogger_information.html.erb (0.8ms)
21514
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_comments_count.html.erb (0.5ms)
21515
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_post.html.erb (168.1ms)
21516
+  (0.1ms) SELECT COUNT(*) FROM "blog_posts" 
21517
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/_pagination.html.erb (2.4ms)
21518
+ Rendered /Users/Gavin/Gems/blogit/app/views/blogit/posts/index.html.erb within layouts/application (208.2ms)
21519
+ CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT 1
21520
+ Completed 200 OK in 280ms (Views: 278.6ms | ActiveRecord: 1.0ms)
21521
+
21522
+
21523
+ Started GET "/assets/blogit/comments.css?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21524
+ Served asset /blogit/comments.css - 304 Not Modified (2ms)
21525
+
21526
+
21527
+ Started GET "/assets/blogit/posts.css?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21528
+ Served asset /blogit/posts.css - 304 Not Modified (3ms)
21529
+
21530
+
21531
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21532
+ Served asset /application.css - 304 Not Modified (0ms)
21533
+
21534
+
21535
+ Started GET "/assets/blogit.js?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21536
+ Served asset /blogit.js - 304 Not Modified (0ms)
21537
+
21538
+
21539
+ Started GET "/assets/blogit.css?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21540
+ Served asset /blogit.css - 304 Not Modified (0ms)
21541
+
21542
+
21543
+ Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21544
+ Served asset /jquery.js - 304 Not Modified (3ms)
21545
+
21546
+
21547
+ Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21548
+ Served asset /jquery_ujs.js - 304 Not Modified (1ms)
21549
+
21550
+
21551
+ Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-11-16 20:52:03 +0000
21552
+ Served asset /application.js - 304 Not Modified (0ms)