Use link_to() instead so you don't have to build the <a> tags yourself. link_to accepts different parameters for content, href, class, etc...