K
Karl Halvorson
I am new to Ruby and have been looking for some basic beginner help. I
have not been able to find a beginner forum anywhere, so I apologize if
this is too basic a question for this group. I have installed ruby
1.9.1 on my windows 7 pc and have had success using interactive ruby
(and the Windows command prompt). Where I am stuck is creating a script
in notepad and then running that script. It seems a bit peculiar to me
that all the beginning tutorials that I have tried just say to create
these scripts, but they don’t mention where they need to be saved. I
also have not come across any tutorials that cover configuring the ruby
file path. I believe I have written and named the scripts properly, but
when I try to open them, I get the error message:
NameError: undefined local variable or method ‘hello’ for main:Object
from (irb):1
from C:/Ruby191/bin/irb:12:in ‘<main>’
Any help would be much appreciated.
have not been able to find a beginner forum anywhere, so I apologize if
this is too basic a question for this group. I have installed ruby
1.9.1 on my windows 7 pc and have had success using interactive ruby
(and the Windows command prompt). Where I am stuck is creating a script
in notepad and then running that script. It seems a bit peculiar to me
that all the beginning tutorials that I have tried just say to create
these scripts, but they don’t mention where they need to be saved. I
also have not come across any tutorials that cover configuring the ruby
file path. I believe I have written and named the scripts properly, but
when I try to open them, I get the error message:
NameError: undefined local variable or method ‘hello’ for main:Object
from (irb):1
from C:/Ruby191/bin/irb:12:in ‘<main>’
Any help would be much appreciated.