在 3000 端口正常,但是 apache passenger 下跑就出错,不知道什么原因?
Appfp::Application.routes.draw do
devise_for :users
get 'kindeditor/images_list'
post 'kindeditor/upload'
resources :apps
root :to => 'apps#index'
end
我昨天也突然碰到 Devise 2.1.2 版的这个问题,查了代码,似乎要加 user_signed_in? 到 current_page 之前,最终原因不明……
<li class="nav-header">SAP Purchase Order</li>
<li class="<%= 'active' if user_signed_in? and current_page? :controller => 'sap_pos', :action => 'new' %>"><%= link_to "Receive PO Parts", new_sap_po_path %></li>
我的 ApplicationController 中的代码:
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :authenticate_user!
end
@ery 注视去掉了 Routing Error
No route matches [GET] "/" Try running rake routes for more information on available routes.
错误信息是 No route matches [GET] "/"
可是路由设置中有 root :to => 'apps#index'
我想不明白....
关注一下