Sha256: 6b8337d46f4552b7f1ef4b791f6bf599a87ba7cee23dd93b8159810c07f4cd51
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
<%% title "<%= plural_name.titleize %>" %> <table> <tr> <%- for attribute in attributes -%> <th><%= attribute.column.human_name.titleize %></th> <%- end -%> </tr> <%% for <%= singular_name %> in @<%= plural_name %> %> <tr> <%- for attribute in attributes -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <%- end -%> <%- if action? :show -%> <td width="31"><%%= link_to "Show", [:admin, <%= singular_name %>] %></td> <%- end -%> <%- if action? :edit -%> <td width="21"><%%= link_to "Edit", edit_admin_<%= singular_name %>_path(<%= singular_name %>) %></td> <%- end -%> <%- if action? :destroy -%> <td width="37"><%%= link_to "Delete", [:admin, <%= singular_name %>], :confirm => 'Are you sure?', :method => :delete %></td> <%- end -%> </tr> <%% end %> </table> <%- if action? :new -%> <br /> <p><%%= link_to "Add <%= singular_name.titleize %>", new_admin_<%= singular_name %>_path %></p> <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ghart-nifty-generators-0.3.0.1 | rails_generators/nifty_admin_scaffold/templates/views/erb/index.html.erb |