README bug: "upload_token" example fails. #124

Closed
epitron opened this Issue Sep 23, 2012 · 2 comments

Comments

Projects
None yet
2 participants

epitron commented Sep 23, 2012

Hi there!

I discovered that the upload_token example in the README is broken. It says to use the following parameters to the method:

:title => "title", :description => "description", :category => "People", :tags => ["test"]

This results in a somewhat unilluminating error message:

NoMethodError: undefined methodjoin' for nil:NilClass`

After scratching my head a bit, I discovered that there's no :tags option -- it should be called :keywords.

Here are some possible solutions:

  1. If :keywords isn't supplied, use :tags... because it's just less typing!
  2. Check that all the required options are there before trying to use them, and if not, raise a more informative exception.
  3. Fix the README and hope nobody mistypes their options by accident. :)

Thanks!

Collaborator

chebyte commented Jan 9, 2013

thanks you are right the options was keywords

chebyte closed this Jan 9, 2013

epitron commented Jan 10, 2013

I take it you opted for solution #3? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment