エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Railsで404/500エラーの処理 - Qiita
# 例外処理 rescue_from ActiveRecord::RecordNotFound, with: :render_404 rescue_from ActionControll... # 例外処理 rescue_from ActiveRecord::RecordNotFound, with: :render_404 rescue_from ActionController::RoutingError, with: :render_404 rescue_from Exception, with: :render_500 def render_404 render template: 'errors/error_404', status: 404, layout: 'application', content_type: 'text/html' end def render_500 render template: 'errors/error_500', status: 500, layout: 'application', content_type: 'text/html
2019/01/29 リンク