Sha256: df4ced37646724da09a368c2d2575c7f563b2331ad34f6a682eaec3a2f0f058f

Contents?: true

Size: 611 Bytes

Versions: 2

Compression:

Stored size: 611 Bytes

Contents

- title <%= class_name %>.human_name

<%- for attribute in attributes -%>
%p
  %strong
    = <%= class_name %>.human_attribute_name('<%= attribute.name %>')+':'
  =h @<%= singular_name %>.<%= attribute.name %>
<%- end -%>

%p
  <%- if action? :edit -%>
  = link_to t('edit_link'), edit_<%= singular_name %>_path(@<%= singular_name %>)
  |
  <%- end -%>
  <%- if action? :destroy -%>
  = link_to t('destroy_link'), @<%= singular_name %>, :confirm => t('destroy_confirmation'), :method => :delete
  |
  <%- end -%>
  <%- if action? :index -%>
  = link_to t('view_all_link'), <%= plural_name %>_path
  <%- end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
splendeo-generators-0.2.1 rails_generators/splendeo_scaffold/templates/views/haml/show.html.haml
splendeo-generators-0.2.0 rails_generators/splendeo_scaffold/templates/views/haml/show.html.haml