projects
/
rails.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a test for commenting on diary entries
[rails.git]
/
app
/
controllers
/
diary_entry_controller.rb
diff --git
a/app/controllers/diary_entry_controller.rb
b/app/controllers/diary_entry_controller.rb
index f218ea6bb1ea89d4f1c634a6da4e8995d5267655..12f3fdcc83435187e52dd6abfd9d1ffa2ad68b11 100644
(file)
--- 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