Covering the case of an entry not being found. More diary entry tests.
This commit is contained in:
parent
ad9e48120a
commit
797cbaab1e
4 changed files with 57 additions and 9 deletions
|
@ -38,6 +38,8 @@ class DiaryEntryController < ApplicationController
|
|||
redirect_to :controller => 'diary_entry', :action => 'view', :id => params[:id]
|
||||
end
|
||||
end
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render :action => "no_such_entry", :status => :not_found
|
||||
end
|
||||
|
||||
def comment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue