]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
added messaging and friend stuff that wasn't checked in
[rails.git] / app / controllers / diary_entry_controller.rb
index c25c8718dced4fab126fea2f8a3e8494146fd01d..afa2722a1f99ab82782eb2610468dd0e49d0bb09 100644 (file)
@@ -1,8 +1,8 @@
 class DiaryEntryController < ApplicationController
   layout 'site'
   
-  before_filter :authorize_web
-  before_filter :require_user
+  before_filter :authorize_web, :only => [:new]
+  before_filter :require_user, :only => [:new]
 
   def new
     if params[:diary_entry]     
@@ -13,4 +13,8 @@ class DiaryEntryController < ApplicationController
       end
     end
   end
+  
+  def list
+    @entries=DiaryEntry.find(:all, :order => 'created_at DESC', :limit=>20)
+  end
 end