Sha256: c0ef5b6c910bcbbed252ce0c729b6a6ff2da624befdbca2b46341031d47bb18f
Contents?: true
Size: 916 Bytes
Versions: 1
Compression:
Stored size: 916 Bytes
Contents
- title <%= class_name %>.human_name(:count => 2) %table %tr <%- for attribute in attributes -%> %th= <%= class_name %>.human_attribute_name('<%= attribute.name %>') <%- end -%> - for <%= singular_name %> in @<%= plural_name %> %tr <%- for attribute in attributes -%> %td= h <%= singular_name %>.<%= attribute.name %> <%- end -%> <%- if action? :show -%> %td= link_to t('show_link'), <%= singular_name %> <%- end -%> <%- if action? :edit -%> %td= link_to t('edit_link'), edit_<%= singular_name %>_path(<%= singular_name %>) <%- end -%> <%- if action? :destroy -%> %td= link_to t('destroy_link'), <%= singular_name %>, :confirm => t('destroy_confirmation'), :method => :delete <%- end -%> <%- if actions? :new -%> %p= link_to t("new_link", :model => <%= class_name %>.human_name), new_<%= singular_name %>_path <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
splendeo-generators-0.2.1 | rails_generators/splendeo_scaffold/templates/views/haml/index.html.haml |