On 17 July 2014 12:44, Roelof Wobben <rwob...@hotmail.com> wrote:
> Hello,
>
> IM at listing 7,9 of the tutorial and according to the book that one must be
> red.
> But on my system it is green.
>
> Can anyone explain that.

A simple technique to debug your code is to use puts statements.  They
will output into the server window.  Insert them at appropriate points
in the code and you should be able to work out what is going on.
Sometimes the output may not appear exactly where you might expect,
due to buffing, but it is not difficult to work out. You will learn
more sophisticated debugging techniques later I expect.

Also have a look at the log file (log/test.log for tests) when the
test runs, you may see something helpful there.

Colin

-- 
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/CAL%3D0gLvOh0JE-csqnjgeDH4G3kYeFW3E_DwPNFNbz1YLrCv9uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to