can i translate what name_ID from a belongs_to relations

basically my

@profile = Profiles.get_details

where get_details returns hash of all columns for the profile from the Profiles table

Out of interest - why are you doing this instead of using the fields provided by ActiveRecord? The idea behind AR is that you can do Profiles.find(:all) and then for each profile use profile.name or even traverse relationships like profile.town.name.

Cheers, Max

You can achieve this as well by passing a :select parameter to the find method of AR:

Doctor.find(:all, :select=>"doctors.name, addresses.city, addresses.state", :include=>'address')

Doesn't break your domain model this way.

Cheers, Max