Skip to content

Instantly share code, notes, and snippets.

@watson
Created September 5, 2011 10:46
Show Gist options
  • Save watson/1194679 to your computer and use it in GitHub Desktop.
Save watson/1194679 to your computer and use it in GitHub Desktop.
This is a part of my development.log for a Rails 3.1.0.rc5 project. I was submitting an edit view just as the browser was requesting a file from the server (content.css). As you can see from the log it has mixed up the GET and the PUT call
Started GET "/assets/tiny_mce/themes/advanced/skins/default/content.css" for 127.0.0.1 at 2011-09-05 12:40:25 +0200
Processing by Admin::DealsController#update as HTML
Parameters: {...}, "commit"=>"Update Deal", "id"=>"127", "locale"=>"en"}
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 165 LIMIT 1
Served asset /tiny_mce/themes/advanced/skins/default/content.css - 304 Not Modified (3ms)
Organization Load (1.4ms) SELECT `organizations`.* FROM `organizations` INNER JOIN `configurations` ON `configurations`.`organization_id` = `organizations`.`id` WHERE `configurations`.`domain` = 'downtown.dev' LIMIT 1
<snip>
(0.8ms) COMMIT
Redirected to http://localhost:3000/en/admin/deals/127
Completed 302 Found in 1601ms
@watson
Copy link
Author

watson commented Sep 5, 2011

On line 1 it starts a GET call
On line 2-4 it's already inside the PUT call (no line saying "Starting PUT" before this)
On line 5 it's finishing the GET call
On line 6+ it's finishing the PUT call

Note that I on line 3 have removed the parameters and I on line 7 have removed all the SQL for the purpose of simplicity.

Btw... I'm running the Pow webserver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment