我正在尝试通过sphinx
运行thinking-sphinx
,一切正常,直到我进入搜索页面
我有以下型号
class Student < ActiveRecord::Base
define_index do
indexes [lastname, firstname]
end
end
并在我的应用程序控制器中包含(经过一些网络搜索)
include REXML
但是当我去学生控制器索引动作时
def index
@students = Student.search params[:search]
end
我收到以下错误
undefined method `default_external' for REXML::Encoding:Module
对正在发生的事情有任何想法吗?
我的环境如下
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.10
- RUBY VERSION: 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/sameera/.rvm/gems/ruby-1.8.7-p357
- RUBY EXECUTABLE: /home/sameera/.rvm/rubies/ruby-1.8.7-p357/bin/ruby
- EXECUTABLE DIRECTORY: /home/sameera/.rvm/gems/ruby-1.8.7-p357/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/sameera/.rvm/gems/ruby-1.8.7-p357
- /home/sameera/.rvm/gems/ruby-1.8.7-p357@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
Linux
thinking-sphinx-1.4.11
导轨 2.3.8
提前致谢