Re: [Rails] Re: Re: Re: void value expression on model

2014-09-15 Thread Colin Law
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

[Rails] Re: Re: Re: void value expression on model

2014-09-15 Thread Adrien R.
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