【发布时间】:2011-08-11 16:44:31
【问题描述】:
我有一个带有searchable 块的模型,如下所示:
class Contact < ActiveRecord::Base
searchable do
text :contact_name, :company_name, :contact_email
end
end
在控制器的index 操作中,我正在调用Contact.new,这会在页面上给我一条错误消息,该页面当前正在我们的暂存服务器上运行:
#<0xce0bf80>0xce0bf80>
>>
标签: ruby-on-rails-3 solr sunspot sunspot-rails sunspot-solr