daanporon/Globalize3-test — comment on commit 7f6ecb60ca564937dfb99fc148820cf3dc8755c3
File: app/controllers/products_controller.rb line 7
By daanporon:

Query to look for a keyword in title and description of a product. You still need to add a table prefix to the fields. It would better be something like this:
@products = Product.with_current_locale.where(:title => @keyword, :description => @keyword) this will be an and statement, don't know how to do an or statement like this :) but it would be much cleaner. When you run something like this it will look for the title field in product in stead of product_translations.