Skip to content

Instantly share code, notes, and snippets.

@pmaojo
Created February 8, 2017 19:04
Show Gist options
  • Save pmaojo/f6c0eef7a5dc544bc7f74ceb2eb630c4 to your computer and use it in GitHub Desktop.
Save pmaojo/f6c0eef7a5dc544bc7f74ceb2eb630c4 to your computer and use it in GitHub Desktop.
Búsqueda sin acentos.
#en el modelo
#...
def self.search(search)
where("companies.name ILIKE ?", "%#{search}%")
end
#...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment