X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4c9a3d4803e4a30e157b3b179f630e7f51f38625..38255f9f8d7363b51350338fdda5753647aca1af:/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 f218ea6bb..12f3fdcc8 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -70,6 +70,8 @@ class DiaryEntryController < ApplicationController else render :action => 'view' end + rescue ActiveRecord::RecordNotFound + render :action => "no_such_entry", :status => :not_found end def list