title: Rails app logging duplicate requests
body: <p>I have a Rails app that is generating duplicate requests for every request in development.  The app is running Rails 2.3.5 with my primary development machine running Ubuntu 10.4.  However, the same code runs fine without showing duplicate requests on my OS X 10.6 box.  It also runs in Production mode on either machine without problems.</p>
  
  <pre><code>  Processing DashboardController#index (for 127.0.0.1 at 2010-07-16 10:23:08) [GET]
    Parameters: {"action"=&gt;"index", "controller"=&gt;"dashboard"}
  Rendering template within layouts/application
  Rendering dashboard/index
    Term Load (1.9ms)   SELECT * FROM "date_ranges" WHERE ('2010-07-16' BETWEEN begin_date and end_date ) AND ( ("date_ranges"."type" = 'Term' ) ) 
    StaticData Load (1.1ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
  Rendered dashboard/_news (0.1ms)
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    StaticData Load (0.9ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'TAG_LINE') LIMIT 1
  Completed in 67ms (View: 58, DB: 5) | 200 OK [http://localhost/dashboard]
    SQL (0.4ms)   SET client_min_messages TO 'panic'
    SQL (0.4ms)   SET client_min_messages TO 'notice'
  
  
  Processing DashboardController#index (for 127.0.0.1 at 2010-07-16 10:23:08) [GET]
    Parameters: {"action"=&gt;"index", "controller"=&gt;"dashboard"}
  Rendering template within layouts/application
  Rendering dashboard/index
    Term Load (1.9ms)   SELECT * FROM "date_ranges" WHERE ('2010-07-16' BETWEEN begin_date and end_date ) AND ( ("date_ranges"."type" = 'Term' ) ) 
    StaticData Load (1.1ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
  Rendered dashboard/_news (0.1ms)
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    CACHE (0.0ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'SITE_NAME') LIMIT 1
    StaticData Load (0.9ms)   SELECT * FROM "static_data" WHERE ("static_data"."name" = E'TAG_LINE') LIMIT 1
  Completed in 67ms (View: 58, DB: 5) | 200 OK [http://localhost/dashboard]
    SQL (0.4ms)   SET client_min_messages TO 'panic'
    SQL (0.4ms)   SET client_min_messages TO 'notice'
  </code></pre>
  
  <p>Notice that the requests are <strong>exactly</strong> the same, even down to the timestamps.</p>
  
  <p>I have tried using Ruby 1.8.7 &amp; 1.9.1 as well as swapping between Mongrel &amp; Webrick and it always processes each request twice (or at least it generates two log entries).  I tried removing most of the routes to see if I had something weird going on, but the problem persists.  I tried different browsers (Chrome, Safari, eLinks) from different machines to see if that would help, but the problem persists.  I removed all of my gems and only replaced the necessary ones but to no avail.</p>
  
  <p>Does anyone have any idea why Rails would cause duplicate requests like this?  I am about at my wits end and am grasping at straws.  The only bright spark is that this behavior does not happen under the Production environment, only Development.</p>