Skip to content

Instantly share code, notes, and snippets.

@trappist
Created August 14, 2013 04:29
Show Gist options
  • Select an option

  • Save trappist/6228017 to your computer and use it in GitHub Desktop.

Select an option

Save trappist/6228017 to your computer and use it in GitHub Desktop.
Started GET "/photos/12" for 127.0.0.1 at 2013-08-13 23:29:24 -0500
Processing by PhotosController#show as HTML
Parameters: {"id"=>"12"}
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`username` = BINARY 'trappist' AND `users`.`id` != 1) LIMIT 1
Photo Load (0.3ms) SELECT `photos`.* FROM `photos` WHERE `photos`.`published_at` IS NOT NULL AND `photos`.`id` = 12 LIMIT 1
Album Load (0.3ms) SELECT `albums`.* FROM `albums` INNER JOIN `album_memberships` ON `albums`.`id` = `album_memberships`.`album_id` WHERE `album_memberships`.`photo_id` = 12 ORDER BY `albums`.`id` ASC LIMIT 1
(0.1ms) BEGIN
SQL (0.3ms) UPDATE `photos` SET `views_count` = 13, `updated_at` = '2013-08-14 04:29:24' WHERE `photos`.`id` = 12
(0.9ms) COMMIT
User Load (360.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
(0.4ms) SELECT COUNT(*) FROM `wows` WHERE `wows`.`wowable_id` = 12 AND `wows`.`wowable_type` = 'Photo'
Comment Load (0.3ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 12 AND `comments`.`commentable_type` = 'Photo'
Album Load (0.3ms) SELECT `albums`.* FROM `albums` INNER JOIN `album_memberships` ON `albums`.`id` = `album_memberships`.`album_id` WHERE `album_memberships`.`photo_id` = 12 ORDER BY `albums`.`id` ASC LIMIT 1
Photo Load (0.4ms) SELECT `photos`.* FROM `photos` INNER JOIN `album_memberships` ON `photos`.`id` = `album_memberships`.`photo_id` WHERE `photos`.`published_at` IS NOT NULL AND `album_memberships`.`album_id` = 1
Rendered photos/show.html.haml within layouts/application (379.9ms)
Completed 200 OK in 473ms (Views: 94.8ms | ActiveRecord: 364.5ms)
Started GET "/photos/12" for 127.0.0.1 at 2013-08-13 23:29:25 -0500
Processing by PhotosController#show as HTML
Parameters: {"id"=>"12"}
User Load (0.5ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`username` = BINARY 'trappist' AND `users`.`id` != 1) LIMIT 1
Photo Load (0.3ms) SELECT `photos`.* FROM `photos` WHERE `photos`.`published_at` IS NOT NULL AND `photos`.`id` = 12 LIMIT 1
Album Load (0.3ms) SELECT `albums`.* FROM `albums` INNER JOIN `album_memberships` ON `albums`.`id` = `album_memberships`.`album_id` WHERE `album_memberships`.`photo_id` = 12 ORDER BY `albums`.`id` ASC LIMIT 1
(0.1ms) BEGIN
SQL (23.3ms) UPDATE `photos` SET `views_count` = 14, `updated_at` = '2013-08-14 04:29:25' WHERE `photos`.`id` = 12
(0.5ms) COMMIT
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
(0.5ms) SELECT COUNT(*) FROM `wows` WHERE `wows`.`wowable_id` = 12 AND `wows`.`wowable_type` = 'Photo'
Comment Load (0.4ms) SELECT `comments`.* FROM `comments` WHERE `comments`.`commentable_id` = 12 AND `comments`.`commentable_type` = 'Photo'
Album Load (0.3ms) SELECT `albums`.* FROM `albums` INNER JOIN `album_memberships` ON `albums`.`id` = `album_memberships`.`album_id` WHERE `album_memberships`.`photo_id` = 12 ORDER BY `albums`.`id` ASC LIMIT 1
Photo Load (0.5ms) SELECT `photos`.* FROM `photos` INNER JOIN `album_memberships` ON `photos`.`id` = `album_memberships`.`photo_id` WHERE `photos`.`published_at` IS NOT NULL AND `album_memberships`.`album_id` = 1
Rendered photos/show.html.haml within layouts/application (32.2ms)
Completed 200 OK in 86ms (Views: 44.8ms | ActiveRecord: 27.5ms)
Started GET "/photos/undefined" for 127.0.0.1 at 2013-08-13 23:29:25 -0500
Processing by PhotosController#show as HTML
Parameters: {"id"=>"undefined"}
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 ORDER BY `users`.`id` ASC LIMIT 1
User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`username` = BINARY 'trappist' AND `users`.`id` != 1) LIMIT 1
Photo Load (0.3ms) SELECT `photos`.* FROM `photos` WHERE `photos`.`published_at` IS NOT NULL AND `photos`.`id` = 0 LIMIT 1
Completed 404 Not Found in 9ms
ActiveRecord::RecordNotFound (Couldn't find Photo with id=undefined [WHERE `photos`.`published_at` IS NOT NULL]):
app/controllers/photos_controller.rb:14:in `show'
Rendered /Users/trappist/.rvm/gems/ruby-2.0.0-p247@modelrevolt/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_source.erb (0.8ms)
Rendered /Users/trappist/.rvm/gems/ruby-2.0.0-p247@modelrevolt/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.2ms)
Rendered /Users/trappist/.rvm/gems/ruby-2.0.0-p247@modelrevolt/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.1ms)
Rendered /Users/trappist/.rvm/gems/ruby-2.0.0-p247@modelrevolt/gems/actionpack-4.0.0/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (26.6ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment