[Rails] Re: void value expression on model

2014-09-16 Thread Adrien R.
Hello, Thank you very much everybody, this was as simple as you told: parse error in player.rb. I wasn't looking in the good direction at all and was confused by the fact it was thrown while accessing the attribute (and then initializing the class). -- Posted via http://www.ruby-forum.com/.

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

2014-09-15 Thread Adrien R.
Colin Law wrote in post #1157676: > 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 :

[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

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

2014-09-14 Thread Adrien R.
Colin Law wrote in post #1157596: > On 14 September 2014 09:58, Adrien R. wrote: >> Hello, >> >> A little up for this problem which seems complex since nobody has the >> answer yet. > > You have not quoted the previous message so I had to search back > thro

[Rails] Re: void value expression on model

2014-09-14 Thread Adrien R.
Hello, A little up for this problem which seems complex since nobody has the answer yet. -- Posted via http://www.ruby-forum.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 email

[Rails] Re: void value expression on model

2014-09-09 Thread Adrien R.
Hello, Thank you for your remarks but it doesn't seem to be the reason here: "cards" is not in "Parameters" but it successfully accesses the attribute when I log it. I have run another page to display a game (already existing in the db), I have got the same error "void value expression" when tr

[Rails] Re: void value expression on model

2014-09-02 Thread Adrien R.
Thank you Jason for your fast reply. I didn't know about the default logger, I have changed my code. Yes it is in a controller, in the create action: https://gist.github.com/anonymous/d138a4f2c76bb4b32dd2 The full log: Started POST "/game" for 127.0.0.1 at 2014-09-03 00:14:49 +0200 Processing by G

[Rails] void value expression on model

2014-09-02 Thread Adrien R.
Hello, I'm having an error I don't understand for several days. I have a class Game, which have 2 attributes : class Game < ActiveRecord::Base has_many :players has_many :cards, as: :cardable Then I create a new instance and access the players it fails with void value expression. @game = Ga