<%= singular_table_name %> <%= singular_table_name %> manager

<%= singular_table_name %>

<%%= link_to '添加'.html_safe, new_<%= singular_table_name %>_path, class: "btn btn-sm green" %> <% attributes.reject(&:password_digest?).each do |attribute| -%> <% end -%> <%%= form_tag <%= index_helper %>_path, method: :get do %> <% attributes.each do |attribute| -%> <% end -%> <%% end %> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <% attributes.reject(&:password_digest?).each do |attribute| -%> <% end -%> <%% end %>
<%= attribute.human_name %>
<%%= <%= attribute.field_type %>_tag :<%= attribute.column_name %>, (params[:<%= attribute.column_name %>].blank? ? '' : params[:<%= attribute.column_name %>]), class: "form-control form-filter input-sm", placeholder: "<%= attribute.column_name %>" %>
<%%= <%= singular_table_name %>.<%= attribute.name %> %><%%= link_to '查看', <%= singular_table_name %> %> <%%= link_to '修改', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %> <%%= link_to '删除', <%= singular_table_name %>, method: :delete, data: { confirm: '你确定要删除么?' } %>
<%%= paginate @<%= plural_table_name %> %>