Use https rubygems source in Gemfile
Use rails-3.1