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

How to send an array as param #19

Closed
solojavier opened this issue Jun 20, 2012 · 2 comments
Closed

How to send an array as param #19

solojavier opened this issue Jun 20, 2012 · 2 comments

Comments

@solojavier
Copy link

Hi,

How can I achieve this?

https://gist.github.com/2962538

Thanks in advance...

@solojavier
Copy link
Author

I made a workaround by doing this:

request = client.get_videos(ids: ids)

request.uri.query = request.uri.query.gsub(/[\d]/,'[]')

request.perform

@mwunsch
Copy link
Owner

mwunsch commented Sep 10, 2012

This use case seems to be outside of the scope of Weary's opinionated design. The addressable gem is used to transform parameters to a query string here. Because you do have access to the request object and the request URI object, I would do something similar to your workaround.

@mwunsch mwunsch closed this as completed Sep 10, 2012
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

2 participants