ifunam/salva — Issue #131: Problems in show action of external_jobpositions controller
Author: juarlex
Created: 2012-02-16 19:06:27+00:00
State: open

A ActionView::Template::Error occurred in external_jobpositions#show:

undefined method `adscription' for nil:NilClass
app/views/external_jobpositions/show.html.haml:16:in `block in _app_views_external_jobpositions_show_html_haml__878333183_114480020'

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

* URL : https://salva.fisica.unam.mx/external_jobpositions/668
* IP address: 189.230.18.3
* Parameters: {"action"=>"show", "controller"=>"external_jobpositions", "id"=>"668"}
* Rails root: /home/deployer/apps/salva/releases/20120216180742

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

* session id: [FILTERED]
* data: {"_csrf_token"=>"eVB1mbfxbhuaKoXZ4dmLpLovh2nu5g7x/JdJmWFJNUU=",
"warden.user.user.key"=>["User", [161], nil],
"warden.user.user.session"=>{"last_request_at"=>2012-02-16 18:51:35 UTC}}

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

* CONTENT_LENGTH : 0
* DOCUMENT_ROOT : /home/deployer/apps/salva/current/public
* HTTPS : on
* HTTP_ACCEPT : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
* HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : es-MX,es;q=0.8,en-us;q=0.5,en;q=0.3
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : _salva_session=83b8da45a585a4602faccc2b04877392; NREUM=s=1329418491115&r=131347&p=151243
* HTTP_HOST : salva.fisica.unam.mx
* HTTP_REFERER : https://salva.fisica.unam.mx/external_jobpositions
* HTTP_USER_AGENT : Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
* PASSENGER_APP_SPAWNER_IDLE_TIME : -1
* PASSENGER_APP_TYPE : rack
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PASSENGER_DEBUGGER : false
* PASSENGER_ENVIRONMENT : production
* PASSENGER_FRAMEWORK_SPAWNER_IDLE_TIME : -1
* PASSENGER_FRIENDLY_ERROR_PAGES : true
* PASSENGER_GROUP :
* PASSENGER_MAX_REQUESTS : 0
* PASSENGER_MIN_INSTANCES : 1
* PASSENGER_SHOW_VERSION_IN_HEADER : true
* PASSENGER_SPAWN_METHOD : :smart
* PASSENGER_USER :
* PASSENGER_USE_GLOBAL_QUEUE : true
* PATH_INFO : /external_jobpositions/668
* QUERY_STRING :
* REMOTE_ADDR : 189.230.18.3
* REMOTE_PORT : 49960
* REQUEST_METHOD : GET
* REQUEST_URI : /external_jobpositions/668
* SCGI : 1
* SCRIPT_NAME :
* SERVER_ADDR : 132.248.7.50
* SERVER_NAME : salva.fisica.unam.mx
* SERVER_PORT : 443
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : nginx/1.0.10
* UNION_STATION_SUPPORT : false
* _ : _
* action_controller.instance : external_jobpositions#show
* action_dispatch.parameter_filter : [:password, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 189.230.18.3
* action_dispatch.request.content_type :
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"action"=>"show", "controller"=>"external_jobpositions", "id"=>"668"}
* action_dispatch.request.path_parameters : {:action=>"show", :controller=>"external_jobpositions", :id=>"668"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters: {}
* action_dispatch.routes : #
* action_dispatch.secret_token : 52d737e54b7c19af1c06c7101e405f842645b5c9446acd9cfa70bbdebf6aada443bb35460a5af20e3f93d567e59999fd6bd1d78ccc865b961c84318b4ebbf308
* action_dispatch.show_exceptions : true
* exception_notifier.options : {:sender_address=>"salva@fisica.unam.mx", :exception_recipients=>"alex@fisica.unam.mx", :email_prefix=>"[SALVA - Exception notification] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #
* rack-cache.use_native_ttl : false
* rack-cache.verbose : true
* rack.errors : #
* rack.input : #
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"_salva_session"=>"83b8da45a585a4602faccc2b04877392", "NREUM"=>"s=1329418491115&r=131347&p=151243"}
* rack.request.cookie_string : _salva_session=83b8da45a585a4602faccc2b04877392; NREUM=s=1329418491115&r=131347&p=151243
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : {"_csrf_token"=>"eVB1mbfxbhuaKoXZ4dmLpLovh2nu5g7x/JdJmWFJNUU=", "warden.user.user.key"=>["User", [161], nil], "warden.user.user.session"=>{"last_request_at"=>2012-02-16 18:51:35 UTC}}
* rack.session.options : {:key=>"_salva_session", :path=>"/", :domain=>nil, :expire_after=>1800 seconds, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :memcache_server=>["127.0.0.1:11211"], :namespace=>"sessions", :id=>"83b8da45a585a4602faccc2b04877392"}
* rack.url_scheme : https
* rack.version : [1, 0]
* warden : Warden::Proxy:114435560 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:ldap_authenticatable], :academic=>[:ldap_authenticatable]}, :intercept_401=>false, :failure_app=>#}

