Replace invalid mongoid query in view

We should also move this query out of the view.  It broke production, and queries don't belong in views.