Re: [Rails] void value expression on model

2014-09-16 Thread Jason Fleetwood-Boldt
I really like my IDE which shows me syntax errors hi-lighted in red. Any good IDE (Sublime, Rubymine, etc) should do this for you and it's a good thing to adopt such a tool. On Sep 16, 2014, at 11:06 AM, Matt Jones wrote: > > > On Tuesday, 2 September 2014 18:20:57 UTC-4, Ruby-Forum.com

Re: [Rails] void value expression on model

2014-09-03 Thread Jason Fleetwood-Boldt
your controller action log shows that you have no params for cards (look where it says "Parameter" also your game_params method on the controller doesn't permit the cards attribute. On Sep 2, 2014, at 6:20 PM, Adrien R. wrote: > Thank you Jason for your fast reply. I didn't know about th

Re: [Rails] void value expression on model

2014-09-02 Thread Jason Fleetwood-Boldt
do you know how to tail the development log (I assume not because you are using puts statements instead of logger.debug statements). You probably want to get used to using logger.debug(x.inspect) (where x is the variable you want to look at) for debugging. Please tail the development log an

[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