Displaying 1 result from an estimated 1 matches for "prices_are_public_to_pricemak".
2013 Jul 06
2
I thought Rails 3.2 ActionController automatically converts JSON params hashes...
...#39;t, that is, it
seems I am required to decode the json params explicitly. Why?
Here''s an example of a post from my dev log...
Processing by MarketlessPriceRequestsController#create as JSON
Parameters: {"utf8"=>"✓",
"price_request"=>"{\"prices_are_public_to_pricemakers\":false, ...
Here''s params[:price_request] in the controller
{"prices_are_public_to_pricemakers":false, ...
But it looks like I need to decode the json explicity to get to the
accepted form...
{"prices_are_public_to_pricemakers"=>false, ...
Can I con...