2012-10-05 52 views

回答

0

感謝您的幫助。答案是:

column "Account ID" do |refund| 
    Account.find_by_character_name(refund.character_name).id 
end 
0

您還可以與關係

column ("Car Model") { |user| user.car.attribute_name if user.car }

進行查詢