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

image_url not working #10

Open
johnzw89 opened this issue Sep 4, 2015 · 1 comment
Open

image_url not working #10

johnzw89 opened this issue Sep 4, 2015 · 1 comment

Comments

@johnzw89
Copy link

johnzw89 commented Sep 4, 2015

Hello! Love this gem. I ran through the example in the readme however the parsed recipe object does not have image_url method.

eg.
require 'open-uri'
require 'hangry'
recipe_url = "http://paleoleap.com/lobster-salad-taro-chips/"
recipe_html_string = open(recipe_url).read
recipe = Hangry.parse(recipe_html_string)
image_url = recipe.image_url

I'm on version 0.0.2
When I use the same recipe_url in the demo, the image_url is found. Is it on a different version?

Thanks.
John

@johnzw89
Copy link
Author

johnzw89 commented Sep 4, 2015

I think its due to rails 4 compatibility. version 0.0.13 depends on activesupport (~> 3.0)
I'm on activesupport (4.2.1)

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