github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

binarylogic / searchlogic_example

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 36
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: searchlogic_example and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails app using the searchlogic library — Read more

  cancel

http://searchlogic_example.binarylogic.com

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Update rails defaults 
binarylogic (author)
Sun Nov 30 11:50:38 -0800 2008
commit  94c12035601032cef9421ba7eb13df8626279316
tree    c9a14721608a7345631b2b9390373a1806d64c3c
parent  0b8f053c4098ec2a6ba570991d7bb91c0dd8ae42
searchlogic_example /
name age
history
message
file .gitignore Fri Sep 12 23:15:20 -0700 2008 Merged croakers branch [Ben Johnson]
file Capfile Sat Sep 06 19:29:13 -0700 2008 Added in searchgasm gem [binarylogic]
file MIT-LICENSE Sat Sep 06 18:49:49 -0700 2008 Completed example [binarylogic]
file README.rdoc Sun Nov 02 22:13:33 -0800 2008 Updated readme [binarylogic]
file Rakefile Fri Sep 05 15:59:35 -0700 2008 Initial commit [binarylogic]
directory app/ Sun Nov 02 21:44:02 -0800 2008 Updated searchlogic [binarylogic]
directory config/ Sun Nov 30 11:50:38 -0800 2008 Update rails defaults [binarylogic]
directory db/ Loading commit data...
directory doc/ Fri Sep 05 15:59:35 -0700 2008 Initial commit [binarylogic]
directory lib/ Mon Oct 06 21:38:23 -0700 2008 Updated searchgasm [binarylogic]
directory public/ Sun Nov 30 11:50:38 -0800 2008 Update rails defaults [binarylogic]
directory script/ Fri Sep 05 15:59:35 -0700 2008 Initial commit [binarylogic]
directory test/ Sat Sep 06 18:49:49 -0700 2008 Completed example [binarylogic]
directory vendor/ Sun Nov 30 11:43:43 -0800 2008 Update searchlogic [binarylogic]
README.rdoc

Searchlogic Example

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

This application live: searchlogic_example.binarylogic.com

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

Searchlogic: github.com/binarylogic/searchlogic

Key files

Here are the files you want to glance at:

  1. All of the controllers and their respective views
  2. config/initializers/searchlogic.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

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server