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
345 stars 80 forks source link

Simple input gives varying amount of errors #67

Closed davidcelis closed 13 years ago

davidcelis commented 13 years ago

Trying to use tryruby.org on Mac OS X Safari and Firefox (have not tried Chrome) and am getting varied results. In Firefox, I was able to begin the tutorial and do a bit of math, but simply typing in a string ("David") was giving me the following error:

NameError: uninitialized constant David

When I tried it in Safari, almost anything I do gives the error:

SyntaxError: (TryRuby):1: syntax error, unexpected '\n', expecting '='

This is actually now happening in Firefox, as well. What's going on?

davidcelis commented 13 years ago

Also, resetting causes the next few commands to simply return a string "bye", regardless of what Ruby code I type in.

rmcentyre commented 13 years ago

Using Chrome on Windows 7 or Safari on Snow Leopard:

Interactive ruby ready.

help
2+6
=> 8
"Jimmy"
NameError: uninitialized constant Jimmy

"reset" doesn't seem to do anything.

rmcentyre commented 13 years ago

Looking at another issue, it seems that "next" allows you to skip and proceed with the tutorial.

sethladd commented 13 years ago

you need to type name = "Jimmy" to get past this step

davidcelis commented 13 years ago

Yes, but that is clearly not desired behavior. It should not be necessary to assign the String to a variable; this is not how Ruby works.

Sophrinix commented 13 years ago

this should be resolved. ive been bad about closing tickets.