views:

337

answers:

1

I'm new to sunspot and rails 3, so I followed this little tuto: http://github.com/exempla/sunspot

But there is not a lot of details, and the official github of outoftime/sunspot do not speak much about the rails 3 version.

ex: How can I do a rake sunspot:reindex

So if anyone know where I can find some good rdoc for the rails 3 version of sunspot it will be great

A: 

I don't think the rails3 version code is ready, but if you grab the sunspot_rails folder on github.com/isaac/sunspot, copy that to your /lib directory, create a /config/sunspot.yml and a /config/initializers/sunspot.rb with:

require File.join(Rails.root, 'lib', 'sunspot', 'rails', 'adapters', 'active_record')

Also add: require 'sunspot/rails/tasks'

to Rakefile

You should be ok.

Max
MrJack