Sha256: 1d97dfd3386b5039df9f0eeaf4a372ade6fb059c214f466e5b1c2407f3a0dd6c
Contents?: true
Size: 1015 Bytes
Versions: 3
Compression:
Stored size: 1015 Bytes
Contents
- title "<%= plural_name.titleize %>" <%- if actions? :new -%> %p = link_to "New <%= singular_name.titleize %>", new_<%= singular_name %>_path <%- end -%> %table %tr <%- for attribute in attributes -%> %th <%= attribute.column.human_name %> <%- end -%> %th Actions - for <%= singular_name %> in @<%= plural_name %> - tr_class = cycle 'even', 'odd' %tr{:class => tr_class} <%- for attribute in attributes -%> %td= h <%= singular_name %>.<%= attribute.name %> <%- end -%> %td <%- if action? :show -%> = link_to t("label.show"), <%= singular_name %>, :class => "button positive" <%- end -%> <%- if action? :edit -%> = link_to t("label.edit"), edit_<%= singular_name %>_path(<%= singular_name %>), :class => "button" <%- end -%> <%- if action? :destroy -%> = link_to t("label.destroy"), <%= singular_name %>, :confirm => t("confirm.destroy"), :method => :delete, :class => "button negative" <%- end -%>
Version data entries
3 entries across 3 versions & 1 rubygems