例如.
@profiles = Profile.all.map(&:user_firstname)
运行此查询后,我将能够获取users_firstname表格表格(这是正确的).但是我如何在上面的查询中添加users_firstname和users_lastname.
@profiles = Profile.all.map{|p| "#{p.users_firstname} #{p.users_lastname}"}