There is nothing worse than losing code that you have spent eons writing. RubyMine has some nice built-in tools to manage your version control systems including Subversion and GIT repositories.
Open your Progeny
Rails project in RubyMine.
Depending on your OS, download and install Subversion and GIT as follows:
No credit card required