Problem on the view

Hi folks, Happy new year

I’m having problems buillding my views, can you help me? I want every team to be printed with different colors, and so I created a migration to include these fields

The problem is exactly as stated in the error message: you've added attributes to Team but you're trying to access "color1" as an attribute of a String (the team name).

You have partida.away that returns a string, string does not have the method color1 I think you want to do, partida.color1. You error is that you have partida.away.color1, its the same as saying 'Colorado Rockies'.color1 which makes no sense.

Shame on me, lol. Thank you folks. Really appreciate your help