Vote count:
0
Getting timeout exception when trying to access web page. In controller method or in helper method trying to get content of local url:
require 'open-uri'
data = JSON.load(open('http://ift.tt/1tc5IPg'))
As a result getting timeout error. If i run this code in irb it would work.
How can i correctly get content of local url in rails?
asked 55 secs ago
How to get local url's content from controller method in Rails?
Aucun commentaire:
Enregistrer un commentaire