Lauchix Lauchix - 1 year ago 116
Ruby Question

Clickable Link_to Table in Rails

is there any way to do a clickable td ?

<% @companies.each do |c| %>
<td><%= %></td>...

Now I want to click on the name from the company and see another view(an overview from that company).
Is there a way with link_to or something else?
And btw I want the name from the company shown at this view


Answer Source

Just use link_to:

<td><%= link_to, some_path %></td>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download