search for: add_item_names

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

2006 Jan 19
0
Strange thing with ActiveRecord ??
Hi I am probably missing something, so please help: I have a table called ''zipped_responses'' with an ''item_names'' varchar column. I want to create a comma separated string of ''names''. I have an ''add_item_names'' method which takes a ''name'' and put it at the end of a string with a preceding comma. The model goes like this: class ZippedResponse < ActiveRecord::Base def add_item_names (name) str = read_attribute(:item_names) str << "," unless...