Created
April 4, 2017 08:35
-
-
Save Epigene/d64d29ad362d768a71859c109dac4811 to your computer and use it in GitHub Desktop.
Param structure when submitting OfferItem nested attributes for PurchaseOffer-s.
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
[1] pry(#<#<Class:0x007fa02286da98>>)> params | |
=> {"purchase_offer"=> | |
{"title"=>"New Title", | |
"offer_items_attributes"=> | |
[{"id"=>"364", "main"=>"0"}, | |
{"id"=>"365", "_destroy"=>"1"}, | |
{"purchase_item_id"=>"19", "main"=>"0"}]}, | |
"id"=>"238", | |
"controller"=>"admin/purchase_offers", | |
"action"=>"update"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment