search for: user_ex

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

Did you mean: user_ext
2006 Mar 23
0
optional has_one association
Hi! I have a has_one association which is used for extending an entity, like: class User < ActiveRecord::Base has_one :user_ex #name, email end class UserEx < ... #country, city, street... end The UserEx entity is optional (there are users without extended info). My problem is: if u is a User object which has no user_ex extension, activerecord always tries to fetch the UserEx object whenever I write u.user_ex (it...