Open 3point2 opened 12 years ago
A NoMethodError occurred in member_preferences#edit: undefined method `person' for nil:NilClass [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in `method_missing' ------------------------------- Request: ------------------------------- * URL : http://www.time-exchange.gr/member_preferences/634/edit * IP address: 79.167.101.194 * Parameters: {"action"=>"edit", "id"=>"634", "controller"=>"member_preferences"} * Rails root: /app ------------------------------- Session: ------------------------------- * session id: nil * data: nil ------------------------------- Environment: ------------------------------- * GATEWAY_INTERFACE : CGI/1.2 * HTTP_ACCEPT : text/javascript, application/javascript, */*; q=0.01 * HTTP_ACCEPT_CHARSET : ISO-8859-7,utf-8;q=0.7,*;q=0.3 * HTTP_ACCEPT_ENCODING : gzip,deflate,sdch * HTTP_ACCEPT_LANGUAGE : el-GR,el;q=0.8 * HTTP_CONNECTION : close * HTTP_COOKIE : person_credentials=747c6fd5c77959a1b0398e051d7ffc652f6a8dc81013e585da6557c50aa60e0f1832f2b12ae3a168eebff40b3dd1009e490aa259c0142cfb810ceed43dd43782%3A%3A626; _oscurrency_session=BAh7BjoPc2Vzc2lvbl9pZCIlNDlhNWI5YmM0Nzk1NmY5YTIzZmI5MmE1ZmE4YTUzYmQ%3D--80fa696aa161b602c4caa650026c88df021827f5 * HTTP_HOST : www.time-exchange.gr * HTTP_REFERER : http://www.time-exchange.gr/groups/1 * HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.0) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.47 Safari/536.11 * HTTP_VERSION : HTTP/1.1 * HTTP_X_FORWARDED_FOR : 79.167.101.194 * HTTP_X_HEROKU_DYNOS_IN_USE : 1 * HTTP_X_HEROKU_QUEUE_DEPTH : 0 * HTTP_X_HEROKU_QUEUE_WAIT_TIME : 5 * HTTP_X_REAL_IP : 79.167.101.194 * HTTP_X_REQUESTED_WITH : XMLHttpRequest * HTTP_X_REQUEST_START : 1341245369051 * HTTP_X_VARNISH : 33849850 * PATH_INFO : /member_preferences/634/edit * QUERY_STRING : * REMOTE_ADDR : 10.218.13.171 * REQUEST_METHOD : GET * REQUEST_PATH : /member_preferences/634/edit * REQUEST_URI : /member_preferences/634/edit * 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 : actioneditid634controllermember_preferences * action_controller.request.query_parameters : * action_controller.request.request_parameters : * action_controller.rescue.request : #<ActionController::Request:0x7f813cbd3890> * action_controller.rescue.response : #<ActionController::Response:0x7f813cbd3318> * action_dispatch.request.unsigned_session_cookie: session_id49a5b9bc47956f9a23fb92a5fa8a53bd * async.callback : #<Method: Thin::Connection#post_process> * async.close : #<EventMachine::DefaultDeferrable:0x7f813cbd5848> * rack.errors : #<IO:0x7f81474a79d0> * rack.input : #<StringIO:0x7f813cbd6338> * rack.multiprocess : false * rack.multithread : false * rack.request.cookie_hash : _oscurrency_sessionBAh7BjoPc2Vzc2lvbl9pZCIlNDlhNWI5YmM0Nzk1NmY5YTIzZmI5MmE1ZmE4YTUzYmQ=--80fa696aa161b602c4caa650026c88df021827f5person_credentials747c6fd5c77959a1b0398e051d7ffc652f6a8dc81013e585da6557c50aa60e0f1832f2b12ae3a168eebff40b3dd1009e490aa259c0142cfb810ceed43dd43782::626 * rack.request.cookie_string : person_credentials=747c6fd5c77959a1b0398e051d7ffc652f6a8dc81013e585da6557c50aa60e0f1832f2b12ae3a168eebff40b3dd1009e490aa259c0142cfb810ceed43dd43782%3A%3A626; _oscurrency_session=BAh7BjoPc2Vzc2lvbl9pZCIlNDlhNWI5YmM0Nzk1NmY5YTIzZmI5MmE1ZmE4YTUzYmQ%3D--80fa696aa161b602c4caa650026c88df021827f5 * rack.request.query_hash : * rack.request.query_string : * rack.run_once : false * rack.session : person_credentials_id626session_id49a5b9bc47956f9a23fb92a5fa8a53bdperson_credentials747c6fd5c77959a1b0398e051d7ffc652f6a8dc81013e585da6557c50aa60e0f1832f2b12ae3a168eebff40b3dd1009e490aa259c0142cfb810ceed43dd43782 * rack.session.options : httponlytruedomainpath/key_session_idid49a5b9bc47956f9a23fb92a5fa8a53bdexpire_after * rack.url_scheme : http * rack.version : 10 * Process: 1 * Server : 03c06f7b-58e4-4b79-a160-c31016c6e9f1 ------------------------------- Backtrace: ------------------------------- [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in `method_missing' [RAILS_ROOT]/app/models/ability.rb:41:in `initialize' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/rule.rb:33:in `call' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/rule.rb:33:in `matches_conditions?' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:58:in `can?' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/actionpack-2.3.14/lib/action_view/renderable.rb:91:in `detect' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:57:in `each' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:57:in `detect' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:57:in `can?' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:68:in `cannot?' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/ability.rb:200:in `authorize!' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/controller_additions.rb:308:in `authorize!' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/controller_resource.rb:40:in `authorize_resource' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/controller_resource.rb:25:in `load_and_authorize_resource' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/controller_resource.rb:9:in `send' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/cancan-1.5.1/lib/cancan/controller_resource.rb:9:in `add_before_filter' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182:in `call' [RAILS_ROOT]/.bundle/gems/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:182: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