Eric Sloane
2005-Dec-30 07:46 UTC
NewbieQ concatenating name in options_from_collection_for_select
Hi, A real dumb one :~/ How do you concatenate a first_name, last_name as the text method for OFCFS? Damned if I can do it without error. Is it in the original select for the collection? Eric.
Mark Reginald James
2005-Dec-30 10:00 UTC
Re: NewbieQ concatenating name in options_from_collection_for_select
Eric Sloane wrote:> How do you concatenate a first_name, last_name as the text method for > OFCFS? Damned if I can do it without error. Is it in the original select > for the collection?Define an instance method in the model that returns first_name + last_name and use that as the text method in ofcfs. -- We develop, watch us RoR, in numbers too big to ignore.