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

TypeError: 0 is not a symbol nor a string #16

Closed
marr opened this issue Nov 13, 2015 · 1 comment
Closed

TypeError: 0 is not a symbol nor a string #16

marr opened this issue Nov 13, 2015 · 1 comment

Comments

@marr
Copy link

marr commented Nov 13, 2015

Hi,
I am trying to use the refile/s3 gem and having some trouble during the upload. I have a test here in pictures_controller_test.rb https://github.com/marr/localpic2

The stacktrace doesn't show much more than this:

Api::V1::PicturesControllerTest#test_should_post_create:
TypeError: 0 is not a symbol nor a string
    app/controllers/api/v1/pictures_controller.rb:22:in `create'
    test/controllers/api/v1/pictures_controller_test.rb:17:in `block in <class:PicturesControllerTest>'

Any help would be appreciated, cc @hiromipaw

@marr
Copy link
Author

marr commented Dec 22, 2015

requiring aws-sdk-v1 alongside the newer aws-sdk was the issue here. I removed the reference to aws-sdk-v1 which fixed it: marr/localpic2@c6b590c

@marr marr closed this as completed Dec 22, 2015
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