[phase-3]error page with not exist id
This commit is contained in:
parent
cffd7877da
commit
7a084fdb67
@ -13,5 +13,7 @@ class GlossaryTermsController < ApplicationController
|
||||
# Find the term whose id is the :id parameter
|
||||
def find_term_from_id
|
||||
@term = GlossaryTerm.find(params[:id])
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user