サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
掃除・片付け
qiita.com/zeppekipanda
# 例外処理 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
このページを最初にブックマークしてみませんか?
『qiita.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く