This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Michael Hartl (author)
Tue May 06 12:48:20 -0700 2008
commit fa5fb8a6a966eb83862151c4e6861d0b5146e393
tree bbea8eb8d812f259233160d10ebf1462479bba41
parent 7b1035abd858c865525d74cebc935f96ebe8bb40
tree bbea8eb8d812f259233160d10ebf1462479bba41
parent 7b1035abd858c865525d74cebc935f96ebe8bb40
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
LICENSE | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
README | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
bin/ | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
config/ | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
doc/ | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
init.rb | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
install.rb | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
lib/ | Wed Apr 09 17:20:30 -0700 2008 | [Long Nguyen] |
| |
rakefile | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
| |
script/ | Sat Feb 23 16:36:12 -0800 2008 | [Michael Hartl] |
README
= acts_as_ferret This ActiveRecord mixin adds full text search capabilities to any Rails model. It is heavily based on the original acts_as_ferret plugin done by Kasper Weibel and a modified version done by Thomas Lockney, which both can be found on http://ferret.davebalmain.com/trac/wiki/FerretOnRails == Installation === Installation inside your Rails project via script/plugin script/plugin install svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret === System-wide installation with Rubygems <tt>sudo gem install acts_as_ferret</tt> To use acts_as_ferret in your project, add the following line to your project's config/environment.rb: <tt>require 'acts_as_ferret'</tt> Call the aaf_install script inside your project directory to install the sample config file and the drb server start/stop script. == Usage include the following in your model class (specifiying the fields you want to get indexed): <tt>acts_as_ferret :fields => [ :title, :description ]</tt> now you can use ModelClass.find_by_contents(query) to find instances of your model whose indexed fields match a given query. All query terms are required by default, but explicit OR queries are possible. This differs from the ferret default, but imho is the more often needed/expected behaviour (more query terms result in less results). Please see ActsAsFerret::ActMethods#acts_as_ferret for more information. == License Released under the MIT license. == Authors * Kasper Weibel Nielsen-Refs (original author) * Jens Kraemer <jk@jkraemer.net> (current maintainer)




