Displaying 1 result from an estimated 1 matches for "bc_ref".
Did you mean:
  badref
  
2006 Jan 27
4
find.collect problem.
...bug_id = ?", reference]).collect {|b| 
[ b.client_id.strip << " - " << b.client_ref.strip ]}
end
This works fine. However this returns the reference to the client. I 
want the full name using this function.
class Bugclient < ActiveRecord::Base
  set_primary_key "bc_ref"
  def self.fullname( reference )
    result = Bugclient.find(reference.strip)
    result.bc_name
  end
end
However I am not sure how to combine the two so that the client full 
name is collected instead of the reference.
I have tried the simpleton approach of
 @bugclientrefs = self.find_a...