出於某種原因,正確地重定向紅寶石,我讓我的網頁的一個保護區,當點擊了錯誤:頁面沒有on Rails的
Firefox: The page isn't redirecting properly
下面是我在ApplicationController
使用方法:
protected
def authorize
unless User.find_by_id(session[:remember_token])
flash[:notice] = "Please Log in"
redirect_to :controller => 'sessions', :action => 'new'
end
end
出於某種原因,我無法訪問sessions/new
,這是我的登錄頁面。任何幫助將非常感激。我檢查了路線,並得到了sessions/new
。
你在日誌裏有什麼? – apneadiving