On Apr 17, 2007, at 12:22 PM, poison tooth wrote: > Im just learning ruby and im stuck the guide im using says > > "Your first program > Congratulations! Now that you have made it this far, you are ready to > start writing programs. > Hello World > Grab a text editor and type in the following: > > puts "Hello World" > > Save the file as hello.rb and run it by typing > ruby hello.rb" > > i've tried that more than once and it says the out is: > > "irb(main):001:0> ruby hello.rb > NameError: undefined local variable or method `hello' for main:Object > from (irb):1 > irb(main):002:0> " Try running "ruby hello.rb" from a Terminal window (on a Mac) instead of from irb. If you want to run it from irb, enter "load 'hello.rb'". > the guide never said what word processor should i use > i tried TextEdit.app but it fussed about the .rb > so i used Microsoft word and this is what it does... > > Any tips? You can use any text editor. TextEdit should be fine, but there are many better choices. I see you're on a Mac. Check out TextMate.