```ruby
# lib/frecon/controllers/teams_controller.rb
#
# Copyright (C) 2014 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier, and Kristofer Rye
#
# This file is part of FReCon, an API for scouting at FRC Competitions, which is
# licensed under the MIT license.  You should have received a copy of the MIT
# license with this program.  If not, please see
# <http://opensource.org/licenses/MIT>.

require "json"
require "frecon/base"
require "frecon/models/team"

module FReCon
	class TeamsController < Controller
		# The `id` param will be a number or id.
		def self.find_model(params)
			id_or_number = params.delete("id")

			(Team.find_by id: id_or_number) || (Team.find_by number: id_or_number)
		end

		# Since Team has a special way of finding itself, we can make
		# the error message reflect this.
		def self.could_not_find(value, attribute = "id", model = model_name.downcase)
			if attribute == "id" && model == "team"
				"Could not find team of id or number #{value}!"
			else
				"Could not find #{model} of #{attribute} #{value}!"
			end
		end
	end
end
```

Remove custom way of finding teams
user
```ruby
# lib/frecon/controllers/teams_controller.rb
#
# Copyright (C) 2014 Christopher Cooper, Sam Craig, Tiger Huang, Vincent Mai, Sam Mercier, and Kristofer Rye
#
# This file is part of FReCon, an API for scouting at FRC Competitions, which is
# licensed under the MIT license.  You should have received a copy of the MIT
# license with this program.  If not, please see
# <http://opensource.org/licenses/MIT>.

require "json"
require "frecon/base"
require "frecon/models/team"

module FReCon
	class TeamsController < Controller
	end
end
```
assistant