Mapping Column Names in Rails

Hi

We have a legacy database that we want to be able to access through
rails without changing the database. But within rails we would like to
be able to work with easier attributes, for example:

Database Column Rails
CUSTOMER_LASTNAME lastname

Can we accomplish this by any means?

Thanks.

On 11 Jun 2008, at 13:09, tk wrote:

Can we accomplish this by any means?

define your own accessors (that call read/write_attribute or use []/[]=

Fred