Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Nested params working? #277

Closed
craigsheen opened this issue Jul 22, 2013 · 1 comment
Closed

HTTP Nested params working? #277

craigsheen opened this issue Jul 22, 2013 · 1 comment

Comments

@craigsheen
Copy link

Hi,

Great gem!

However do nested params work? I can't seem to find any tests and I cant get them working.

I have tried numerous ways, using JSON and using normal nested params and neither have worked.

    BW::HTTP.post("http://localhost:3000/new_gas_assessment", {payload: '"gas_assessment"=>"01/01/2013","well1"=>{"well_id"=>"ws201","date_taken"=>"22/07/2013"}'}) do |response|
      puts response
    end

Parameters: {""gas_assessment""=>">"01/01/2013","well1"=>{"well_id"=>"ws201","date_taken"=>"22/07/2013"}"}

Thanks.

@craigsheen
Copy link
Author

Nevermind I've managed to find this on an old closed issue. Maybe the readme could be updated to explain this a bit further? #219 is the issue and pull request which explain it in the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant