rails(4.1.0)에서 action 이름이location인 경우redirectto 에서 stack level too deep 오류가 발생했습니다.
Rails에서 SystemStackError를 만났습니다: stack level too deep... - (define-ayalog'()
컨트롤러의 후계자인 Application Controller의 어딘가가 정의되었지만 찾지 못했기 때문이라고 생각합니다.
Stack level too deep 오류가 발생하면 액션 이름을 바꾸면 우선 리디렉션이 순조롭게 진행되지만 액션 이름에 지정할 수 없는 이름 일람표를 원합니다.
다음 출처
routes.rb
root 'hoge#index'
get 'location' => 'hoge#location'
get 'message' => 'hoge#message'
hoge_controller.rbclass HogeController < ApplicationController
def index
render :text => "index"
end
def location
redirect_to :root
end
def message
redirect_to :root
end
end
액세스/location
시 화면Reference
이 문제에 관하여(rails(4.1.0)에서 action 이름이location인 경우redirectto 에서 stack level too deep 오류가 발생했습니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/prinum/items/2d974159d24c87bf73f9텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)