Sha256: 7732e5a02dd33f46a344871163b41e147cd1697e857e2b264164ed99ece94985
Contents?: true
Size: 540 Bytes
Versions: 10
Compression:
Stored size: 540 Bytes
Contents
<% content_for :title, "#{klass_name}" %> <table border="0" cellpadding="4" class="table table-hover table-bordered"> <thead> <tr> <th></th> <%= raw readable_attributes.map{|a| "<th>#{a.to_s.titleize}</th>\n" }.join %> </tr> </thead> <tbody> <%- @records.each do |record| %> <tr> <td> <%= link_to "Edit", [:edit, record], :class => "btn btn-mini" %> </td> <%- readable_attributes.map(&:to_sym).each do |attribute| %> <td><%= record[attribute] %></td> <% end -%> </tr> <% end -%> </tbody> </table>
Version data entries
10 entries across 10 versions & 1 rubygems