* Process: 19263
* Server : salva

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

app/views/external_jobpositions/show.html.haml:16:in `block in _app_views_external_jobpositions_show_html_haml__878333183_114480020'
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in `block in capture_with_haml'
haml (3.1.3) lib/haml/helpers.rb:345:in `call'
haml (3.1.3) lib/haml/helpers.rb:345:in `block in capture_haml'
haml (3.1.3) lib/haml/helpers.rb:569:in `with_haml_buffer'
haml (3.1.3) lib/haml/helpers.rb:341:in `capture_haml'
haml (3.1.3) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:93:in `capture_with_haml'
show_for (0.2.4) lib/show_for/helper.rb:19:in `show_for'
app/views/external_jobpositions/show.html.haml:3:in `_app_views_external_jobpositions_show_html_haml__878333183_114480020'
actionpack (3.1.3) lib/action_view/template.rb:171:in `block in render'
activesupport (3.1.3) lib/active_support/notifications.rb:55:in `instrument'
actionpack (3.1.3) lib/action_view/template.rb:169:in `render'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
actionpack (3.1.3) lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.3) lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:38:in `render_template'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:12:in `block in render'
actionpack (3.1.3) lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
actionpack (3.1.3) lib/action_view/renderer/template_renderer.rb:9:in `render'
actionpack (3.1.3) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.1.3) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:120:in `_render_template'
actionpack (3.1.3) lib/action_controller/metal/streaming.rb:250:in `_render_template'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:114:in `render_to_body'
actionpack (3.1.3) lib/action_controller/metal/renderers.rb:30:in `render_to_body'
actionpack (3.1.3) lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:99:in `render'
actionpack (3.1.3) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.1.3) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/deployer/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.1.3) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
activerecord (3.1.3) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.1.3) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.1.3) lib/action_controller/metal/mime_responds.rb:268:in `block in retrieve_response_from_mimes'
actionpack (3.1.3) lib/action_controller/metal/responder.rb:231:in `call'
actionpack (3.1.3) lib/action_controller/metal/responder.rb:231:in `default_render'
actionpack (3.1.3) lib/action_controller/metal/responder.rb:160:in `to_html'
responders (0.6.4) lib/responders/flash_responder.rb:93:in `to_html'
actionpack (3.1.3) lib/action_controller/metal/responder.rb:153:in `respond'
actionpack (3.1.3) lib/action_controller/metal/responder.rb:146:in `call'
actionpack (3.1.3) lib/action_controller/metal/mime_responds.rb:238:in `respond_with'
inherited_resources (1.3.0) lib/inherited_resources/actions.rb:13:in `show'
app/controllers/user_resources_controller.rb:35:in `show'
actionpack (3.1.3) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.3) lib/active_support/callbacks.rb:452:in `_run__586677392__process_action__682567977__callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.3) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.3) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.3) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
newrelic_rpm (3.3.0) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
newrelic_rpm (3.3.0) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:253:in `block in perform_action_with_newrelic_trace'
newrelic_rpm (3.3.0) lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
newrelic_rpm (3.3.0) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:248:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.3.0) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
actionpack (3.1.3) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.3) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.3) lib/action_controller/metal.rb:236:in `block in action'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:82:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:532:in `call'
newrelic_rpm (3.3.0) lib/new_relic/rack/browser_monitoring.rb:40:in `call'
barista (1.2.1) lib/barista/server.rb:33:in `call'
sass (3.1.10) lib/sass/plugin/rack.rb:54:in `call'
exception_notification (2.5.2) lib/exception_notifier.rb:25:in `call'
warden (1.1.0) lib/warden/manager.rb:35:in `block in call'
warden (1.1.0) lib/warden/manager.rb:34:in `catch'
warden (1.1.0) lib/warden/manager.rb:34:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.5) lib/rack/etag.rb:23:in `call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/flash.rb:247:in `call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.3) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (3.1.3) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
rack (1.3.5) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.3) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.3) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.3) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.5) lib/rack/lock.rb:15:in `call'
rack-ssl (1.3.2) lib/rack/ssl.rb:27:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:241:in `fetch'
rack-cache (1.1) lib/rack/cache/context.rb:181:in `lookup'
rack-cache (1.1) lib/rack/cache/context.rb:65:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
railties (3.1.3) lib/rails/engine.rb:456:in `call'
railties (3.1.3) lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:79:in `block in spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/rack/application_spawner.rb:64:in `spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:264:in `spawn_rack_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/home/deployer/.rvm/gems/ruby-1.9.3-p0/gems/passenger-3.0.11/helper-scripts/passenger-spawn-server:99:in `

'