Scott Ribe wrote:
On Nov 19, 2014, at 10:49 AM, Robert Fitzpatrick<rob...@webtent.org> wrote:
Then the code uses '#puts something if @verbose' throughout. Like I said, I'm
new to ruby, but have used Perl and PHP and other languages before, I hope is
what is throwing me off is the # are not comments? This almost looks like
@verbose would always be false. What is this piece of code looking for as an
argument?
You're reading things correctly.
# starts a comment
@verbose is always false in this code, and would be even if the if were not
commented out
The code doesn't even make sense as the result of someone trying to comment out
something to hard-wire @verbose to one value or the other...
OK, that's a relief that I can read the code, thanks for clarifying. To
get verbosity, I'll need to do a lot of uncommenting and do line-by-line
debuggging :-/
Jason mentioned a debugging tool for Rails 2.0 earlier, what about for
this 1.9.3, anything available to help?
--
Robert
--
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/546CDD73.7000501%40webtent.org.
For more options, visit https://groups.google.com/d/optout.