search for: best_friend

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

2008 Mar 04
4
Named collection forward fetching
Hello, I''m getting an "NoMethodError" traversing a named collection. Let me explain I have a named collection called best_friend in a class called user def self.best_friend find :all, :conditions => "designation = ''Best Friend''" end and if i do current_user.best_friend everything works great, I can pull up the user''s name as an example. My user model has a one-to-many relati...