Sha256: f5eaabea5f81471040e651c90b719176f491580ee7cbc720597b39e49f35419a

Contents?: true

Size: 714 Bytes

Versions: 5

Compression:

Stored size: 714 Bytes

Contents

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

<div class="well">
  <%- model_attributes.each do |attribute| -%>
  <p>
    <strong><%= attribute.human_name.titleize %>:</strong>
	  <%%= @<%= instance_name %>.<%= attribute.name %> %>
  </p>
  <% end -%>
</div>
<p>
<%- if action? :edit -%>
  <%%= link_to "Edit", <%= item_path :action => :edit, :instance_variable => true %>, :class => 'btn' %> |
<%- end -%>
<%- if action? :destroy -%>
  <%%= link_to "Destroy", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn' %> |
<%- end -%>
<%- if action? :index -%>
  <%%= link_to "View All", <%= items_path %>, :class => 'btn btn-danger' %>
<%- end -%>
</p>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bootstrapped-2.0.4 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
bootstrapped-2.0.3 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
bootstrapped-1.0.1 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
bootstrapped-1.0.0 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
bootstrapped-0.9.0 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb