The search shows something like: SELECT birds.* FROM birds INNER JOIN bird_sizes ON bird_sizes.id = birds.bird_size_id INNER JOIN bird_shapes ON bird_shapes.id = birds.bird_shape_id INNER JOIN bird_types ON bird_types.id = birds.bird_type_id INNER JOIN bird_families ON bird_families.id = birds.bird_family_id WHERE ((birds.common_name LIKE '%["winter"]%') OR (birds.latin_name LIKE '%["winter"]%') OR (bird_families.name LIKE '%["winter"]%') OR (bird_types.description LIKE '%["winter"]%') OR (bird_shapes.name LIKE '%["winter"]%') OR (bird_sizes.size LIKE '%["winter"]%')) ORDER BY birds.id ASC LIMIT 0, 25
The search shows something like: SELECT birds.* FROM birds INNER JOIN bird_sizes ON bird_sizes.id = birds.bird_size_id INNER JOIN bird_shapes ON bird_shapes.id = birds.bird_shape_id INNER JOIN bird_types ON bird_types.id = birds.bird_type_id INNER JOIN bird_families ON bird_families.id = birds.bird_family_id WHERE ((birds.common_name LIKE '%["winter"]%') OR (birds.latin_name LIKE '%["winter"]%') OR (bird_families.name LIKE '%["winter"]%') OR (bird_types.description LIKE '%["winter"]%') OR (bird_shapes.name LIKE '%["winter"]%') OR (bird_sizes.size LIKE '%["winter"]%')) ORDER BY birds.id ASC LIMIT 0, 25
in ruby 1.9.1 (note the %[")
works perfectly with 1.8.7