<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db/migrate/20080814001121_create_events.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20080814002941_add_type_field_to_post.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20080814003528_drop_events_table.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20080814003543_add_events_columns_to_posts.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20080814004513_add_presenter_column_to_events.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20080814005733_add_sticky_field_to_posts.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -10,6 +10,7 @@ class PostsController &lt; ResourceController::Base
 	index.wants.atom
 
   index.wants.html do
+    @sticky = Post.sticky
 		Twitter::Status.logger = logger
 		begin
 			if tweets_enabled
@@ -43,7 +44,6 @@ class PostsController &lt; ResourceController::Base
 		elsif params[:year]
 			ex = &quot;Year: #{params[:year]}&quot;
 		end
-		#raise ex
 	end
 
   show.wants.xml { render :xml =&gt; @post }
@@ -68,9 +68,9 @@ class PostsController &lt; ResourceController::Base
 
   def load_collection
 		if params[:tag]
-			@posts = Post.find_tagged_with params[:tag] 
+			@posts = Post.find_tagged_with params[:tag]
 		else
-      @posts = Post.find(:all, :limit =&gt; 10, :order =&gt; &quot;created_at desc&quot;)
+      @posts = Post.not_sticky.all  :limit =&gt; 10, :order =&gt; &quot;created_at desc&quot;
 		end
   end
 </diff>
      <filename>app/controllers/posts_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
 require 'google_geocode'
 class Location &lt; ActiveRecord::Base
-		has_permalink :name
+  has_many :events
+	has_permalink :name
 		
 		def before_save
 			gg = GoogleGeocode.new YAML.load_file(RAILS_ROOT + '/config/gmaps_api_key.yml')[ENV['RAILS_ENV']]</diff>
      <filename>app/models/location.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,8 @@ class Post &lt; ActiveRecord::Base
 	before_save :generate_permalink
   acts_as_commentable :order =&gt; 'created_at desc', :conditions =&gt; &quot;is_spam = 'f'&quot;
 	acts_as_taggable
-
+	named_scope :sticky, :conditions =&gt; [&quot;sticky = 't' and ((type = 'Event' and start_time &gt; ?) or type is null)&quot;, DateTime.now], :order =&gt; 'start_time desc'
+  named_scope :not_sticky, :conditions =&gt; {:sticky =&gt; false}
 	def generate_permalink
 		#raise self.attributes.to_s
 		if self.permalink.nil?</diff>
      <filename>app/models/post.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,17 @@
 .main-event
   %strong.chicklet
-    event
+    = event.type || &quot;Post&quot;
   %p.info
-  %h1 Ruby &amp;amp; F# &amp;ndash; A Polyglot Adventure
-  .event-meta
-    .presenting
-      %em Presenting
-      = link_to &quot;Joe O'Brien&quot;, 'http://www.objo.com/'
-      &amp;amp;
-      = link_to 'Amanda Laucher', 'http://www.pandamonial.com/'
-    .date
-      %em July 17, 2008 6:30 PM
-      at
-      = link_to 'Dimple Dough Inc.', '/locations/dimpledough-inc'
+  %h1= event.title
+  - if event.type == &quot;Event&quot;
+    .event-meta
+      .presenting
+        %em Presenting
+        = event.presenter
+      .date
+        %em 
+          = event.start_time.to_s :long_ordinal_12hour
+        at
+        = link_to event.location.name, location_url(event.location)
   .post-content
-    =&quot;&lt;p&gt;What is the deal with all of these new languages surfacing? Why should you spend the time to learn a language when it isn't in your job description? What benefit do you get by investing in something that might take off, versus something that is tried and true? What are our mainstream languages currently lacking? This is where F# and IronRuby come into play.&lt;/p&gt;&lt;p&gt;From currying, passing code around as data, mathematical-based algorithms that make concurrency a breeze, to features such as message passing, IronRuby and F# give you two new ways of thinking about algorithms. In this talk, Amanda and Joe will walk you through the mental differences that F# and IronRuby bring to the traditional developer. They will show you how, by spending time in either or both languages, you will change the way you think and improve the way you solve problems in any language.&lt;/p&gt;&lt;p&gt;What's your next language going to be?&lt;/p&gt;&lt;p&gt;Amanda Laucher is a consultant for The Sophic Group and has been architecting and developing solutions for the past 8 years. She has recently been focusing on coaching agile principals at a large corporation in Columbus. As a recent language geek, she has become interested in F# and functional programming and how it can make .NET applications better.&lt;/p&gt;&lt;p&gt;Joe is a father, speaker, author and developer. Before helping found EdgeCase, LLC, Joe was a developer with ThoughtWorks and spent much of his time working with large J2EE and .NET systems for Fortune 500 companies. He has spent his career as a developer, project manager, and everything in between. Joe is a passionate member of the open source community. He co-founded the Columbus Ruby Brigade and helped organize the Chicago Area Ruby Users Group. His passions are Agile Development in the Enterprise, Ruby, and demonstrating to the Fortune 500 the elegance and power of this incredible language.&lt;/p&gt;&quot;
\ No newline at end of file
+    = textilize event.body
\ No newline at end of file</diff>
      <filename>app/views/posts/_event.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
-= render_partial 'event', nil
+- @sticky.each do |post|
+  = render_partial 'event', post
 #posts
   - @posts.each do |post|
-    = render_partial 'post', post
+    = render_partial 'event', post</diff>
      <filename>app/views/posts/index.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -66,7 +66,7 @@ require &quot;#{File.expand_path(RAILS_ROOT)}/vendor/RedCloth-3.0.4/lib/redcloth&quot;
 
 # Add custom date formats
 ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:short_date_only] = &quot;%D&quot;
-ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:long] = &quot;%B %e, %Y&quot;
+ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS[:long_ordinal_12hour] = &quot;%B %d, %Y %I:%M%p&quot;
 
 # RedCloth HTML WhiteList customizations
 ['blockquote', 'table', 'tr', 'td'].each do |tag|</diff>
      <filename>config/environment.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f373a018490efd7f96f39af39847176dbe937fa1</id>
    </parent>
  </parents>
  <author>
    <name>Joe Fiorini</name>
    <email>joe@joe-fiorinis-macbook-pro.local</email>
  </author>
  <url>http://github.com/faithfulgeek/blog-starter-kit/commit/de33e9c85b5dd84f95adbc5812d4851b58711517</url>
  <id>de33e9c85b5dd84f95adbc5812d4851b58711517</id>
  <committed-date>2008-08-13T20:36:27-07:00</committed-date>
  <authored-date>2008-08-13T20:35:08-07:00</authored-date>
  <message>Made events dynamic (imagine that)</message>
  <tree>3bc26963fa1d87a6acd897c632488ca9b7fdb012</tree>
  <committer>
    <name>Joe Fiorini</name>
    <email>joe@joe-fiorinis-macbook-pro.local</email>
  </committer>
</commit>
