Here you can also just do link_to group.name, group 

(rails magic)