<%= plural_table_name.humanize %>

<% if named_routes? -%>

<%%= link_to 'Add a New <%= human_name.titleize %>', new_<%= singular_table_name %>_url %>

<% else -%>

<%%= link_to 'Add a New <%= human_name.titleize %>', "/<%= plural_name %>/new" %>

<% end -%> <% attributes.each do |attribute| -%> <% end -%> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <% attributes.each do |attribute| -%> <% end -%> <% if named_routes? %> <% else %> <% end %> <%% end %>
<%= attribute.human_name %>
<%%= <%= singular_table_name %>.<%= attribute.name %><%= "?" if attribute.type == :boolean %> %><%%= link_to 'Show', <%= singular_table_name %>_url(<%= singular_table_name %>) %> <%%= link_to 'Edit', edit_<%= singular_table_name %>_url(<%= singular_table_name %>) %> <%%= link_to 'Destroy', <%= singular_table_name %>_url(<%= singular_table_name %>), method: 'delete', data: { confirm: "Do you really want to delete this <%= singular_table_name %>?" } %><%%= link_to 'Show', "/<%= plural_name %>/#{<%= singular_table_name %>.id}" %> <%%= link_to 'Edit', "/<%= plural_name %>/#{<%= singular_table_name %>.id}/edit" %> <%%= link_to 'Destroy', "/<%= plural_name %>/#{<%= singular_table_name %>.id}", method: 'delete', data: { confirm: "Do you really want to delete this <%= singular_table_name %>?" } %>