search for: pow_sites

Displaying 1 result from an estimated 1 matches for "pow_sites".

Did you mean: pow_site
2006 May 25
11
belongs_to confusion and some other questions - thanks!
...39;pow_users'' and one is called ''pow_site'' pow_users has a field called site that has the site ID for primary id in the pow_site'' table. the pow_site table setup as the Site class with the following: class Site < ActiveRecord::Base set_table_name ''pow_sites'' end So in my orders class I have the following: class Order < ActiveRecord::Base set_table_name ''pow_users'' belongs_to :site, :foreign_key => ''site'' end When I do for example <%= orders.site.name %> it works fine and shows...