I recommend this great post that can help you identify mistakes when beginning your development with this amazing framework
How to work on the console when you have a ruby project you want to try? If you are tweaking the code I believe that gem install … is not the solution.
So, I found a solution here: http://stackoverflow.com/questions/5424905/automatically-load-projects-environment-to-irb
What you can do is
irb -Iname_of_libfolder -rname_of_rb_file
for example for me that was irb -Ilib -rwp_rpc
It is a common practise of beginners to try and solve all the programming challenges with if statements.
Ruby allows you smart ways of writting elegant code without the need of ifs, as you can see in the great video example provided by Franklin Webber at the Jumpstart Lab