Sha256: 9672d616a8803c2f1ce0f69eef03c817f34e9c2264375470d00e52faeadb09b4

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

<h1><%%=title t('.title') %></h1>
<p>
  <strong><%%=t '<%= plural_name %>.fields.id' %>:</strong>
  <%%=h @<%= singular_name %>.id %>
</p>
<%- attributes.each do |attribute| -%>
<p>
  <strong><%%=t '<%= plural_name %>.fields.<%= attribute.name %>' %>:</strong>
  <%%=h @<%= singular_name %>.<%= attribute.name %> %>
</p>
<%- end -%> 
<p>
  <strong><%%=t '<%= plural_name %>.fields.created_at' %>:</strong>
  <%%=l @<%= singular_name %>.created_at, :format => :long %>
</p>
<p>
  <strong><%%=t '<%= plural_name %>.fields.updated_at' %>:</strong>
  <%%=l @<%= singular_name %>.updated_at, :format => :long %>
</p>
<p>
<%- if is_action_included? :edit -%>
  <%%= link_to t('<%= plural_name %>.edit.title'), edit_<%= singular_name %>_path(@<%= singular_name %>) %> |
<%- end -%>
<%- if is_action_included? :destroy -%>
  <%%= link_to t('<%= plural_name %>.destroy.title'), @<%= singular_name %>, :confirm => 'Are you sure?', :method => :delete %><%- end -%> |
<%- if is_action_included? :index -%>
  <%%= link_to t('<%= plural_name %>.index.title'), <%= plural_name %>_path %>
<%- end -%>
</p>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jfs-generators-0.2.0 rails_generators/jfs_scaffold/templates/views/show.html.erb