lib/templates/haml/scaffold/show.html.haml
.page-header
= link_to <%= index_helper %>_path, class: 'btn btn-default' do
%span.glyphicon.glyphicon-list-alt
Back
= link_to edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: 'btn btn-primary' do
%span.glyphicon.glyphicon-pencil
Edit
%h1 Show <%= singular_table_name %>
%dl.dl-horizontal
<%- for attribute in attributes -%>
%dt <%= attribute.human_name %>:
%dd= @<%= singular_table_name %>.<%= attribute.name %>
<%- end -%>