<%%= 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 -%><%= attribute.human_name %> | <% end -%>||||||
---|---|---|---|---|---|---|
<%%= <%= singular_table_name %>.<%= attribute.name %><%= "?" if attribute.type == :boolean %> %> | <% end -%> <% if named_routes? %><%%= 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 %>?" } %> | <% else %><%%= 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 %>?" } %> | <% end %>