Sophrinix / TryRuby

Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
tryruby.org
347 stars 79 forks source link

books["Gravity's Rainbow"] = :splendid doesn't work #149

Closed avjgit closed 13 years ago

avjgit commented 13 years ago

gives out error "NameError: undefined local variable or method `book' for main:Object "

davidmiani commented 13 years ago

Did you define books first? I tried books = {} then books["Gravity's Rainbow"] = :splendid and it worked correctly.

Note your error message uses the work book instead of books. Maybe you mistyped it?

ghost commented 13 years ago

It failed for me also. In addition, I find the tutorial painstaking because I cannot delete a character if I make a single typo. I also can't go back and look at the instructions for the previous screen. It appears that if you make a mistake along the way, the rest of the tutorial can break.

avjgit commented 13 years ago

nanothief, you are absolutely right. I did a typo. "Books", not "book".

avjgit commented 13 years ago

deonomo, you can delete a char by putting cursor on and then pressing backspace or delete. Jjust pressing backspace doesn't work, I know.