TR couldn't be wrapped by A tag. The second one (.remove-link) is nesessary for removing row by ajax, without reloading the entire page. Dunno if rails provides some shortcuts for this.