refactor to ruby tag code vs html tags