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!