I am using osx 10.8.2 installed ruby 2.0 and.... got this when trying to run "sudo gem install rails"
$ sudo gem install railsERROR: Loading command: install (LoadError) cannot load such file -- opensslERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass
I had ruby 1.9.x and rails 3.2.x working alright before