소스 검색

Fix sign-in redirecting "back" to a missing image because missing static files hit the raise_not_found method

master
Eugen Rochko 7 년 전
부모
커밋
b60430fe8f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      app/controllers/application_controller.rb

+ 1
- 1
app/controllers/application_controller.rb 파일 보기

@@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base
rescue_from ActionController::RoutingError, with: :not_found
rescue_from ActiveRecord::RecordNotFound, with: :not_found

before_action :store_current_location, unless: :devise_controller?
before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?

def raise_not_found
raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"


불러오는 중...
취소
저장