Sha256: 73c633dfd481dea48fef5cf4ae393f56688a9559c52d2b71f25b7c43a26e6567

Contents?: true

Size: 903 Bytes

Versions: 80

Compression:

Stored size: 903 Bytes

Contents

<p id="notice"><%%= notice %></p>

<% attributes.reject(&:password_digest?).each do |attribute| -%>
<p>
  <strong><%= attribute.human_name %>:</strong>
<% if attribute.attachment? -%>
  <%%= link_to @<%= singular_table_name %>.<%= attribute.column_name %>.filename, @<%= singular_table_name %>.<%= attribute.column_name %> if @<%= singular_table_name %>.<%= attribute.column_name %>.attached? %>
<% elsif attribute.attachments? -%>
  <%% @<%= singular_table_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
    <div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
  <%% end %>
<% else -%>
  <%%= @<%= singular_table_name %>.<%= attribute.column_name %> %>
<% end -%>
</p>

<% end -%>
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>) %> |
<%%= link_to 'Back', <%= index_helper %>_path %>

Version data entries

80 entries across 78 versions & 8 rubygems

Version Path
railties-6.0.4.8 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.5 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.7 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.7 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.6 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.6 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.5 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.5 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.4 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.4 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.3 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.3 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.2 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.2 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/railties-6.1.4.1/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4.1 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.0.4.1 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/railties-6.1.4/lib/rails/generators/erb/scaffold/templates/show.html.erb.tt
railties-6.1.4 lib/rails/generators/erb/scaffold/templates/show.html.erb.tt