<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -36,6 +36,7 @@ class MeetingsController &lt; ApplicationController
 
   # PUT /meetings/1
   def update
+    params[:meeting][:attendee_ids] ||= []
     @meeting = Meeting.find(params[:id])
     if @meeting.update_attributes(params[:meeting])
       flash[:notice] = 'Meeting was successfully updated.'</diff>
      <filename>app/controllers/meetings_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@ class Meeting &lt; ActiveRecord::Base
   named_scope :past, :conditions =&gt; ['date &lt; ?', Date.today], :order =&gt; 'date DESC'
   
   has_many    :attendances,  :dependent =&gt; :destroy
-  has_many    :attendees,    :through =&gt; :attendances, :source =&gt; :person
+  has_many    :attendees,    :through =&gt; :attendances, :order =&gt; :name, :source =&gt; :person
 
   validates_presence_of :date
   validates_presence_of :venue</diff>
      <filename>app/models/meeting.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,5 +22,11 @@
     = f.label :venue
     %br
     = f.text_field :venue
+  %h4 Attendees
+  %ul{ :style =&gt; 'list-style:none; padding-left: 0'}
+    - for person in Person.all
+      %li
+        = check_box_tag &quot;meeting[attendee_ids][]&quot;, person.id, @meeting.attendees.include?(person)
+        = person.name
   %p
     = f.submit &quot;Save&quot;
\ No newline at end of file</diff>
      <filename>app/views/meetings/_form.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,14 @@
   %strong Venue:
   =h @meeting.venue
 
+%p
+  %strong Attendees:
+%ul{ :style =&gt; 'list-style:none; padding-left: 0' }
+  - for person in @meeting.attendees
+    %li.peep
+      = image_tag(person.gravatar_url(:size =&gt; 32), :alt =&gt; person.name, :valign =&gt; 'middle')
+      = person.name
+      
 = link_to 'Edit', edit_meeting_path(@meeting)
 |
 = link_to 'Back', meetings_path</diff>
      <filename>app/views/meetings/show.html.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>cad924776c13ab9fa6d744a441b088969ffaee6f</id>
    </parent>
  </parents>
  <author>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </author>
  <url>http://github.com/artpop/crc_site/commit/d09b1b63fb9c1eefd41963b0436772d9dde61ab4</url>
  <id>d09b1b63fb9c1eefd41963b0436772d9dde61ab4</id>
  <committed-date>2008-10-22T05:05:24-07:00</committed-date>
  <authored-date>2008-10-22T05:05:24-07:00</authored-date>
  <message>added attendees on show and form views along with gravatars</message>
  <tree>af27012116f1e54c3711ce0716d7472e31f67304</tree>
  <committer>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </committer>
</commit>
