Add the active_model_serializers gem that encapsulates the JSON serialization of objects
Create ActiveModel::Serializer for leagues that has id and name attributes. Root element problem still exists.
Encapsulate the root element by placing default_serializer_options method in the leagues controller
make the default_serializer_options method private
Add the show action, so we can look up the league specifiend in the params