make query ILIKE instead of LIKE for case insensitive searches like google or Google
This commit is contained in:
parent
5b1cb76e29
commit
5b859c6986
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class CnasController < ApplicationController
|
|||
end
|
||||
|
||||
def show_for_orgname
|
||||
@cnas = Cna.where('organization_name LIKE ?', "%#{params[:organization_name]}%")
|
||||
@cnas = Cna.where('organization_name ILIKE ?', "%#{params[:organization_name]}%")
|
||||
render json: @cnas.to_json
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue