Forum: Ruby on Rails habtm does not work with multiple tables

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.
NoobSaibot (Guest)
on 2006-05-03 15:10
as i've read somewhere. this could be fixed easily. all the rails devs (
or whoever is responsible for the query building and executing part)
have to do is to use the full qualifier in the sql statements (e. g.

to solve that problem in the meanwhile one should define the :join_table
in the habtm association with the full qualifier.
NoobSaibot (Guest)
on 2006-05-03 15:11
The subject was meant to be "habtm does not work with multiple
databases" of course ;o)
NoobSaibot (Guest)
on 2006-05-03 15:57
One thing though. as it seems the join_table doesn't get one of the
needed two id's for some reason, by creation. however, it does work
correct on edit action.

it might be related to the fact that the object -- of which the id is
missing -- is although defined as belongs_to ..., :polymorphic => true.
This topic is locked and can not be replied to.