Skip to content

Instantly share code, notes, and snippets.

@murraycs
Created September 29, 2011 23:56
Show Gist options
  • Save murraycs/1252280 to your computer and use it in GitHub Desktop.
Save murraycs/1252280 to your computer and use it in GitHub Desktop.
Name error
ActionView::TemplateError (undefined method `name' for nil:NilClass) on line #24 of vendor/plugins/community_engine/app/views/shared/_location_chooser.html.haml:
2011-09-29T23:48:46+00:00 app[web.1]: 21: :with => "'state_id=' + $('state_id').value + '&country_id=' + $('country_id').value", |
2011-09-29T23:48:46+00:00 app[web.1]: 22: :loading => "$$('span#location_chooser img')[0].show();", |
2011-09-29T23:48:46+00:00 app[web.1]: 23: 500 => "alert('"+:sorry_there_was_an_error.l+"'); return false", |
2011-09-29T23:48:46+00:00 app[web.1]: 24: :update => "location_chooser"}) |
2011-09-29T23:48:46+00:00 app[web.1]: 25:
2011-09-29T23:48:46+00:00 app[web.1]: 26: %span
2011-09-29T23:48:46+00:00 app[web.1]: 27:
2011-09-29T23:48:46+00:00 app[web.1]:
2011-09-29T23:48:46+00:00 app[web.1]: vendor/plugins/community_engine/app/models/country.rb:14:in `find_countries_with_metros'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1586:in `sort_by'
2011-09-29T23:48:46+00:00 app[web.1]: vendor/plugins/community_engine/app/models/country.rb:14:in `each'
2011-09-29T23:48:46+00:00 app[web.1]: vendor/plugins/community_engine/app/models/country.rb:14:in `sort_by'
2011-09-29T23:48:46+00:00 app[web.1]: vendor/plugins/community_engine/app/models/country.rb:14:in `find_countries_with_metros'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:19:in `render'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in `render_template'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:44:in `render_partial'
2011-09-29T23:48:46+00:00 app[web.1]: vendor/plugins/community_engine/app/views/users/welcome_about.html.haml:23:in `_run_haml_vendor47plugins47community_engine47app47views47users47welcome_about46html46haml'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/haml-2.2.2/lib/haml/helpers.rb:325:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:615:in `call_filters'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/session/cookie_store.rb:93:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:106:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: /home/heroku_rack/lib/static_assets.rb:9:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: /home/heroku_rack/lib/last_access.rb:15:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: /home/heroku_rack/lib/date_header.rb:14:in `call'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/connection.rb:84:in `pre_process'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `catch'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/connection.rb:82:in `pre_process'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/connection.rb:57:in `process'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/connection.rb:42:in `receive_data'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/backends/base.rb:61:in `start'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/server.rb:159:in `start'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/controllers/controller.rb:86:in `start'
2011-09-29T23:48:46+00:00 app[web.1]: .bundle/gems/ruby/1.8/gems/thin-1.2.11/lib/thin/runner.rb:185:in `send'
2011-09-29T23:48:47+00:00 app[web.1]: Rendering /app/public/500.html (500 Internal Server Error)
2011-09-29T23:48:47+00:00 heroku[router]: GET morning-lightning-6697.heroku.com/murraycs/welcome_about dyno=web.1 queue=0 wait=0ms service=700ms status=500 bytes=948
2011-09-29T23:48:47+00:00 heroku[nginx]: 50.132.85.77 - - [29/Sep/2011:16:48:47 -0700] "GET /murraycs/welcome_about HTTP/1.1" 500 948 "http://morning-lightning-6697.heroku.com/murraycs/welcome_photo" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20100101 Firefox/6.0.2" morning-lightning-6697.heroku.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment