diff --git a/app/controllers/cnas_controller.rb b/app/controllers/cnas_controller.rb index 690e03e..e46164d 100644 --- a/app/controllers/cnas_controller.rb +++ b/app/controllers/cnas_controller.rb @@ -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