Skip to content

Instantly share code, notes, and snippets.

@mbhnyc
Created November 25, 2011 14:34
Show Gist options
  • Save mbhnyc/1393651 to your computer and use it in GitHub Desktop.
Save mbhnyc/1393651 to your computer and use it in GitHub Desktop.
Test Params
{"utf8"=>"✓",
"_method"=>"put",
"authenticity_token"=>"mwSXSnnkNo37wsC7juyHXTlCYKJRLRn1vr26+uiHYJs=",
"profile"=>{"username"=>"blah",
"email"=>"blah@gmail.com",
"datingprofile_attributes"=>{"birthday(1i)"=>"1977",
"birthday(2i)"=>"12",
"birthday(3i)"=>"27",
"gender"=>"M",
"orientation"=>"",
"relationship_status"=>"S",
"self_summary"=>"asdfasdf",
"photos_attributes"=>{"new_1322201908830"=>{"description"=>"",
"file"=>#<ActionDispatch::Http::UploadedFile:0x007feb0c632e10 @original_filename="me.jpg",
@content_type="image/jpeg",
@headers="Content-Disposition: form-data; name=\"profile[datingprofile_attributes][photos_attributes][new_1322201908830][file]\"; filename=\"me.jpg\"\r\nContent-Type: image/jpeg\r\n",
@tempfile=#<File:/var/folders/kq/th87b96j5ns46yqzlfz2rfjc0000gn/T/RackMultipart20111125-8542-1bwpzup>>}},
"id"=>"1"}},
"commit"=>"Update Profile"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment