Simple search on a Globalize3 table in Rails
I am looking to implement a simple search function while using the globalize3 gem for Ruby on Rails. Since the translations of the model are stored in a separate table, the code below doesn't work as there is no longer a :name field in the products table. How can I adjust the code below to make the search function correctly? products_controller.rb @products = Product.search(params[:search]).all index.html.erb <%= form_tag products_path, method: :get do %> <%= text_field_tag :search, params[:search] %> <%= submit_tag "Search", name: nil %> <% end %> model class Product < ActiveRecord::Base