ActiveRecord Typecast

Hello,

It appears that ActiveRecord is not performing any typcasting of model
attributes in my rails app. So, in my app all attributes are loaded
from the database as strings (e.g. integers, floats, dates, etc are all
loaded as strings).
Is this correct behaviour for ActiveRecord? The ActiveRecord
documentation seems to indicate that AR typecasts model attributes
according to the database column Data Type. Am I missing a
configuration setting? Can you think of any reason why this would
happen?

Thanks for your help!

2009/11/13 David S. [email protected]:

Hello,

It appears that ActiveRecord is not performing any typcasting of model
attributes in my rails app. Â So, in my app all attributes are loaded
from the database as strings (e.g. integers, floats, dates, etc are all
loaded as strings).

They should be loaded as the appropriate types, can you give an
example of your code showing the problem you are having?

Colin