NewbieQ concatenating name in options_from_collection_for_se


#1

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.


#2

Eric S. 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.