Forum: Ruby on Rails Need workaround for belongs_to :finder_sql

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
443a308e12ba2a3082fb6170ca94c2ef?d=identicon&s=25 Ed Wg (ewildgoose)
on 2007-04-25 17:46
(Received via mailing list)

I am building an interface around my postfix config files.  I have a bit
of a mix of primary keys with the "Mailboxes" table having a rails-esqe
Id field for each user.  However, my "Aliases" table has just From/To
email addresses.

I would like to be able to add a couple of "belongs_to" attributes to
the Aliases model object which will give me a user object for both the
 From or To email addresses.  Any suggestions on how to do this (or even
if it's worth bothering really... Just add finer methods...?)


Ed W
This topic is locked and can not be replied to.