Sha256: 99c72f2bc0fd22af87392aac37fe3250153f924eaafc1e20d7e17d083668489d
Contents?: true
Size: 566 Bytes
Versions: 1
Compression:
Stored size: 566 Bytes
Contents
- @attributes = ['created_at', 'updated_at'] %table.list{:class => "#{collection.first.class.to_s.downcase.pluralize} collection"} %thead %tr %th= t_attr :content, collection.first.class - @attributes.each do |field| %th= t_attr field, collection.first.class %th= t_attr :user, collection.first.class %tbody - collection.each do |r| %tr %td= link_to truncate(r.content, :length => 20), resource_path(r) - @attributes.each do |field| %td= r.send(field) if r.respond_to?(field) %td= r.user
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bookyt-0.0.1 | app/views/notes/_list.html.haml |