Sha256: d9bb077a9efbc6387e67944794446cdd929799fa7c4c9912801e65b8c4c34b15

Contents?: true

Size: 635 Bytes

Versions: 47

Compression:

Stored size: 635 Bytes

Contents

<span style="color:white"><%%  "<%= singular_name.titleize %>" %></span>

<%- for attribute in model_attributes -%>
<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

47 entries across 29 versions & 1 rubygems

Version Path
thesilverspoon-0.0.13 lib/templates/views/erb/show.html.erb~
thesilverspoon-0.0.13 lib/templates/views/erb/show.html.erb
thesilverspoon-0.0.12 lib/templates/views/erb/show.html.erb~
thesilverspoon-0.0.12 lib/templates/views/erb/show.html.erb
thesilverspoon-0.0.11 lib/templates/views/erb/show.html.erb
thesilverspoon-0.0.11 lib/templates/views/erb/show.html.erb~
thesilverspoon-0.0.10 lib/templates/views/erb/show.html.erb