Your SlideShare is downloading. ×
Searchlogic
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Searchlogic

3,617
views

Published on

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

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

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,617
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. SEARCHLOGIC
  • 2. ActiveRecord extension that allows you to search using a hash.
  • 3. Provides an object based interface to constructing hash values.
  • 4. Pagination, sorting, helpers.
  • 5. Ben Johnson aka binarylogic http://binarylogic.com http://github.com/binarylogic
  • 6. Isolation Encapsulation Integration
  • 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. 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. 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