Sha256: ab6a443204feece7d396f6560b771fac039c98ee69001092b4f4af8061c35f4e

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

%h1.heading
  = "<%= singular_name.humanize %> %s" % @<%= singular_name %>.id
  
- content_tag_for(:dl, @<%= singular_name %>) do
<% attributes.each do |attribute| -%>
  %dt.label= '<%= attribute.name.humanize %>'
  %dd.<%= attribute.name -%>= h @<%= singular_name %>.try(:<%= attribute.name %>)
<% end -%>
  
%p.actions
  = link_to 'Edit', edit_<%= singular_name %>_url(@<%= singular_name %>)
  |
  = link_to 'Index', <%= collection_name %>_url

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grimen-dry_scaffold-0.2.0 generators/dry_scaffold/templates/view_show.html.haml
grimen-dry_scaffold-0.2.1 generators/dry_scaffold/templates/view_show.html.haml