Perish

博客园 首页 联系 订阅 管理

2012年11月20日

摘要: 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)