fix bug in the case of the action in the data browser when linking to relation members
[rails.git] / app / views / browse / _relation_member.rhtml
index 516d9e37ff69cd45d5d66beb56742d95c5d6b6cc..8be58d16f67dfb998c8e6cfd900ce4dafd616f04 100644 (file)
@@ -1,7 +1,7 @@
 <tr>
   <td>
     <%= h(relation_member.member_type.capitalize) %>
-    <%= link_to relation_member.member_id.to_s, :action => relation_member.member_type, :id => relation_member.member_id %>
+    <%= link_to relation_member.member_id.to_s, :action => relation_member.downcase.member_type, :id => relation_member.member_id %>
     <% unless relation_member.member_role.blank? %>
       as
       <%= h(relation_member.member_role) %>