Skip to content

Instantly share code, notes, and snippets.

@Irio
Created July 16, 2012 19:24
Show Gist options
  • Save Irio/3124502 to your computer and use it in GitHub Desktop.
Save Irio/3124502 to your computer and use it in GitHub Desktop.
bootstrap scaffold | show.html.erb
<%- model_class = @rental.class -%>
<h1><%=t '.title', :default => model_class.model_name.human %></h1>
<dl class="dl-horizontal">
<dt><strong><%= model_class.human_attribute_name(:start_date) %>:</strong></dt>
<dd><%= @rental.start_date %></dd>
<dt><strong><%= model_class.human_attribute_name(:end_date) %>:</strong></dt>
<dd><%= @rental.end_date %></dd>
<dt><strong><%= model_class.human_attribute_name(:ocupation) %>:</strong></dt>
<dd><%= @rental.ocupation %></dd>
<dt><strong><%= model_class.human_attribute_name(:user_id) %>:</strong></dt>
<dd><%= @rental.user_id %></dd>
<dt><strong><%= model_class.human_attribute_name(:property_id) %>:</strong></dt>
<dd><%= @rental.property_id %></dd>
</dl>
<div class="form-actions">
<%= link_to t('.back', :default => t("helpers.links.back")),
admin_property_rental_path, :class => 'btn' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
edit_admin_property_rental_path(@rental), :class => 'btn' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
admin_property_rental_path(@rental),
:method => 'delete',
:confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
:class => 'btn btn-danger' %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment