Why I Use VirtualBox for Ruby on Rails Development
The setup in Ruby on Rails has to be just right. Each book/tutorial/exercise revolves around the specific setup that the author used, and deviating from it may lead to problems. In other words, Ruby on Rails is FAR more sensitive to technicalities than C, Python, Java, HTML, and other languages/technologies. Using VirtualBox allows me to take snapshots at certain key points in the installation process. If I mess up, I have a better chance of properly troubleshooting things, and I have the option of returning to an earlier setup. Working on Ruby on Rails in my main OS would take these options off the table.
NOTE: I am aware that RVM (Ruby Version Manager) is another option, but I haven't been able to make it work for me. Even if I already knew how to use it, I'd still prefer doing my Ruby on Rails development in VirtualBox.