[Rails] Dealing with attributes in join tables

Gavin Sinclair gsinclair at soyabean.com.au
Wed Nov 24 10:37:10 GMT 2004


On Wednesday, November 24, 2004, 5:50:06 PM, Jeremy wrote:

> Gavin Sinclair wrote:
> | Does anyone have any insights?

> Active Record doesn't pull the join table column types (yet) so it won't
> typecast these attributes for you.  Please post a trac ticket:
> http://dev.rubyonrails.org/trac.cgi/newticket

I'm not sure what you're getting at.  It sounds like you're answering
my other question (the "MySQL adapter returns integers as strings?"
thread).  I guess if you or DHH confirm that, I'll post a ticket.

Anyway, my question in this thread relates to adding methods to an
ActiveRecord-based model class.  It's easy for straightforward
table-mapping classes.  But for the results of a join, it's not so
clear to me.

Thanks,
Gavin



More information about the Rails mailing list