Sha256: 33c654cf4fdcf2de9e74b9ec4c9db4ba501bc341beefa90e26d7f3773a63f2c6

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

- content_tag_for(:tr, <%= singular_name -%>, :class => cycle(:odd, :even)) do
<% attributes.each do |attribute| -%>
  %td.<%= attribute.name %>= h <%= singular_name %>.try(:<%= attribute.name %>)
<% end -%>
  %td.actions
    = link_to 'Show', <%= singular_name %>
    |
    = link_to 'Edit', edit_<%= singular_name %>_url(<%= singular_name %>)
    |
    = link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grimen-dry_scaffold-0.1.1 generators/dry_scaffold/templates/view__item.html.haml
grimen-dry_scaffold-0.1.2 generators/dry_scaffold/templates/view__item.html.haml
grimen-dry_scaffold-0.2.0 generators/dry_scaffold/templates/view__item.html.haml
grimen-dry_scaffold-0.2.1 generators/dry_scaffold/templates/view__item.html.haml