README.markdown in soulmate-0.0.5 vs README.markdown in soulmate-0.0.6

- old
+ new

@@ -93,10 +93,26 @@ } } The `/search` method supports multiple `types` as well as an optional `limit`. For example: `http://localhost:5678/search?types[]=event&types[]=venue&types[]=performer&limit=3&term=yank`. You can also add the `callback` parameter to enable JSONP output. +### Mounting soulmate into a rails app + +If you are integrating Soulmate into a rails app, an alternative to launching a separate 'soulmate-web' server is to mount the sinatra app inside of rails. + +Add this to routes.rb: + + mount Soulmate::Server, :at => "/sm" + +Add this to gemfile: + + gem 'rack-contrib' + gem 'soulmate', :require => 'soulmate/server' + +Then you can query soulmate at the /sm url, for example: http://localhost:3000/sm/search?types[]=venues&limit=6&term=kitten + + Contributing to soulmate ------------------------ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it @@ -106,8 +122,7 @@ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. Copyright --------- -Copyright (c) 2011 Eric Waller. See LICENSE.txt for -further details. +Copyright (c) 2011 Eric Waller. See LICENSE.txt for further details.