Sha256: c2d163ea06b3316ca7655f63a7fdce6c8daecbbb38728ee3e9bffdc5509071da
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
<div id="<%%= dom_id <%= singular_name %> %>"> <% attributes.reject(&:password_digest?).each do |attribute| -%> <p class="push-sm--bottom"> <strong><%= attribute.human_name %>:</strong> <% if attribute.attachment? -%> <%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %> <% elsif attribute.attachments? -%> <%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %> <div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div> <%% end %> <% else -%> <%%= <%= singular_name %>.<%= attribute.column_name %> %> <% end -%> </p> <% end -%> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sass-zero-1.5.7 | lib/generators/sass_zero/scaffold/templates/partial.html.erb.tt |
sass-zero-1.5.6 | lib/generators/sass_zero/scaffold/templates/partial.html.erb.tt |