X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e29c47b05689038fe5910babc1d05dab5370e184..703663c4a2f1db3b0a0dd070e653bbccd7d36c1e:/app/controllers/diary_entry_controller.rb 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