Permalink
Browse files

display id for the primary column

  • Loading branch information...
1 parent 4442645 commit 4a69c1affada254393a20d655e82ccfca4579143 Neeraj Singh committed Sep 23, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/views/admin_data/search/search/_listing.html.erb
View
5 app/views/admin_data/search/search/_listing.html.erb
@@ -12,7 +12,7 @@
<thead>
<tr class='thead'>
<% columns_order(klass).each do |column| %>
- <th class='<%=get_sort_class(column)%>' data-sortby='<%=get_sort_order(column)%>'>
+ <th class='<%=get_sort_class(column)%>' data-sortby='<%=get_sort_order(column)%>'>
<%= get_sort_title_with_url(column, klass) %>
</th>
<% end %>
@@ -25,7 +25,8 @@
<% columns_order(klass).each do |column| %>
<td>
<% if (column == klass.primary_key) %>
- <%= link_to(record.to_param.to_s, admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
+ <%#= link_to(record.to_param.to_s, admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
+ <%= link_to(record.send(column), admin_data_path(:klass => klass.name.underscore, :id => record_id(record))) %>
<% else %>
<%=h get_value_for_column(column_native(klass, column), record) %>
<% end %>

0 comments on commit 4a69c1a

Please sign in to comment.