Skip to content

Instantly share code, notes, and snippets.

@johndavid400
Created September 25, 2012 21:33
Show Gist options
  • Save johndavid400/3784590 to your computer and use it in GitHub Desktop.
Save johndavid400/3784590 to your computer and use it in GitHub Desktop.
[1] pry(#<Spree::Admin::RewardsController>)> params
=> {"utf8"=>"✓",
"authenticity_token"=>"ub/MEIAljj0HvsdI+wH2Epgxhvcsvs7ex3Rhjb/GvI4=",
"product_type"=>"charity",
"product"=>
{"name"=>"AAAA",
"description"=>"asdfasdf",
"price"=>"23",
"on_hand"=>"23",
"available_on"=>"2012/09/13",
"svg"=>
{"svg_file_name"=>
#<ActionDispatch::Http::UploadedFile:0x00000006e057d0
@content_type="image/png",
@headers=
"Content-Disposition: form-data; name=\"product[svg][svg_file_name]\"; filename=\"blue_stickie_no_text.png\"\r\nContent-Type: image/png\r\n",
@original_filename="blue_stickie_no_text.png",
@tempfile=#<File:/tmp/RackMultipart20120925-18748-15stgpx>>},
"store_ids"=>["1", "2"],
"id"=>"",
"filter"=>"1"},
"classroom"=>"1",
"min_grade"=>"1st Grade",
"max_grade"=>"1st Grade",
"method"=>"post",
"action"=>"create",
"controller"=>"spree/admin/rewards",
"current_store_id"=>1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment