Snorby/snorby — Issue #182: Loading /events fails with ActionView::Template::Error (undefined method `downcase' for nil:NilClass)
Author: reedloden
Created: 2012-02-20 20:46:49+00:00
State: open

Just upgraded to latest git master. Getting the following error when I load /events.

````
Started GET "/events" at 2012-02-20 12:44:02 -0800
Processing by EventsController#index as HTML
Rendered events/_menu.html.erb (5.1ms)
Rendered events/_menu.html.erb (1.4ms)
Rendered events/_event.html.erb (11.6ms)
Rendered events/_events.html.erb (32.9ms)
Rendered events/index.html.erb within layouts/application (41.5ms)
Completed 500 Internal Server Error in 46ms

ActionView::Template::Error (undefined method `downcase' for nil:NilClass):
23:
24: <% geoip_src = event.ip.geoip[:source] %>
25:
26: <%= geoip_src[:country_code2] %>
27:
28: <% end %>
29:	<%= event.ip.present? ? event.ip.ip_src : 'N/A' %>
app/views/events/_event.html.erb:26:in `_app_views_events__event_html_erb__3081495053207689426_39653220'
app/views/events/_events.html.erb:45:in `block in _app_views_events__events_html_erb___1881766284207514216_40146940'
app/views/events/_events.html.erb:3:in `_app_views_events__events_html_erb___1881766284207514216_40146940'
app/views/events/index.html.erb:5:in `_app_views_events_index_html_erb___2064816485088748653_39192720'
````