2014-03-14 76 views
0

我在this page未知錯誤值誤差

遇到與此相關的Ruby腳本錯誤我收到錯誤

'<main>': bad value for range <ArgumentError>

我不確定我是否可能有依賴或不足如果這裏還有其他值得注意的錯誤。

唯一的其他有用的信息,我可以提供的是,我是Windows用戶,我已經安裝了要求,相關性和Ruby寶石的名單安裝

bigdecimal (1.1.0) domain_name (0.5.16) faraday (0.8.9) faraday_middleware (0.9.0) http-cookie (1.0.2) io-console (0.3) json (1.5.5) mechanize (2.7.3) mime-types (2.1) mini_portile (0.5.2) minitest (2.5.1) multipart-post (2.0.0, 1.2.0) net-http-digest_auth (1.4) net-http-persistent (2.9.4) nokogiri (1.6.1 x86-mingw32) ntlm-http (0.1.1) oauth (0.4.7) rake (0.9.2.2) rdoc (3.9.5) simple_oauth (0.2.0) tumblr_client (0.8.2) unf (0.1.3) unf_ext (0.0.6 x86-mingw32) webrobots (0.1.1)

回答

0

嘗試做

liked_count = likes["liked_count"].to_i 
線路上無 26