Sha256: b0338ba44b8b2ab1c6904e57c6ba8ad796772647d078ebdc20d87b35f758fa49

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

<%% title "<%= singular_name.titleize %>" %>

<%- attributes.each do |attribute| -%>
<p>
  <strong><%= attribute.human_name.titleize %>:</strong>
  <%%= @<%= instance_name %>.<%= attribute.name %> %>
</p>
<%- end -%>

<p>
<%- if action? :edit -%>
  <%%= link_to "Edit", <%= item_path :action => :edit, :instance_variable => true %> %> |
<%- end -%>
<%- if action? :destroy -%>
  <%%= link_to "Destroy", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete %> |
<%- end -%>
<%- if action? :index -%>
  <%%= link_to "View All", <%= items_path %> %>
<%- end -%>
</p>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adhoc-generators-0.0.5 lib/generators/adhoc/portfolio/templates/views/show.html.erb