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:

<%=h object.send('property') %> ...

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

At a guess, that is what you want.

On Dec 10, 2007 11:43 AM, Henry Collingridge
[email protected]
wrote:

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


Ryan B.
http://www.frozenplague.net

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!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs