time-exchange-gr/oscurrency — Issue #41: NoMethodError in posts#show
Author: 3point2
Created: 2011-11-25 12:41:30+00:00
State: open

```

A NoMethodError occurred in posts#show:

undefined method `blog' for #
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:260:in `method_missing'

-------------------------------
Request:
-------------------------------

* URL : http://www.time-exchange.gr/forums/2/topics/8/posts/102
* IP address: 195.64.172.104
* Parameters: {"action"=>"show", "forum_id"=>"2", "id"=>"102", "controller"=>"posts", "topic_id"=>"8"}
* Rails root: /app

-------------------------------
Session:
-------------------------------

* session id: nil
* data: nil

-------------------------------
Environment:
-------------------------------

* GATEWAY_INTERFACE : CGI/1.2
* HTTP_ACCEPT : image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-shockwave-flash, application/x-silverlight, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/x-ms-xbap, application/x-ms-application, application/vnd.ms-xpsdocument, */*
* HTTP_ACCEPT_LANGUAGE : el
* HTTP_CONNECTION : close
* HTTP_COOKIE : _oscurrency_session=BAh7CjoQX2NzcmZfdG9rZW4iMUtWeGFPWnZ6bCt3YmxzYzFrVU01bjFKc1lNRDZWdWJrRzd1ZHA1blBFRTg9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpAmoBOg9zZXNzaW9uX2lkIiU1YTBmMTBiOTRkMmFkMGYzOTdhY2Y4OWUwMzUxOTA3YSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAMjcyODg3N2NlOGNlMmU2ODlkODQ4NjkzNDA4N2JiODA2NTFhZDg1Y2U0MjZjMzY2YzAzMzQ3YWRlODA2MDU3NDgzNDZkNGI4NDJhOTZkMDdhNWQ3ZDgyMzAwNzRlMzQxNTA0YTRlMjQ2ZDRmNDlkODQ1ZWFhNjcyNTRiMGQzZDI%3D--9b169a5e8540aceb8d655b6503c108cffb8e7f4e; person_credentials=2728877ce8ce2e689d8486934087bb80651ad85ce426c366c03347ade80605748346d4b842a96d07a5d7d8230074e341504a4e246d4f49d845eaa67254b0d3d2%3A%3A362
* HTTP_HOST : www.time-exchange.gr
* HTTP_PROXY_CONNECTION : Keep-Alive
* HTTP_REFERER : http://www.time-exchange.gr/forums/2/topics/8?posts=15
* HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
* HTTP_VERSION : HTTP/1.1
* HTTP_VIA : 1.1 KKPROXY03
* HTTP_X_FORWARDED_FOR : 195.64.172.104
* HTTP_X_HEROKU_DYNOS_IN_USE : 1
* HTTP_X_HEROKU_QUEUE_DEPTH : 0
* HTTP_X_HEROKU_QUEUE_WAIT_TIME : 1
* HTTP_X_REAL_IP : 195.64.172.104
* HTTP_X_REQUEST_START : 1322218171090
* HTTP_X_VARNISH : 2020084753
* PATH_INFO : /forums/2/topics/8/posts/102
* QUERY_STRING :
* REMOTE_ADDR : 10.44.70.66
* REQUEST_METHOD : GET
* REQUEST_PATH : /forums/2/topics/8/posts/102
* REQUEST_URI : /forums/2/topics/8/posts/102
* SCRIPT_NAME :
* SERVER_NAME : www.time-exchange.gr
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : thin 1.2.6 codename Crazy Delicious
* action_controller.request.path_parameters : actionshowid102forum_id2controllerpoststopic_id8
* action_controller.request.query_parameters :
* action_controller.request.request_parameters :
* action_controller.rescue.request : #
* action_controller.rescue.response : #
* action_dispatch.request.unsigned_session_cookie: person_credentials_id362_csrf_tokenKVxaOZvzl+wblsc1kUM5n1JsYMD6VubkG7udp5nPEE8=session_id5a0f10b94d2ad0f397acf89e0351907aperson_credentials2728877ce8ce2e689d8486934087bb80651ad85ce426c366c03347ade80605748346d4b842a96d07a5d7d8230074e341504a4e246d4f49d845eaa67254b0d3d2flash
* async.callback : #
* async.close : #
* rack.errors : #
* rack.input : #
* rack.multiprocess : false
* rack.multithread : false
* rack.request.cookie_hash : _oscurrency_sessionBAh7CjoQX2NzcmZfdG9rZW4iMUtWeGFPWnZ6bCt3YmxzYzFrVU01bjFKc1lNRDZWdWJrRzd1ZHA1blBFRTg9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpAmoBOg9zZXNzaW9uX2lkIiU1YTBmMTBiOTRkMmFkMGYzOTdhY2Y4OWUwMzUxOTA3YSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAMjcyODg3N2NlOGNlMmU2ODlkODQ4NjkzNDA4N2JiODA2NTFhZDg1Y2U0MjZjMzY2YzAzMzQ3YWRlODA2MDU3NDgzNDZkNGI4NDJhOTZkMDdhNWQ3ZDgyMzAwNzRlMzQxNTA0YTRlMjQ2ZDRmNDlkODQ1ZWFhNjcyNTRiMGQzZDI=--9b169a5e8540aceb8d655b6503c108cffb8e7f4eperson_credentials2728877ce8ce2e689d8486934087bb80651ad85ce426c366c03347ade80605748346d4b842a96d07a5d7d8230074e341504a4e246d4f49d845eaa67254b0d3d2::362
* rack.request.cookie_string : _oscurrency_session=BAh7CjoQX2NzcmZfdG9rZW4iMUtWeGFPWnZ6bCt3YmxzYzFrVU01bjFKc1lNRDZWdWJrRzd1ZHA1blBFRTg9IhpwZXJzb25fY3JlZGVudGlhbHNfaWRpAmoBOg9zZXNzaW9uX2lkIiU1YTBmMTBiOTRkMmFkMGYzOTdhY2Y4OWUwMzUxOTA3YSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7ACIXcGVyc29uX2NyZWRlbnRpYWxzIgGAMjcyODg3N2NlOGNlMmU2ODlkODQ4NjkzNDA4N2JiODA2NTFhZDg1Y2U0MjZjMzY2YzAzMzQ3YWRlODA2MDU3NDgzNDZkNGI4NDJhOTZkMDdhNWQ3ZDgyMzAwNzRlMzQxNTA0YTRlMjQ2ZDRmNDlkODQ1ZWFhNjcyNTRiMGQzZDI%3D--9b169a5e8540aceb8d655b6503c108cffb8e7f4e; person_credentials=2728877ce8ce2e689d8486934087bb80651ad85ce426c366c03347ade80605748346d4b842a96d07a5d7d8230074e341504a4e246d4f49d845eaa67254b0d3d2%3A%3A362
* rack.request.query_hash :
* rack.request.query_string :
* rack.run_once : false
* rack.session : _csrf_tokenKVxaOZvzl+wblsc1kUM5n1JsYMD6VubkG7udp5nPEE8=person_credentials_id362session_id5a0f10b94d2ad0f397acf89e0351907aflashperson_credentials2728877ce8ce2e689d8486934087bb80651ad85ce426c366c03347ade80605748346d4b842a96d07a5d7d8230074e341504a4e246d4f49d845eaa67254b0d3d2
* rack.session.options : domainhttponlytruepath/key_session_idid5a0f10b94d2ad0f397acf89e0351907aexpire_after
* rack.url_scheme : http
* rack.version : 10

* Process: 1
* Server : 91a22d1d-9422-47b6-83c2-e7b90f76a9c9

-------------------------------
Backtrace:
-------------------------------

[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/attribute_methods.rb:260:in `method_missing'
[RAILS_ROOT]/app/controllers/posts_controller.rb:114:in `check_blog_mismatch'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `send'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in `evaluate_method'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:166:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:225:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:629:in `run_before_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:615:in `call_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/usr/ruby1.8.7/lib/ruby/1.8/benchmark.rb:308:in `realtime'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in `ms'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:in `perform_action_without_render_component'
[RAILS_ROOT]/vendor/plugins/render_component/lib/components.rb:39:in `perform_action'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `send'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in `process_without_filters'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in `process'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in `process'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:87:in `dispatch'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:121:in `_call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:29:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:9:in `cache'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/query_cache.rb:28:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activerecord-2.3.14/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/string_coercion.rb:25:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/params_parser.rb:15:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/session/cookie_store.rb:99:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/cache/strategy/local_cache.rb:25:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/failsafe.rb:26:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `synchronize'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_controller/dispatcher.rb:106:in `call'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:74:in `call'
/home/heroku_rack/lib/static_assets.rb:9:in `call'
/home/heroku_rack/lib/last_access.rb:15:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:47:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `each'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/urlmap.rb:41:in `call'
/home/heroku_rack/lib/date_header.rb:14:in `call'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/rack-1.1.2/lib/rack/builder.rb:77:in `call'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:76:in `pre_process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:74:in `catch'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:74:in `pre_process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:57:in `process'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/connection.rb:42:in `receive_data'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
[RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/server.rb:156:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in `start'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:177:in `send'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/bin/thin:6
/usr/ruby1.8.7/bin/thin:19:in `load'
/usr/ruby1.8.7/bin/thin:19
```