Player model def update_statistics(game) for round in game.rounds
.... end
Why am I getting undefined method `each' for #<Round:0x261cc0c> ??
Player model def update_statistics(game) for round in game.rounds
.... end
Why am I getting undefined method `each' for #<Round:0x261cc0c> ??
edberner wrote:
Player model def update_statistics(game) for round in game.rounds
.... end
Why am I getting undefined method `each' for #<Round:0x261cc0c> ??
Because game is not an Array.
- -- Phillip Gawlowski Twitter: twitter.com/cynicalryan
~ - You know you've been hacking too long when... ...your speech is punctuated by finger twitches (or arm-waving) indicating braces.
edberner wrote:
Player model def update_statistics(game) for round in game.rounds
.... end
Why am I getting undefined method `each' for #<Round:0x261cc0c>
Err, disregard my earlier mail.
round is not an Array or any other Object including Enumerable.
- -- Phillip Gawlowski Twitter: twitter.com/cynicalryan
~ Hobbes : What if the public doesn't like your work? ~ Calvin : They are not supposed to like it. This is avant-garde stuff! ~ I'm criticizing the low brows who can't appreciate great art ~ like this!