search for: dept_and_hospital

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

2012 May 07
1
Complex sorting question, or not?
I have a function that displays all depts and related info from other tables in my Department model, such as: def dept_and_hospital "#{name} (#{floor.building.hospital.name})" end ... which is used in my view, like: <p> <%= f.label :department_id %><br /> <%= collection_select(:device, :department_id, Department.all(), :id, :dept_and_hospital, :prompt => ''Select Depar...