Made view helper rails 3.2-style