I begin to create a rails API for react. I pass a GET request with params inside url like this:
api/dashboard/price?"foo"="bar"
But my rails app by default cannot decode it properly and on backend side. My params object looks this way:
<ActionController::Parameters {"\"foo\""=>"\"bar\"", "controller"=>"api/dashboards", "action"=>"price"} permitted: false>
Furthermore I cannot access any of those keys e.g:
params[:foo]
returns nil
How can I get rid of those slashes and decode url params proper way?