link_to for an entire table row

Hi,

I need to make an entire table row act as a hyperlink. In HTML, this would look like this:

<tr onclick="location.href='#'"> <td><%=h object.send('property') %><td> ... </tr>

What is the best way of writing this in Rails? I could concatenate the elements together 'manually', but that seems cludgey.

Thanks in advance!

Henry

Ah, no, not really. I am hoping for a Railsy way to have an entire row act as a hyperlink - e.g. by using link_to. But using link_to, I can't see how to avoid passing in a load of messy concatenation for the row.

Cheers,

Henry

Actually - sorry - that's great! Cheers!