Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Searchlogic

3,983 views

Published on

A brief introduction to searchlogic http://github.com/binarylogic/searchlogic/.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Searchlogic

  1. 1. SEARCHLOGIC
  2. 2. ActiveRecord extension that allows you to search using a hash.
  3. 3. Provides an object based interface to constructing hash values.
  4. 4. Pagination, sorting, helpers.
  5. 5. Ben Johnson aka binarylogic http://binarylogic.com http://github.com/binarylogic
  6. 6. Isolation Encapsulation Integration
  7. 7. View helpers let you modify 4 aspects of your results: 1. Order by single column or array of columns: order_by 2. Descend or ascend yr data: order_as 3. Change how many items are on a page: per_page 4. Paginate through the reults: page
  8. 8. Actions come in three different types: link, links, & select order_by_link(:first_name) order_by_link([:first_name, :last_name]) order_by_link({:orders => :total}) order_by_link([{:orders => :total}, :first_name]) Note: Automatically alternates between asc/desc. page_link(10) page_select
  9. 9. Documentation http://searchlogic.rubyforge.org Tutorial http://www.binarylogic.com/2008/9/7/tutorial- pagination-ordering-and-searching-with-searchlogic Live example of the tutorial (with source) http://searchlogic_example.binarylogic.com

×