Statscontroller crashes - undefined method `totals' for nil:NilClass
With the latest git version, /stats crashes with a HTTP 500.
Started GET "/tracks/stats" for 000.000.000.000 at 2014-06-09 11:20:01 +0200 Processing by StatsController#index as HTML Rendered stats/index.html.erb within layouts/application (1.6ms) Completed 500 Internal Server Error in 127ms ActionView::Template::Error (undefined method `totals' for nil:NilClass): 1: <div class="stats_content"> 2: <h2><%= t('stats.totals') %></h2> 3: 4: <%= render :partial => 'totals', :locals => {:totals => @stats.totals} -%> 5: 6: <% unless current_user.todos.empty? -%> 7: app/views/stats/index.html.erb:4:in `_app_views_stats_index_html_erb___2867769864028496930_38408540'
Leave a comment