Let us assume you are displaying search results using @mysearchlist and 
iterate through them.

<% @mysearchlist.each do |a|  %>
  <%= link_to a.title,  :action => "show", :id => a.id %>
  <%= link_to 'edit', :action => "edit", :id => a.id %>
<% end %>

There you go!.
-- 
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 [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