-
-
Save leemcalilly/1f1e584f56aef15e7af1 to your computer and use it in GitHub Desktop.
This file contains 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 "/photos" for 127.0.0.1 at 2013-08-01 20:23:58 -0400 | |
Processing by PhotosController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"I4O0w+Wk8nJaD6HJRSC+FfuAip5NVE6TkCUFDEN+sW0=", "photo"=>{"image"=>#<ActionDispatch::Http::UploadedFile:0x007fc730b5de08 @tempfile=#<Tempfile:/var/folders/0m/n32lgww55vzf5pfc4kh17gm00000gr/T/RackMultipart20130801-32602-1nj6u2b>, @original_filename="bag.jpg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name=\"photo[image]\"; filename=\"bag.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Upload Photo"} | |
User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] | |
(1.1ms) SELECT COUNT(*) FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]] | |
(0.2ms) BEGIN | |
SQL (1.9ms) INSERT INTO "photos" ("created_at", "image", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Fri, 02 Aug 2013 00:23:59 UTC +00:00], ["image", "bag.jpg"], ["updated_at", Fri, 02 Aug 2013 00:23:59 UTC +00:00]] | |
(0.4ms) COMMIT | |
Redirected to http://localhost:5000/photos | |
Completed 302 Found in 727ms (ActiveRecord: 10.8ms) | |
Started GET "/photos" for 127.0.0.1 at 2013-08-01 20:23:59 -0400 | |
Processing by PhotosController#index as HTML | |
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] | |
(0.4ms) SELECT COUNT(*) FROM "roles" INNER JOIN "users_roles" ON "roles"."id" = "users_roles"."role_id" WHERE "users_roles"."user_id" = $1 AND (((roles.name = 'admin') AND (roles.resource_type IS NULL) AND (roles.resource_id IS NULL))) [["user_id", 1]] | |
Photo Load (0.3ms) SELECT "photos".* FROM "photos" ORDER BY created_at DESC | |
Rendered photos/_form.html.erb (0.8ms) | |
Rendered photos/index.html.erb within layouts/application (4.3ms) | |
Rendered layouts/_nav.html.erb (0.3ms) | |
Rendered layouts/_flash_messages.html.erb (0.1ms) | |
Rendered layouts/_footer.html.erb (0.1ms) | |
Completed 200 OK in 25ms (Views: 17.9ms | ActiveRecord: 1.1ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment