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 <al2o...@gmail.com> wrote:

> 
> 
> On Tuesday, 2 September 2014 18:20:57 UTC-4, Ruby-Forum.com User wrote:
> 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 GameController#create as HTML 
>   Parameters: {"utf8"=>"V", 
> "authenticity_token"=>"gx7TovN+tZbMxOTc91l5P/5jqviBx 
> eO9vlJQaxJ19No=", "game"=>{"small_blind"=>"1", "big_blind"=>"2", 
> "player_number" 
> =>"2"}, "commit"=>"New game !"} 
> cards 
> #<ActiveRecord::Associations::CollectionProxy::ActiveRecord_Associations_Collect
>  
> ionProxy_Card:0x3b762e8> 
> 0 
> players 
> Completed 500 Internal Server Error in 114ms 
> 
> SyntaxError 
> (C:/site/app/models/player.rb:48: voi 
> d value expression): 
>   app/controllers/game_controller.rb:11:in `create' 
> 
> 
> This is not a runtime error, this is a syntax error in 
> `app/models/player.rb`. It's happening at runtime because that line autoloads 
> the Player class.
> 
> You'll want to check the code before and after line 48 for things that aren't 
> correctly structured, or post it here.
> 
> --Matt Jones
> 
> 
> -- 
> 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 emails from it, send an 
> email to rubyonrails-talk+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/rubyonrails-talk/25efda9e-e247-4bd7-8449-26001af82a0b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CC4EF6DB-3FA1-47D9-91AF-F8DD91AF568C%40datatravels.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to