Sha256: 3ab70a558b00d0f7e162edcccc4f740f53d62dce6751c8335ce977497ef7bdfb
Contents?: true
Size: 599 Bytes
Versions: 26
Compression:
Stored size: 599 Bytes
Contents
<h3><%= @event.name %> Attendees</h3> <% @event.participants.group_by(&:class).map do |type, participants| %> <h4><%= link_to(pluralize(participants.size, type.to_s), engine_path(type)) %></h4> <ol> <% participants.each do |participant| %> <% name_attr = participant.attribute_names.detect{|m_attr| m_attr =~ /name/} %> <% if participant.respond_to?(:name) %> <li><%= link_to(participant.send(name_attr), engine_path(participant)) %></li> <% elsif name_attr %> <li><%= link_to(participant.name, engine_path(participant)) %></li> <% end %> <% end %> </ol> <% end %>
Version data entries
26 entries across 26 versions & 1 rubygems