Sha256: 2afa8c2579dfb08eca473ddc5e177bf38b2e00f8c0154e926a76556d2c02dc34

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 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 float-right' %> |
<%- end -%>
<%- if action? :destroy -%>
  <%%= link_to "Destroy", <%= item_path :instance_variable => true %>, :confirm => 'Are you sure?', :method => :delete, :class => 'btn float-right' %> |
<%- end -%>
<%- if action? :index -%>
  <%%= link_to "View All", <%= items_path %>, :class => 'btn float-right' %>
<%- end -%>
</p>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
bootstrapped-0.0.6 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
bootstrapped-0.0.4 lib/generators/bootstrapped/scaffold/templates/views/erb/show.html.erb
entropi-bootstrap-rails-0.1.0 lib/generators/bootstrap/scaffold/templates/views/erb/show.html.erb