Never mind. It just dawned on me... For others who may wonder:

<tr onmouseover="this.style.cursor='pointer';"
onclick="location.href='<%= url_for([...@user, contact]) %>';"
style="cursor: pointer;">

Note the url_for call (in this case on a nested resource)

On Jan 23, 4:57 pm, lunaclaire <[email protected]> wrote:
> I'm trying to implement a design handed to me where an entire row of a
> table is a link to view details about the obj shown in that row.
>
> The html handed to me looks like this:
>
> <tr onmouseover="this.style.cursor='pointer';"
> onclick="location.href='new_page.html';" style="cursor: pointer;">
>    <td class="checkbox"><input type="checkbox" name="option1"></td>
>    <td class="name">Person's Name</td>
>    <td class="details"><b>Home:</b>Person's Email</td>
> </tr>
>
> note the 'onclick' in the <tr>
>
> Is there a Rails Way to do this?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to