cblunt / blog-complex_search_filters_with_rails

Code from my tutorial on building complex search filters with ez_where in Rails

This URL has Read+Write access

name age message
file .gitignore Thu Jun 18 05:07:34 -0700 2009 Added ignore data [cblunt]
file MIT-LICENCE Sat Jun 20 01:23:43 -0700 2009 Removed ez_where plugin, updated readme and lic... [Chris Blunt]
file README Sat Jun 20 01:40:53 -0700 2009 Updated installation instructions [cblunt]
file Rakefile Thu Jun 18 04:46:03 -0700 2009 Initial commit with user model and search methods [cblunt]
directory app/ Fri Jun 19 00:32:57 -0700 2009 Added additional search criteria to users index [cblunt]
directory config/ Sat Jun 20 01:44:11 -0700 2009 Updated environment for automatic gem install [cblunt]
directory db/ Thu Jun 18 05:12:57 -0700 2009 Added ez_where [cblunt]
directory doc/ Thu Jun 18 04:46:03 -0700 2009 Initial commit with user model and search methods [cblunt]
directory lib/ Thu Jun 18 04:58:39 -0700 2009 Added populate task [cblunt]
directory public/ Thu Jun 18 04:46:03 -0700 2009 Initial commit with user model and search methods [cblunt]
directory script/ Sat Jun 20 01:32:46 -0700 2009 Removed ez_where plugin, updated readme and lic... [cblunt]
directory test/ Thu Jun 18 04:46:44 -0700 2009 Added empty users controller [cblunt]
README
== Installation

The easiest way to obtain a copy of this code is to use git:

  git clone git://github.com/cblunt/blog-complex_search_filters_with_rails.git

You might need to install some gems:

  rake gems:install

After cloning, install the ez_where (http://opensvn.csie.org/ezra/rails/plugins/dev/ez_where)
plugin into your local copy:

  ruby script/plugin install http://opensvn.csie.org/ezra/rails/plugins/dev/ez_where

Set up a local config/database.yml file, e.g

  # config/database.yml
  development:
    adapter: sqlite3
    database: db/development.sqlite3
    pool: 5
    timeout: 5000

Finally, migrate and populate your database with:

  rake db:migrate
  rake db:populate:users

== More info

For further information, please refer to the blog posts at 
http://chrisblunt.com/blog/2009/05/12/rails-building-complex-search-filters-with-activerecord-and-ez_where/