Do you have:
has_many :players
in your Team model?
In order to access players in a team or team in Player object you must define relations in the model. In the later case it should be:
belongs_to :team
Do you have:
has_many :players
in your Team model?
In order to access players in a team or team in Player object you must define relations in the model. In the later case it should be:
belongs_to :team