Refactor view to not use ruby string