Issues with Sinatra and Heroku

Posted by Brian Michel on Stack Overflow See other posts from Stack Overflow or by Brian Michel
Published on 2010-05-21T20:02:08Z Indexed on 2010/05/21 22:10 UTC
Read the original article Hit count: 147

Filed under:
|
|

So I've created and published a Sinatra app to Heroku without any issues. I've even tested it locally with rackup to make sure it functions fine. There are a series of API calls to various places after a zip code is consumed from the URL, but Heroku just wants to tell me there is an server error.

I've added an error page that tries to give me more description, however, it tells me it can't perform a `count' for #, which I assume means hash. Here's the code that I thin it's trying to execute...

if weather_doc.root.elements["weather"].children.count > 1
  curr_temp = weather_doc.root.elements["weather/current_conditions/temp_f"].attributes["data"]
else
  raise error(404, "Not A Valid Zip Code!")
end

If anyone wants to bang on it, it can be reached at, http://quiet-journey-14.heroku.com/ , but there's not much to be had.

© Stack Overflow or respective owner

Related posts about ruby

Related posts about heroku