2012-05-13 3 views
1

ActiveAdmin을 0.2.2에서 0.4.3으로, 레일즈를 3.0.0에서 3.2.3으로 업그레이드했습니다. ActiveAdmin 업그레이드 프로세스의 일부로 "rails generate active_admin : assets"을 호출했습니다. ActiveAdmin 루트 디렉토리 (http : // localhost : 3000/admin)에 액세스하려고하면 아래 오류가 발생합니다. 어떤 도움이라도 대단히 감사하겠습니다. 로컬 호스트 사용자로드 (: ActiveAdmin 0.4.3 Rails 3.2.3 업그레이드 오류

는 HTML Geokit 도메인을 사용 으로 관리 :: DashboardController 번호 지수에 의해 2012-05-13 10시 31분 51초 -0700 처리에 127.0.0.1에 대한 "/ admin"을 GET 시작 0.2ms) SELECT users. * FROM users WHERE users. id = 1 LIMIT 1 렌더링 됨 /home/js/.rvm/gems/ruby-1.9.3-p194/gems/activeadmin-0.4.3/app/views/active_admin/dashboard/index.html.arb (77.3ms) 86ms

ActionView :: 템플릿 :: 오류 (#에 대한 정의되지 않은 메서드`destroy_admin_user_session_path ')에서 500 내부 서버 오류 완료 : 1 : http://pastebin.com/raw.php?i=W4bzay3t

설정 : view_factory.dashboard_page에게 여기

전체 추적 렌더링 /initializers/active_admin.rb :

ActiveAdmin.setup do |config| 
    config.site_title = "SiteName" 
    config.default_namespace = :admin 
    config.authentication_method = :admin_user? 
    config.current_user_method = :current_user 
end 
+0

당신이 당신의 대시 보드에서 코드를 추가하거나 주석 처리하고 문제가 지속되면 볼 수 있을까요? (편집 : Nevermind, 내 대답은 아래에 게시 됨) –

답변

1

는 config 블록이 시도 :

ActiveAdmin.setup do | config | 
... 
    config.logout_link_path = :signout_path 
... 
end 

건배. |

+0

여전히 작동하지 않습니다. 지금이 오류가 발생합니다 : NoMethodError in Admin/dashboard # 색인 게재 /home/js/.rvm/gems/ruby-1.9.3-p194/gems/activeadmin-0.4.3/app/views/active_admin/ dashboard/index.html.arb 여기서 line # 1 raise : # 에 대한 정의되지 않은 메소드'destroy_user_session_path ' – sizzle

+1

run ... rake routes | grep user ... 여기서 구성 할 적절한 경로를 찾을 수 없는지 확인하십시오. –

+0

그래서 @JeffAncel이 올바른 길로 인도했습니다. 레이크 루트 대신 | grep 사용자, 나는 긁어 모으기 경로를 달렸다 | grep 세션. 그런 다음 Session/Destroy 액션을 호출하는/signout 라우트가 정의되었음을 알았습니다. 그래서 ActiveAdmin 초기화 프로그램을'config.logout_link_path = : signout_path'로 업데이트했습니다. 고마워요 @JeffAncel !!! – sizzle

0

레이크 노선이

signout의 /signout(.:format을 보여 주면이 작동합니다) 세션 #이 도움말

ActiveAdmin.setup 할

희망을 파괴 구성 | ... config.logout_link_path = signout_path ... 끝

관련 문제