hangry icon indicating copy to clipboard operation
hangry copied to clipboard

image_url not working

Open johnzw89 opened this issue 9 years ago • 1 comments

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 avatar Sep 04 '15 03:09 johnzw89

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

johnzw89 avatar Sep 04 '15 03:09 johnzw89