Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (18 sloc) 1.176 kb
afb04fd @binarylogic Completed example
authored
1 = Searchgasm Example
2
3 This is an example of how to use Searchgasm in a rails app. Searchgasm is simple searching, ordering, and pagination all in one plugin.
4
5 Checkout Searchgasm here: http://github.com/binarylogic/searchgasm
7beb16e @binarylogic Updated readme and laoyut
authored
6 Quick tutoiral on how to build this application here: http://www.binarylogic.com/2008/9/7/tutorial-pagination-ordering-and-searching-with-searchgasm
afb04fd @binarylogic Completed example
authored
7
8 === Key files
9
10 Here are the files you want to glance at:
11
41976a8 @binarylogic Updated readme
authored
12 1. All of the controllers and their respective views
13 2. config/initializers/searchgasm.rb
afb04fd @binarylogic Completed example
authored
14
e228f4a Added a db:populate rake task. Added the gem requirements for the db:pop...
Daniel Grünthal authored
15 === Generate Test Data
16
17 First you need to install the Populator and Faker gems. You can do this by either using rails' gems task
18
19 <tt>rake gems:install</tt>
20
21 or by installing the gems manually
22
23 <tt>sudo gem install populator</tt>
24 <tt>sudo gem install faker</tt>
25
26 After you have set up the gems and migrated your database you can generate the data:
27
28 <tt>rake db:populate</tt>
29
30 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)
afb04fd @binarylogic Completed example
authored
31
32
33 Copyright (c) 2008 [Ben Johnson](http://github.com/binarylogic) of [Binary Logic](http://www.binarylogic.com), released under the MIT license
Something went wrong with that request. Please try again.