TeamsController Rails 4 compliant