Created
November 22, 2012 08:32
-
-
Save mojopon/4129995 to your computer and use it in GitHub Desktop.
ローカルの怖話でActiveRecord::RecordNotFound (Couldn't find Comic with id=1)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macmini:kowabana tyamuro$ rails s | |
=> Booting Thin | |
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
>> Thin web server (v1.5.0 codename Knife) | |
>> Maximum connections set to 1024 | |
>> Listening on 0.0.0.0:3000, CTRL+C to stop | |
[2012-11-22T17:31:02 (67438)] INFO : ** [Dumper] agent started as primary, max_filesize = 4294967296 | |
Started GET "/" for 192.168.1.3 at 2012-11-22 17:31:08 +0900 | |
Processing by HomeController#index as HTML | |
(0.3ms) SELECT COUNT(*) FROM `stories` WHERE `stories`.`publish` = 1 | |
Rendered shared/_award_banner.html.haml (2.6ms) | |
Rendered shared/_iphone_banner.html.haml (2.5ms) | |
Rendered shared/_commic_banner.html.haml (2.4ms) | |
Story Load (0.9ms) SELECT `stories`.* FROM `stories` WHERE `stories`.`publish` = 1 AND (id IN (7,9,5,3,2)) | |
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered stories/_story.html.haml (164.2ms) | |
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered stories/_story.html.haml (6.1ms) | |
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered stories/_story.html.haml (55.8ms) | |
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered stories/_story.html.haml (3.4ms) | |
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered stories/_story.html.haml (3.5ms) | |
Rendered search/_form.html.haml (3.2ms) | |
WeeklyScore Load (0.3ms) SELECT `scores`.* FROM `scores` WHERE `scores`.`type` IN ('WeeklyScore') ORDER BY scores.kowabana_point desc, scores.story_id desc LIMIT 10 | |
Story Load (0.7ms) SELECT `stories`.* FROM `stories` WHERE `stories`.`publish` = 1 AND `stories`.`id` = 1 LIMIT 1 | |
CACHE (0.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1 | |
Rendered rankings/_ranking.html.haml (14.3ms) | |
Comment Load (0.5ms) SELECT `comments`.* FROM `comments` WHERE (commentable_id not in (select id from stories where publish = 0)) ORDER BY comments.id desc LIMIT 5 | |
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` IN (1) | |
Comic Load (0.4ms) SELECT `comics`.* FROM `comics` WHERE `comics`.`id` IN (1) | |
Comic Load (0.3ms) SELECT `comics`.* FROM `comics` WHERE `comics`.`id` = 1 LIMIT 1 | |
Rendered comments/_object.html.haml (6.5ms) | |
Rendered home/index.html.haml within layouts/application (598.8ms) | |
Completed 500 Internal Server Error in 776ms | |
ActiveRecord::RecordNotFound (Couldn't find Comic with id=1): | |
app/models/comment.rb:18:in `commentable_without_scope' | |
app/helpers/application_helper.rb:139:in `commentable_path' | |
app/views/comments/_object.html.haml:1:in `_app_views_comments__object_html_haml__510329113424959719_70277569103000' | |
app/views/home/index.html.haml:84:in `block in _app_views_home_index_html_haml___1116319859053479557_70277610788860' | |
config/initializers/application_helper_ext.rb:31:in `li_for' | |
app/views/home/index.html.haml:83:in `_app_views_home_index_html_haml___1116319859053479557_70277610788860' | |
Rendered /Users/tyamuro/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.2ms) | |
Rendered /Users/tyamuro/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.3ms) | |
Rendered /Users/tyamuro/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (32.9ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment