Error 500 viewing admin/projects page: undefined method `storage_size' for nil:NilClass
I just reset my GDK database, and when I went to the /admin/projects
page I got this error:
I know during the seed step, some of my projects showed 'F, but perhaps we should handle
nil` gracefully:
NoMethodError - undefined method `storage_size' for nil:NilClass:
app/views/admin/projects/_projects.html.haml:16:in `block in _app_views_admin_projects__projects_html_haml__1335823395942845135_70304779398860'
activerecord (4.2.10) lib/active_record/relation/delegation.rb:132:in `method_missing'
activerecord (4.2.10) lib/active_record/relation/delegation.rb:99:in `method_missing'
app/views/admin/projects/_projects.html.haml:4:in `_app_views_admin_projects__projects_html_haml__1335823395942845135_70304779398860'
actionview (4.2.10) lib/action_view/template.rb:145:in `block in render'
activesupport (4.2.10) lib/active_support/notifications.rb:166:in `instrument'
actionview (4.2.10) lib/action_view/template.rb:333:in `instrument'
actionview (4.2.10) lib/action_view/template.rb:143:in `render'
actionview (4.2.10) lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
actionview (4.2.10) lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
actionview (4.2.10) lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
activesupport (4.2.10) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (4.2.10) lib/active_support/notifications/instrumenter.rb:20:in `instrument'