title: Mongrel Rails error: RoutingError (No route matches "/://0" with {:method=>:get}):
body: <p>I keep seeing this error in my rails production log, any ideas what the issue is?
  Im running rails on apache with mongrel clusters.
  RoutingError (No route matches "/://0" with {:method=>:get}):</p>
  
  <p>Not sure what attempted url is causing the error.</p>
  
  <p>Edit: Heres my routes.rb file</p>
  
  <p>ActionController::Routing::Routes.draw do |map|</p>
  
  <pre><code>map.signout '/account/signout', :controller =&gt; 'sessions', :action =&gt; 'destroy'
  map.signin '/account/signin', :controller =&gt; 'sessions', :action =&gt; 'new'
  map.signup '/account/signup', :controller =&gt; 'users', :action =&gt; 'new'
  
  map.change_password '/account/change_password', :controller =&gt; 'users', :action =&gt; 'change_password'
  map.forgot_password '/account/forgot_password', :controller =&gt; 'users', :action =&gt; 'forgot_password'
  map.reset_password '/account/reset_password/:id', :controller =&gt; 'users', :action =&gt; 'reset_password'   
  
  map.preferences '/preferences', :controller =&gt; 'preferences', :action =&gt; 'index'
  map.dashboard '/dashboard', :controller =&gt; 'dashboard', :action =&gt; 'index'
  map.account '/account', :controller =&gt; 'account', :action =&gt; 'index'
  map.affiliate '/affiliates', :controller =&gt; 'affiliates', :action =&gt; 'index'
  
  map.essentials '/preferences/essentials', :controller =&gt; 'preferences/essentials', :action =&gt; 'index'
  map.contacts '/preferences/contacts', :controller =&gt; 'preferences/contacts', :action =&gt; 'index'
  map.travel '/preferences/travel', :controller =&gt; 'preferences/travel', :action =&gt; 'index'
  map.online '/preferences/online', :controller =&gt; 'preferences/online', :action =&gt; 'index'
  map.reminders '/preferences/reminders', :controller =&gt; 'preferences/reminders', :action =&gt; 'index'
  map.miscellaneous '/preferences/miscellaneous', :controller =&gt; 'preferences/miscellaneous', :action =&gt; 'index'
  
  map.home '/home', :controller =&gt; 'main', :action =&gt; 'home'
  map.about '/about', :controller =&gt; 'main', :action =&gt; 'about'
  map.gift '/gift', :controller =&gt; 'gift', :action =&gt; 'index'
  map.plans '/plans', :controller =&gt; 'main', :action =&gt; 'plans'
  map.faqs '/faqs', :controller =&gt; 'main', :action =&gt; 'faqs'
  map.contact '/contact', :controller =&gt; 'main', :action =&gt; 'contact'
  
  map.tos '/terms_of_service', :controller =&gt; 'main', :action =&gt; 'terms_of_service'
  map.privacy '/privacy', :controller =&gt; 'main', :action =&gt; 'privacy'
  
  map.root :controller =&gt; 'main'
  
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
  </code></pre>
  
  <p>end</p>
  
  <p>The complete error message from rails error log:</p>
  
  <pre><code>ActionController::RoutingError (No route matches "/account/://0" with {:method=&gt;:get}):
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/recognition_optimisation.rb:66:in `recognize_path'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:386:in `recognize'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:182:in `handle_request'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
  /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
  /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
  /usr/local/bin/mongrel_rails:19:in `load'
  /usr/local/bin/mongrel_rails:19
  </code></pre>
  
  <p>Excerpt from apache vhost file:</p>
  
  <pre><code>  RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]
  
    # Redirect all non-static requests to Mongrel
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
    RewriteRule ^/(.*)$ balancer://mongrel1%{REQUEST_URI} [P,QSA,L]
  
    &lt;Proxy balancer://mongrel1&gt;
      BalancerMember http://127.0.0.1:3000
      BalancerMember http://127.0.0.1:3001
    &lt;/Proxy&gt;
  
    ProxyPass / balancer://mongrel1/
    ProxyPassReverse / balancer://mongrel1/
    ProxyPreserveHost on
  </code></pre>
  
  <p>Thanks!</p>