在Rails之外使用Rails 3的ActiveSupport核心扩展

我正在开发一个使用ActiveSupport核心扩展的问题。

我曾经使用AS 2.3.8,但是一旦我想将它移植到3b4,扩展停止工作,我的testing结果充满了行,如:

undefined method `blank?' for "something":String 

我已经通过gem "activesupport"然后require "active_support"

还有什么我需要打电话来包含这些扩展?

谢谢

现在Rails 3中ActiveSupport更加独立。

如果你想要所有的active_support东西,你现在可以require 'active_support/all'

但是,如果你只想要空白? 方法,你可以尝试require 'active_support/core_ext/string'