search for: food_row

Displaying 1 result from an estimated 1 matches for "food_row".

Did you mean: food_rows
2007 Aug 26
0
mysql string
hi, hope u''r all having a good week ahead - does anyone know how to modify / change existing text in a db? with the code @foods = Food.find(:all) food_rows = @foods.collect(&:fruit) food_rows.each |r| r.gsub("really", "") end i get a good end result (if the data was Food.find(1).fruit = "we really need apples" Food.find(2).fruit = "we really need kiwis" Food.find(3).fruit = "we really need oranges&qu...