Sha256: 519650b7fb9c81a075bb69b05fc7fbdc6fd387215e3e9b86d068d1462eaecd33

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

<%% title <%= class_name %>.human_name %>

<%- for attribute in attributes -%>
<p>
  <strong><%%= <%= class_name %>.human_attribute_name('<%= attribute.name %>') %>:</strong>
  <%%=h @<%= singular_name %>.<%= attribute.name %> %>
</p>
<%- 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 -%>
</p>

Version data entries

2 entries across 2 versions & 1 rubygems

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