<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>themes/default/views/rss.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -20,6 +20,13 @@ get '/' do
   erb_with_theme :index
 end
 
+get '/posts.xml' do
+  content_type 'text/xml'
+  @posts = Columnlog::Column.posts(15)
+  erb_with_theme :rss, :layout =&gt; false
+end
+
+
 get '/new' do
   require_administrative_privileges
   erb_with_theme :new</diff>
      <filename>app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,6 +38,16 @@ module Columnlog
         'default'
       end
       
+      def posts(num)
+        posts = []
+        self.all.each do |column| 
+          column_posts = column.get
+          column_posts.each {|p| p.column = column }
+          posts.concat column_posts
+        end
+        posts.flatten.sort {|a,b| b.posted_at &lt;=&gt; a.posted_at }.first(num).compact
+      end
+      
       def cache_for
         class_attributes[:cache_for] || 300
       end
@@ -64,6 +74,7 @@ module Columnlog
       @attributes['how_many'] || self.class.class_attributes['how_many'] || 10
     end
     
+    
     def updated_at
       get &amp;&amp; get.first ? get.first.posted_at : nil
     end</diff>
      <filename>lib/columnlog/column.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b471f1c7f240822088a448566412071393fd2683</id>
    </parent>
  </parents>
  <author>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </author>
  <url>http://github.com/quirkey/columnlog/commit/082e1247aeff439c4968c6fbca1222db8b32d5e4</url>
  <id>082e1247aeff439c4968c6fbca1222db8b32d5e4</id>
  <committed-date>2008-12-17T14:30:09-08:00</committed-date>
  <authored-date>2008-12-17T14:30:09-08:00</authored-date>
  <message>Added global rss feed</message>
  <tree>8337274c80a7bd63b94e6e7f21ab876267beb423</tree>
  <committer>
    <name>Aaron Quint</name>
    <email>aaron@quirkey.com</email>
  </committer>
</commit>
