2015-06-01から1ヶ月間の記事一覧
次のようなコードを Rails 4.0 系の controller に記述すると rescue_from ActiveRecord::RecordNotFound, with: :render_404 rescue_from ActionController::RoutingError, with: :render_404 rescue_from Exception, with: :render_500 内部では ActiveRec…
次のようなコードを Rails 4.0 系の controller に記述すると rescue_from ActiveRecord::RecordNotFound, with: :render_404 rescue_from ActionController::RoutingError, with: :render_404 rescue_from Exception, with: :render_500 内部では ActiveRec…