Skip to content
Browse files

Fixed

  • Loading branch information...
1 parent d0fb106 commit 80c83d8ce7064b175a9838ba1390f0b985cfedf3 Jarred Sumner committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +1 −1 app/controllers/companies_controller.rb
View
2 Gemfile
@@ -22,7 +22,7 @@ end
# SCSS niceities
gem 'bourbon'
# Better JSON Templates
-gem 'rabl'
+gem 'rabl', '0.5.5.g'
# Slightly faster page loads
gem 'pjax-rails'
View
2 app/controllers/companies_controller.rb
@@ -39,7 +39,7 @@ def unsubscribe
end
def search
- @results = Company.where("name like ?", "#{params[:query]}%").limit(8) unless params[:query] == ''
+ @results = Company.where("name ilike ?", "#{params[:query]}%").limit(8) unless params[:query] == ''
respond_to do |format|
format.json
end

0 comments on commit 80c83d8

Please sign in to comment.
Something went wrong with that request. Please try again.