Re: [Rails] Problem on the view

2018-01-04 Thread André Luiz Abdalla Silveira
Shame on me, lol. Thank you folks. Really appreciate your help Em quarta-feira, 3 de janeiro de 2018 12:25:09 UTC-2, radhames brito escreveu: > > 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

Re: [Rails] Problem on the view

2018-01-03 Thread radhames brito
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. On Tue, Jan 2, 2018 at 6:24 PM, André Luiz Ab

Re: [Rails] Problem on the view

2018-01-02 Thread Hassan Schroeder
On Tue, Jan 2, 2018 at 2:24 PM, André Luiz Abdalla Silveira wrote: > 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

[Rails] Problem on the view

2018-01-02 Thread André Luiz Abdalla Silveira

[Rails] Problem on the view

2018-01-02 Thread André Luiz Abdalla Silveira
Happy new year to all of you My view has a problem: I want different instances to be shown with different colors, so every instance has 3 fields related to colors (color1, color2, and font) on its database. I have already run the 'rake db:migrate' command so these fields are guaranteed to exist