摘要:
Gemfile gem 'sunspot_rails'gem 'sunspot_solr'然后执行 bundle之后就是rails g sunspot:solr:install生成一个config/sunspot.yml文件,不需要管理这个生成文件然后执行bundle exec rake sunspot:solr:startclass Post < ActiveRecord::Base searchable do text :title, :body text :comments do comments.map { |comment| comment.bo 阅读全文
posted @ 2012-11-20 16:54
---小青年---
阅读(392)
评论(0)
推荐(0)
浙公网安备 33010602011771号