Replaces ruby object with object#name so that view works