Ruby on Rails
Wednesday, January 3, 2018
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 Abdalla Silveira <andreluizsa00@gmail.com> wrote:
Hi folks, Happy new yearI'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--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com .
To post to this group, send email to rubyonrails-talk@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .2cb07abc-3978-4d60-987f- a44c4b3544bc%40googlegroups. com
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CANkJ5gmvQ1_FFkkjs5BHNCD5Kf7DO8rbQryGmjDMTohENZ-_RQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment