Habtm does not work with multiple tables


#1

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.
DB_Name.Tablename.Row).

to solve that problem in the meanwhile one should define the :join_table
in the habtm association with the full qualifier.


#2

The subject was meant to be “habtm does not work with multiple
databases” of course ;o)


#3

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.