On 15 September 2014 21:15, Adrien R. wrote:
> Colin Law wrote in post #1157627:
>> Sorry, I meant Player of course.
>>
>
> Here it is:
>
> class Player < ActiveRecord::Base
> belongs_to :game
> has_many :cards, as: :cardable
What happens if you say
puts @game.players.inspect
Colin
--
You
Colin Law wrote in post #1157627:
> Sorry, I meant Player of course.
>
Here it is:
class Player < ActiveRecord::Base
belongs_to :game
has_many :cards, as: :cardable
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
2 matches
Mail list logo