Permalink
Browse files

Fixing view to use Thinking Sphinx

  • Loading branch information...
pat committed Sep 29, 2008
1 parent 15eb593 commit 2ad0111fe507e63c01059cb7e5d01734dc2ff062
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/controllers/contacts_controller.rb
@@ -2,7 +2,10 @@ class ContactsController < ApplicationController
# GET /contacts
# GET /contacts.xml
def index
- @contacts = Contact.paginate :page => (params[:page] || 1)
+ @contacts = Contact.search(
+ (params[:search] || ""),
+ :page => (params[:page] || 1)
+ )
respond_to do |format|
format.html # index.html.erb

0 comments on commit 2ad0111

Please sign in to comment.