Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hackartisan/5c0f76be6ed6ca2c3421f15b386166be to your computer and use it in GitHub Desktop.
Save hackartisan/5c0f76be6ed6ca2c3421f15b386166be to your computer and use it in GitHub Desktop.
Rendered /home/ubuntu/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sufia-7.3.0/app/views/sufia/admin/stats/show.html.erb within layouts/admin (1005625.0ms)
Completed 500 Internal Server Error in 1005633ms (ActiveRecord: 1.2ms)
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
6: <p><%= link_to "View top 5", sufia.admin_stats_path %> </p>
7: <% end %>
8:
9: <h3>Top File Formats (top <%= @presenter.top_formats.count %>)</h3>
10: <ul>
11: <% @presenter.top_formats.each do |fmt| %>
12: <li><%= fmt.label %> <span class="count">(<%= fmt.value %>)</span></li>
sufia (7.3.0) app/services/sufia/statistics/term_query.rb:27:in `query'
sufia (7.3.0) app/presenters/sufia/admin_stats_presenter.rb:31:in `top_formats'
sufia (7.3.0) app/views/sufia/admin/stats/_top_data.html.erb:9:in `__home_ubuntu__rbenv_versions_______lib_ruby_gems_______gems_sufia_______app_views_sufia_admin_stats__top_
data_html_erb___4398109396136646998_69936987842860'
actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.7.1) lib/action_view/template.rb:143:in `render'
actionview (4.2.7.1) lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
actionview (4.2.7.1) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.7.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (4.2.7.1) lib/active_support/notifications.rb:164:in `instrument'
actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
actionview (4.2.7.1) lib/action_view/renderer/partial_renderer.rb:309:in `render'
actionview (4.2.7.1) lib/action_view/renderer/renderer.rb:51:in `render_partial'
actionview (4.2.7.1) lib/action_view/helpers/rendering_helper.rb:35:in `render'
sufia (7.3.0) app/views/sufia/admin/stats/show.html.erb:5:in `__home_ubuntu__rbenv_versions_______lib_ruby_gems_______gems_sufia_______app_views_sufia_admin_stats_show_html_
erb__4292758138024089200_69937378035520'
actionview (4.2.7.1) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.7.1) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.7.1) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.7.1) lib/action_view/template.rb:143:in `render'
actionview (4.2.7.1) lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
actionview (4.2.7.1) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment