2011-04-30 2 views

답변

0

메소드 after_sign_in_path_for를 덮어 써야합니다. 응용 프로그램 컨트롤러에서이를 수행 할 수 있습니다. 내가 한 것은

def after_sign_in_path_for(scope) 
    if scope.is_a?(User) 
    '#' 
    elsif scope.is_a?(Admin) 
    '#' 
    else 
    super 
    end 
end 
관련 문제