Skip to content

dandreev/searchgasm_example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Checkout Searchgasm here: github.com/binarylogic/searchgasm

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

Here are the files you want to glance at:

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

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

About

Rails app using the searchgasm library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors