I am starting out with Ruby on Rails. I am currently going through a tutorial where it says that I have to run a .rb file from IRB and that that will create a .xml file in m
You can "run" a file in irb by just requiring or loading it.
$ irb >> load './filename.rb'
To change your current working directory within irb, you can use FileUtils:
>> require 'fileutils' >> FileUtils.pwd # prints working directory >> FileUtils.cd '/path/to/somewhere' # changes the directory