title: OSX Ruby Error when starting a Rails scaffolding: Could not load OpenSSL
body: <p>I had been racking my head on this for far too long. </p>
  
  <p>I am installing ruby via RVM. I had no troubles while installing Ruby. The issue come with using openssl with anything in ruby i have tried the what seems to be the standard solution of installing RVM openssl package and reinstalling Ruby with --with-openssl-dir.</p>
  
  <p>I have tired every combination of gcc-4.2 vs llvm-gcc (from Xcode). Homebrew openssl vs RVM openssl. Several versions of Ruby 1.9.3. </p>
  
  <p>I get this error message when running 'rails new projectName'</p>
  
  <p><code>Could not load OpenSSL.
  You must recompile Ruby with OpenSSL support or change the sources in your
  Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
  RVM are available at rvm.io/packages/openssl.</code></p>
  
  <p>I have edited the Gemfile and I am able to run the 'bundle install' however after that point, when I go to start the server 'rails s', I get the dreaded 'cannot load such file -- openssl'. This has shown up during a couple for the reinstalls as well but the latest mix of using Homebrew openssl and readline doesn't give these errors during install, just when I get to starting the server. </p>
  
  <p>I will be happy to post any config files or setting that are needed to help diagnose the problem. I am using the stable release of RVM and on OS X 10.8.2. I am new to Mac (this is the second day) and have some basic unix experience, so kid glove explanations are welcome. </p>