I use a pg_search gem for searching in my rails app. The main model in my app was:
class Book < ActiveRecord::Base
include PgSearch
pg_search_scope :search_everywhere, against: [:author, :title, :description]
end
It worked perfect with
@books = Book.search_everywhere(params[:search])
in index action of BooksController. Then I added gem 'globalize':
translates :title, :author, :publisher, :description, :fallbacks_for_empty_translations => true
And now searching is not working.
Book.search_everywhere(params[:search])
can't find any field. Anybody used pg_search gem with globalize gem?