Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update Sunspot::Rails README with current Rails compatibility
  • Loading branch information
outoftime committed Dec 27, 2010
1 parent fcc7b03 commit 20e7237
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions sunspot_rails/README.rdoc
Expand Up @@ -16,23 +16,23 @@ provides the following features:

Sunspot::Rails has been tested with Rails versions 2.3 and 3.0

== Installation
== Installation in Rails 3

For recent versions of Rails, In your project's <code>config/environment.rb</code>, add the following gem dependencies:
In your <code>Gemfile</code>:

config.gem 'sunspot', :lib => 'sunspot'
config.gem 'sunspot_rails', :lib => 'sunspot/rails'
gem 'sunspot_rails'

== Installation in Rails 2

In your project's <code>config/environment.rb</code>, add the following gem dependencies:

config.gem 'sunspot'
config.gem 'sunspot_rails'

Install the gems with:

rake gems:install

If you are using an older version of Rails that doesn't support plugins-as-gems, install the gems manually and install the plugin:

sudo gem install sunspot sunspot_rails --source=http://gems.github.com

script/plugin install git://github.com/outoftime/sunspot_rails.git

Generate the file <code>config/sunspot.yml</code>:

script/generate sunspot
Expand All @@ -43,6 +43,8 @@ Sunspot::Rails as a gem, add the following line to your project's Rakefile:

require 'sunspot/rails/tasks'

== Using Sunspot::Rails

If you wish to make modifications to the Solr schema, you can create a custom
Solr home in your project directory. In order to do so, create the directory
<code>RAILS_ROOT/solr/conf</code>, and copy in the contents of the Solr gem's
Expand Down

0 comments on commit 20e7237

Please sign in to comment.