Link_to dynamic id problem

Hi.

This works:
<%= link_to “show”, {:action => “show”, :id => 1 }, {:title =>
@table.name } %>

This does not:
<%= link_to “show”, {:action => “show”, :id => @table.id }, {:title =>
@table.name } %>

This is all wrapped in a list of names and I’d like to enable the user
to click on the name and go to the “show” page of the model.

Any ideas on how to make the id dynamic?

Thanks!

This works when I changed the table reference. There were 2 loops and
as soon as I grabbed the inner loop all was good.

<%= link_to “show”, {:action => “show”, :id => @table.id }, {:title =>
@table.name } %>