2-1: Fix scopes and routes for Rails 4