title: Unable to connect to Geckodriver
body: <p>I'm trying to run the example scirpt of Selenium with Ruby on Rails. I've to run it with a proxy. Here's my code:</p>
  
  <pre><code>require 'rubygems'
  require 'bundler/setup'
  
  # require your gems as usual
  require "selenium-webdriver"
  
  Selenium::WebDriver::Firefox.path = "/home/marc/Documents/firefox/firefox"
  profile = Selenium::WebDriver::Firefox::Profile.new
  proxy = Selenium::WebDriver::Proxy.new(:http =&gt; nil)
  profile.proxy = proxy
  driver = Selenium::WebDriver.for :firefox, :profile =&gt; profile
  driver.navigate.to "http://google.com"
  
  element = driver.find_element(:name, 'q')
  element.send_keys "Hello WebDriver!"
  element.submit
  
  puts driver.title
  
  driver.quit
  </code></pre>
  
  <p>I got the following error:</p>
  
  <pre><code>/home/marc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.0.0.beta3.1/lib/selenium/webdriver/common/service.rb:115:in `connect_until_stable': unable to connect to Mozilla geckodriver 127.0.0.1:4445 (Selenium::WebDriver::Error::WebDriverError)
  </code></pre>
  
  <p>Can someone help me...? I'm trying since hours and can't find the problem... Really don't know what to do.</p>
  
  <p>Environment:</p>
  
  <p>Ubuntu 16.04 LTS,
   Firefox 45.0,
   rbenv 2.3.1</p>
  
  <p>Other question: Someone knows some example for Selenium + Ruby on Rails?  I can't find really good stuff... the documentation is really poor :(</p>