Skip to content

Instantly share code, notes, and snippets.

@chebyte
Created March 29, 2009 01:26
Show Gist options
  • Save chebyte/87258 to your computer and use it in GitHub Desktop.
Save chebyte/87258 to your computer and use it in GitHub Desktop.
@articles = Article.search params[:search]
#Variantes que podemos utilizar
# :include => :author
# :conditions => { :created_at => 1.week.ago.to_i..Time.now.to_i }
# :with => [ "publication <= ? ", TIme.now ]
# :order => :name
# :field_weights => { :name => 20, :content => 10, :author_name => 5 }
# :match_mode => :boolean
#thinking sphinx utiliza will_paginate si esta diposnible :)
# :page => 1, :per_page => 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment