Created
March 9, 2012 15:44
-
-
Save jesjos/2007151 to your computer and use it in GitHub Desktop.
Upload + commit_request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started POST "/upload" for 127.0.0.1 at 2012-03-09 16:43:31 +0100 | |
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request. | |
Processing by UploadsController#upload as JSON | |
Parameters: {"files"=>[#<ActionDispatch::Http::UploadedFile:0x0000012c0261b0 @original_filename="P3040167.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"files[]\"; filename=\"P3040167.JPG\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/cx/vtstdwkd37g97t2r24zkyrkr0000gn/T/RackMultipart20120309-28772-12fw9en>>, #<ActionDispatch::Http::UploadedFile:0x0000012c026138 @original_filename="P3040170.JPG", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"files[]\"; filename=\"P3040170.JPG\"\r\nContent-Type: image/jpeg\r\n", @tempfile=#<File:/var/folders/cx/vtstdwkd37g97t2r24zkyrkr0000gn/T/RackMultipart20120309-28772-12g7lf>>]} | |
Completed 200 OK in 265ms (Views: 0.7ms | ActiveRecord: 0.0ms) | |
Started POST "/commit_requests/create" for 127.0.0.1 at 2012-03-09 16:43:31 +0100 | |
RailsDevTweaks: Skipping ActionDispatch::Reloader hooks for this request. | |
Processing by CommitRequestsController#create as */* | |
Parameters: {"commit_request"=>{"command"=>"add", "repository"=>"1", "branch"=>"master", "commit_message"=>"Dummy message", "files"=>{"0"=>{"id"=>"6166551264942783979", "to"=>"//P3040167.JPG"}, "1"=>{"id"=>"15154041794234109396", "to"=>"//P3040170.JPG"}}}} | |
Params look like this: {"commit_request"=>{"command"=>"add", "repository"=>"1", "branch"=>"master", "commit_message"=>"Dummy message", "files"=>{"0"=>{"id"=>"6166551264942783979", "to"=>"//P3040167.JPG"}, "1"=>{"id"=>"15154041794234109396", "to"=>"//P3040170.JPG"}}}, "controller"=>"commit_requests", "action"=>"create"} | |
GroupHasUser Load (0.3ms) SELECT `group_has_users`.* FROM `group_has_users` WHERE `group_has_users`.`student_id` IS NULL | |
Completed 200 OK in 396ms (Views: 0.2ms | ActiveRecord: 3.6ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment