put this into Helper method, please checkout this https://github.com/fbrusatti/fulbo/blob/master/app/helpers/teams_helper.rb#L13-L16 :facepunch: