I think jvnill comment says it all:
I am not sure if this is possible. However, you can add the account name to the records of the returned order.
orders = Order.joins(:account).select('orders.id, orders.account_id, accounts.name AS account_name')
then just use account_name, e.g. orders.first.account_name
source
share