I am starting out with Ruby on Rails. I am currently going through a tutorial that says that I have to run a .rb file from IRB to create a .xml file in my current directory.
My question is how do I run a .rb file in IRB?
I tried the following: just typing irb
on the command line in the directory of the file. That starts an IRB session as far as I understand.
Then I typed
irb filename.rb
which went through, but didn't create anything in the current directory.
require '~/myrubystuff/coolstuff.rb'
instead of justrequire 'coolstuff'
– Wanyen