Skip to content

Instantly share code, notes, and snippets.

@batasrki
Created September 26, 2011 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save batasrki/1243777 to your computer and use it in GitHub Desktop.
Save batasrki/1243777 to your computer and use it in GitHub Desktop.
Example search call
class JobsController < ApplicationController
def index
#blah blah
Job.search(gen_dyn_search(params[:search],["jobs.name","jobs.id","jobs.clientpo"]),
params[:page], @cond, @join)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment