Displaying 1 result from an estimated 1 matches for "suwholenam".
Did you mean:
suwholename
2006 May 30
0
Single table lookups
...by
@supv = Personnel.find(:all,
:conditions => ["is_supervisor = true"],
:order => ''last_name'')
in my personnel model, I have the following...
def supervisor
if Personnel.find_by_id(self.supervisor_id) == nil then
Personnel.find_by_id(self.id).suwholename
else
Personnel.find_by_id(self.supervisor_id).suwholename
end
end
where ''suwholename'' is an aggregate value of the first, middle, last
names.
The following view code produces a select list of supervisors...
<%= options = [[''Select'', '...