我之前发布了一个问题 - Issues with DISTINCT when used in conjunction with ORDER,我收到了一个很好的答案,在本地机器上工作。然而,当我将它推送到服务器时,代码没有对结果做任何事情......我已经联系了我们的主机提供商,发现服务器上Ruby的版本是1.8.7 有了这个心灵,是任何人能告诉我,我怎么能在我们将服务器上运行的方式做的 @uniq
我偶然发现了一个我不太明白的错误。 # Ruby 1.8.7
>> [Digest::MD5.hexdigest("http://www.google.com").to_i(16)].pack("N")
RangeError: bignum too big to convert into 'unsigned long'
# Ruby 1.9.3
>> [Digest::MD5.hexdi
我需要猴子修补strftime在Ruby 1.8.7与Rails 2.3在Windows上。在配置\初始化我把这个time_patch.rb文件(code below),但它似乎并没有被拾起: if RUBY_PLATFORM =~ /mingw32|mingw64|mswin32|mswin64/
class Time
alias_method :original_strf
我有一个导轨应用程序,它反过来在其中使用sinatra应用程序。我加入这行路线 mount TestApp::Application => "/test_app"
现在在访问/test_app航线它给 TypeError (no marshal_dump is defined for class Mutex)
如果反对的Ruby 1.9.2 RAN和导轨3.2.1。 Sinatra应用程序