<% model_name = @model.name.underscore -%> <% modelName = @model.name -%> <% title_fields = @@reserved_title_names.select {|f| @fields.include? f}-%> <% if title_fields.any? -%>

<%%= @<%=model_name %>.<%=title_fields[0]%>%>

<% end -%>
<% @fields.each do |field_name| -%> <% end -%>
<%= modelName %>
<%= field_name %> <%%= @<%= model_name %>.<%= field_name%> %>
<%%= link_to 'List', admin_<%=model_name.pluralize %>_path, :class => "action list" %> | <%%= link_to 'Edit', edit_admin_<%=model_name %>_path(@<%= model_name%>), :class => "action edit" %> | <%%= link_to 'Destroy', admin_<%=model_name%>_path(@<%=model_name%>), :method => :delete, :confirm => "Are you sure?", :class => "action destroy" %>