started work on /diary
[rails.git] / app / controllers / diary_entry_controller.rb
index c25c8718dced4fab126fea2f8a3e8494146fd01d..a67ad575a99b52b1193e1965fe684f4bf69f9420 100644 (file)
@@ -13,4 +13,8 @@ class DiaryEntryController < ApplicationController
       end
     end
   end
+  
+  def list
+    @entries=DiaryEntry.find(:all, :order => 'created_at DESC', :limit=>20)
+  end
 end