2009/11/13 David Soronow
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>:>
> 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
> 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!
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>