<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20080826205242_lotsa_dater.rb</filename>
    </added>
    <added>
      <filename>public/address_book.swf</filename>
    </added>
    <added>
      <filename>public/framework_3.1.0.2710.swf</filename>
    </added>
    <added>
      <filename>public/framework_3.1.0.2710.swz</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ class ContactsController &lt; ApplicationController
   # GET /contacts
   # GET /contacts.xml
   def index
-    @contacts = Contact.find(:all)
+    @contacts = Contact.find(:all).sort {|a, b| a.first_name &lt;=&gt; b.first_name }
 
     respond_to do |format|
       format.html # index.html.erb
@@ -60,7 +60,7 @@ class ContactsController &lt; ApplicationController
   # PUT /contacts/1.xml
   def update
     @contact = Contact.find(params[:id])
-    puts &quot;WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW - #{params.inspect}&quot;
+
     respond_to do |format|
       if @contact.update_attributes(params[:contact])
         flash[:notice] = 'Contact was successfully updated.'</diff>
      <filename>app/controllers/contacts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ class RubyamfController &lt; ActionController::Base
   include RubyAMF::App
   
   def gateway      
+    t = Time.now
     RequestStore.rails_authentication = nil #clear auth hash
     RequestStore.rails_request = request
     RequestStore.rails_response = response
@@ -24,7 +25,9 @@ class RubyamfController &lt; ActionController::Base
     headers['Content-Type'] ||= headers['type']
             
     #render the AMF
+    puts &quot; ----------------- #{Time.now - t}&quot;
     send_data(amf_response, {:type =&gt; headers['Content-Type'], :disposition =&gt; 'inline'})
+    puts &quot; ----------------- #{Time.now - t}&quot;
   rescue Exception =&gt; e #only errors in this scope will ever be rescued here, see BatchFiler
     STDOUT.puts e.to_s
     STDOUT.puts e.backtrace</diff>
      <filename>app/controllers/rubyamf_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,8 +25,13 @@
 			}
 			
 			private function load():void {
+				this.contactList.enabled = false;
+				this.contactList.dataProvider = new ArrayCollection();
+				this.contactDetails.selectedChild = noContactDetails;
+				
 				RubyAMF.call('ContactsController', 'index', {}, function(e:ResultEvent):void {
 					contacts = new ArrayCollection(e.result as Array);
+					contactList.enabled = true;
 				}, null);
 			}
 			
@@ -64,7 +69,7 @@
 			&lt;mx:Canvas width=&quot;70%&quot; height=&quot;100%&quot; borderStyle=&quot;inset&quot;&gt;
 				&lt;mx:ViewStack id=&quot;contactDetails&quot; width=&quot;453&quot; height=&quot;267&quot;&gt;
 					&lt;mx:Canvas id=&quot;noContactDetails&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
-						&lt;mx:Label text=&quot;No Card Selected&quot; fontWeight=&quot;bold&quot; fontSize=&quot;14&quot; height=&quot;26&quot; textAlign=&quot;center&quot; left=&quot;0&quot; right=&quot;0&quot; top=&quot;106&quot;/&gt;
+						&lt;mx:Label text=&quot;No Contact Selected&quot; fontWeight=&quot;bold&quot; fontSize=&quot;14&quot; height=&quot;26&quot; textAlign=&quot;center&quot; left=&quot;0&quot; right=&quot;0&quot; top=&quot;106&quot;/&gt;
 					&lt;/mx:Canvas&gt;
 					&lt;mx:Canvas id=&quot;viewContactDetails&quot; width=&quot;100%&quot; height=&quot;100%&quot;&gt;
 						&lt;mx:Label y=&quot;10&quot; text=&quot;{contactList.selectedItem.fullName}&quot; fontWeight=&quot;bold&quot; fontSize=&quot;16&quot; x=&quot;79&quot;/&gt;
@@ -83,7 +88,7 @@
 		&lt;mx:Button label=&quot;+&quot; width=&quot;37&quot; left=&quot;10&quot; id=&quot;addPlus&quot; top=&quot;289&quot; click=&quot;addContact()&quot; fontSize=&quot;12&quot;/&gt;
 	&lt;/mx:Panel&gt;
 	&lt;mx:ApplicationControlBar width=&quot;704&quot; horizontalCenter=&quot;0&quot; top=&quot;10&quot;&gt;
-		&lt;mx:Button label=&quot;RubyAMF&quot; click=&quot;load()&quot;/&gt;
+		&lt;mx:Button label=&quot;Load Contacts&quot; click=&quot;load()&quot;/&gt;
 	&lt;/mx:ApplicationControlBar&gt;
 	
 &lt;/mx:Application&gt;</diff>
      <filename>app/flex/src/address_book.mxml</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20080826060907) do
+ActiveRecord::Schema.define(:version =&gt; 20080826205242) do
 
   create_table &quot;contacts&quot;, :force =&gt; true do |t|
     t.string   &quot;first_name&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>356344828d901d9f8ad001f84820244cc7d4dfbe</id>
    </parent>
  </parents>
  <author>
    <name>Luke Pillow</name>
    <email>lpillow@gmail.com</email>
  </author>
  <url>http://github.com/pillowfactory/kcrug_address_book/commit/cc6fb155cac09c7b0f6e06c60b21f7baf09d3437</url>
  <id>cc6fb155cac09c7b0f6e06c60b21f7baf09d3437</id>
  <committed-date>2008-08-26T14:41:51-07:00</committed-date>
  <authored-date>2008-08-26T14:41:51-07:00</authored-date>
  <message>more cleanup and added data migration for fun</message>
  <tree>0cf1d0530c55f6c0d3d32fd83449813946d718f6</tree>
  <committer>
    <name>Luke Pillow</name>
    <email>lpillow@gmail.com</email>
  </committer>
</commit>
