I know little about ruby, my following implementation works, but I really feel the approach curbsome
@surfaces = []
Surface.all.each do |surface|
@surfaces << surface.name
end
the purpose is to extract name value of each surface objects and form them into an array, can anyone tell me the smart way to do this? thanks
map): code.google.com/p/tokland/wiki/…