search for: bc_name

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

Did you mean: lc_name
2006 Jan 27
4
find.collect problem.
...ent_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_all(["bug_id = ?", reference]).collect {|b| [ Bugclient.fullname(b.client_id.strip) << &...