Return to Snippet

Revision: 2866
at April 30, 2007 00:59 by winson


Initial Code
  def search
    # Book.rebuild_index
    @page_title = 'Search books'
    return unless request.post?
    @books = Book.find_by_contents(params[:q]) if params[:q]
    # flash.now[:notice] = 'No results.' unless @books.size > 0
  end

Initial URL

                                

Initial Description

                                

Initial Title
My search book with acts as ferret

Initial Tags
textmate, search

Initial Language
Rails