我正在Sinatra应用程序中使用hash-to-xml。在我搬到ActvieSupport 3.0.0之前,它一直有效。
在3.0.0中,ActiveSupport的用法有区别吗?
例如,这个很好用
gem 'activesupport', '2.3.5'
require 'active_support'
{}.to_xml
和
gem 'activesupport', '3.0.0'
require 'active_support'
{}.to_xml
为:哈希生成:nomethodError:Undefined method`to_xml'