Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rails app using the searchlogic library

tree: f9b6cfbf99

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db Updated searchgasm October 20, 2008
Octocat-spinner-32 doc Initial commit September 05, 2008
Octocat-spinner-32 lib Updated searchgasm October 07, 2008
Octocat-spinner-32 public
Octocat-spinner-32 script Initial commit September 05, 2008
Octocat-spinner-32 test Completed example September 06, 2008
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore Merged croakers branch September 13, 2008
Octocat-spinner-32 Capfile Added in searchgasm gem September 06, 2008
Octocat-spinner-32 MIT-LICENSE Completed example September 06, 2008
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
README.rdoc

Searchgasm Example

This is an example of how to use Searchgasm in a rails app. Searchgasm is simple searching, ordering, and pagination all in one plugin.

This application live: searchgasm_example.binarylogic.com

Quick tutorial on how to build this application here: www.binarylogic.com/2008/9/7/tutorial-pagination-ordering-and-searching-with-searchgasm

Searchgasm: github.com/binarylogic/searchgasm

Key files

Here are the files you want to glance at:

1. All of the controllers and their respective views 2. config/initializers/searchgasm.rb

Generate Test Data

First you need to install the Populator and Faker gems. You can do this by either using rails' gems task

rake gems:install

or by installing the gems manually

sudo gem install populator

sudo gem install faker

After you have set up the gems and migrated your database you can generate the data:

rake db:populate

The populate task will create 8 user groups with 0 to 150 users each. Each user can have upto 7 orders. (see lib/tasks/populate.rb)

Copyright © 2008 Ben Johnson of Binary Logic, released under the MIT license

Something went wrong with that request. Please try again.