Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Only one published post fails to create a Posts hash #6

Open
ovoice opened this issue May 31, 2010 · 0 comments
Open

Only one published post fails to create a Posts hash #6

ovoice opened this issue May 31, 2010 · 0 comments

Comments

@ovoice
Copy link

ovoice commented May 31, 2010

I'm trying to pull 3 posts from tumblr Tumblr::Post.all(:num => 3, :filter => 'text'). When I have 2 published posts on tumblr, no problem. But when I had only one published post, the gem was giving me a multi-dimensional array instead of a hash of my posts, i.e. post.inspect looks like this:

[["slug", "getting-started-and-building-momentum"], ["unix_timestamp", "1274706900"], ..

Thus when I try to grab any value post['date'], I get a can't convert String into Integer as my posts object is now looking for an array index and not a hash key.

I just wanted to make this an known issue in case someone else runs into this error. It may be the same issue as #3, but it doesn't appear to be so. If I have some time, I'll try to look into it more in the next few weeks.

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

No branches or pull requests

1 participant