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!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---