Yea, I had this in the partial but there were more lines of ruby code than haml so I made it a helper method.