title: rails console doesn't load due to libreadline
body: <p>I have recently reinstalled ruby 2.1.2 like so since I wanted to install a gem (<code>ruby-debug-ide</code>)</p>
  
  <pre><code>sudo rvm reinstall 2.1.2 --disable-binary --with-gcc=gcc-4.2
  </code></pre>
  
  <p>Since then, I can't load my console using <code>bundle exec rails c</code>
  due to the following error :</p>
  
  <pre><code>/Users/ohad/.rvm/gems/ruby-2.1.2@aaa/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/ohad/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/readline.bundle, 9): Library not loaded: @@HOMEBREW_PREFIX@@/opt/readline/lib/libreadline.6.dylib (LoadError)
    Referenced from: /Users/ohad/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/readline.bundle
  </code></pre>
  
  <p>Tried <code>brew uninstall readline</code> and <code>brew install --build-from-source readline</code> which worked but didn't solve my problem.</p>