Sha256: 3cff3d327eddbd899bbfb1825d671c0bbfde46523cfd79b02b6913e369f2b9b6

Contents?: true

Size: 725 Bytes

Versions: 11

Compression:

Stored size: 725 Bytes

Contents

<%%- model_class = <%= model_class %> -%>
<h1><%%= model_class.model_name.human %></h1>

<dl>
  <%- columns.each do |column| -%>
  <dt class="bold"><%%= model_class.human_attribute_name(:<%= column.name %>) %>:</dt>
  <dd><%%= @<%= resource_name %>.<%= column.name %> %></dd>
  <%- end -%>
</dl>

<div>
  <%%= link_to 'Back', <%= controller_routing_path %>_path, :class => 'btn'  %>
  <%%= link_to 'Edit', edit_<%= singular_controller_routing_path %>_path(@<%= resource_name %>), :class => 'btn' %>
  <%%= link_to 'Destroy', <%= singular_controller_routing_path %>_path(@<%= resource_name %>),
              :method => 'delete',
              :data => { :confirm => 'Are you sure?' },
              :class => 'btn' %>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kube-rails-0.4.0 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.3.1 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.3.0 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.2.0 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.10 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.9 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.8 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.7 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.6 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.5 lib/generators/kube/themed/templates/show.html.erb
kube-rails-0.0.4 lib/generators/kube/themed/templates/show.html.erb