Walter Davis wrote in post #1183825:
var hour = [
var hour = [
method, and you are using it within your block as a local variable. Try
a different word, and see if that makes any difference.
Walter
Unfortunately it didnt solve my problem, but I finally figured it out:
I had a newline character appended to my status variable, so raw.status
could never equal "aufgewacht". It does, though, with raw.status.chomp!
--
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 emails from it, send an email to rubyonrails-talk+unsubscribe@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/e15237d929033d7cbc07378050381d40%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.