Table associated problem using belongs_to

Then I run Package.find(1, :include => :user) in Rails console. From
the
log, I can see the sql is:
Package Load Including Associations (0.000309) SELECT
`packages`.`id` AS t0_r0, `packages`.`name` AS t0_r1,
`packages`.`user_name` AS t0_r2, `users`.`id` AS t1_r0, `users`.`name`
AS t1_r1, `users`.`full_name` AS t1_r2 FROM `packages` LEFT OUTER JOIN
`users` ON `users`.id = `packages`.user_name WHERE (`packages`.`id`
= 1)

But I cannot find the parameters for belongs_to to set
associated_foreign_key like has_and_belongs_to_many. I don't know
how to
deal with it. Please help. Thanks.

There is no such option for belongs_to. In the rails world your
packages table would have a user_id column.

Fred

Nothing obvious springs to mind.

Fred