Displaying 1 result from an estimated 1 matches for "hotelcategory".
2006 Jun 29
4
Multiple belongs_to
...so something like this, however?
belongs_to :hotel_class,
:foreign_key => ''reviewer_category''
belongs_to :hotel_class,
:foreign_key => ''user_category''
end
I would really really really hate to do something like
HotelCategory.find(:first, :conditions => ...) for every hotel
request. I want ORM :)
What''s the approach to such a situation?
Thank you