Context controller chrashes - undefined method length for nil:NilClass
/contexts crashes with a HTTP 500 in the latest git master.
Started GET "/tracks/contexts" for 000.000.000.000 at 2014-06-09 11:27:45 +0200 Processing by ContextsController#index as HTML Rendered contexts/_context_listing.html.erb (15.0ms) Rendered contexts/_context_state_group.html.erb (17.4ms) Rendered contexts/_context_listing.html.erb (0.0ms) Rendered contexts/_context_state_group.html.erb (1.6ms) Rendered contexts/_context_state_group.html.erb (1.0ms) Rendered contexts/index.html.erb within layouts/application (20.6ms) Completed 500 Internal Server Error in 95ms ActionView::Template::Error (undefined method `length' for nil:NilClass): 1: <div class="list-stategroup-contexts-container" id="list-<%= state %>-contexts-container"> 2: <h2> 3: <span id="<%= state %>-contexts-count" class="badge"><%= context_state_group.length %></span> 4: <%= t("states.contexts."+ state) %> 5: </h2> 6: app/views/contexts/_context_state_group.html.erb:3:in `_app_views_contexts__context_state_group_html_erb___975863804958216483_46440980' app/views/contexts/index.html.erb:4:in `_app_views_contexts_index_html_erb__3552288753880373114_46384840' app/controllers/contexts_controller.rb:209:in `block in render_contexts_html' app/controllers/contexts_controller.rb:16:in `index'
Leave a comment