12/5/17
Dustin McCraw
Their teams are in TeamSnap but the opponents are not.
May consist of multiple clubs and maybe a tournament or two.
Uses the divisions table.
Nested set uses terms like root, parent, children, leaves.
Root division is the highest division.
Uses the divisions table.
Some differences in a division:
From rosters table
Adds a division_id
Can have a empty team_id.
https://github.com/teamsnap/classic
Webpack
ES6 (ES2015)
React
Redux
https://github.com/teamsnap/league-frontend
class SnapiLeagueLocationController < SnapiApplicationController
def view
response = Snapi::DivisionLocationMapper
.new(@teamsnap_client, identity_map)
.find(params[:id])
if response.success?
@location = response.objects.first
else
redirect_to league_location_path
end
end
end