在混合平台开发组中升级到 rails 3,并使用 Bundler for gems。我在 Windows 上。当我运行 Bundle Install 时,它成功完成,但不会安装 hpricot。hpricot线是:
gem "hpricot", "0.8.3", :platform => :mswin
也试过
gem "hpricot", :platform => :mswin
两者都很好,但是当我尝试做一个“捆绑秀 hpricot”时,我得到:
Could not find gem 'hpricot' in the current bundle.
如果我运行一个rails控制台并尝试“需要'hpricot'”,我会得到:
LoadError: no such file to load -- hpricot
我也手动安装了 hpricot,但仍然出现上述错误。这在移动到 rails 3 之前运行良好。