Search

What about this:
in the controller:
 @neighborhoods = Neighborhood.search(params[:search])
in the model:
def self.search(search)
  if search
    where('name ILIKE ?', "%#{search}%"])
  else
    all
  end
end
AND
can we chain the pagination to the query, so it's actually:
 @neighborhoods = Neighborhood.search(params[:search]).page(params[:page]).per(6)