X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/763848b3dc88e90097f699c231281e17e3185315..8758685a86c3032a412183a53399e3e77dae75a1:/app/controllers/diary_entry_controller.rb?ds=sidebyside diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index c25c8718d..a67ad575a 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -13,4 +13,8 @@ class DiaryEntryController < ApplicationController end end end + + def list + @entries=DiaryEntry.find(:all, :order => 'created_at DESC', :limit=>20) + end end