Can this code be moved into the controller?  Also, FYI the dash in `<%-` doesn't do anything since rails 3 was released.