Sha256: 947f532a2c041e78b923bd0bccb67c4ab2b6f06b285ef43a254a2d8faf54e247
Contents?: true
Size: 757 Bytes
Versions: 1
Compression:
Stored size: 757 Bytes
Contents
<h1><%= singular_table_name.titleize %></h1> <dl> <% attributes.reject(&:password_digest?).each do |attribute| -%> <dt><strong><%= attribute.human_name %>:</strong></dt> <dd><%- if attribute.reference? -%><%%= @<%= singular_table_name %>.<%= attribute.name %>.name %><%- elsif attribute.type == :boolean -%><%%= check_box_tag "<%= singular_table_name %>", @<%= singular_table_name %>.<%= attribute.name %>, @<%= singular_table_name %>.<%= attribute.name %> %><% else -%><%%= @<%= singular_table_name %>.<%= attribute.name %> %><%- end -%></dd> <% end -%> </dl> <%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>), class: "button button-primary" %> <%%= link_to 'Back', <%= index_helper %>_path, class: "button" %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionscaffold-0.3.5 | lib/generators/scaffold_view/templates/skeleton/show.html.erb |