プロジェクト

全般

プロフィール

« | » 

リビジョン 7a084fdb

高徹 高橋 徹 さんが約6年前に追加

[phase-3]error page with not exist id

差分を表示:

app/controllers/glossary_terms_controller.rb
# 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

他の形式にエクスポート: Unified diff