2010-04-22 66 views
0

我试图让我的开发笔记本电脑上运行其他人的应用,但我遇到了路由问题,我不知道如何调试它。对于特定的控制器/操作,它只是挂起并且不超时,开发日志中没有错误消息。有谁知道我可以如何调试?谢谢。Rails路由挂

根据意见编辑。

config.rb

ActionController::Routing::Routes.draw do |map| 
    map.signup "/signup", :controller => "business_accounts", :action => "new" 
    map.resources :beta_signups, :controller => 'public/beta_signups' 
    map.root :controller => "public/pages", :action => "index" 
end 

为了简便起见,我注释掉路由的其余部分和一对夫妇的上班路线的离开了。失败的是注册路线,它只是挂起而且永不超时。

这里的距离development.log输出的相关展示的作品是不(注册)

Parameters: {"action"=>"index", "controller"=>"public/pages"} 
Rendering template within layouts/public 
Rendering public/pages/index 
Completed in 672ms (View: 656, DB: 15) | 200 OK [http://localhost/] 
    SQL (0.0ms) SET client_min_messages TO 'panic' 
    SQL (0.0ms) SET client_min_messages TO 'notice' 

Processing BusinessAccountsController#new (for 127.0.0.1 at 2010-04-22 10:01:30) 
[GET] 
    Parameters: {"action"=>"new", "controller"=>"business_accounts"} 

不知道这有什么差别,但在其上运行的路由(root)和一个瘦和打包机。

剥离控制器降到最低限度,并仍然得到同样的错误

class BusinessAccountsController < SSLController 
def new 
    logger.debug "here" 
end 
end 

而且我只注意到SSLController,嗯,我需要考虑这一点。

+0

编辑您的问题,向我们展示'config/routes.rb'中的内容。 – 2010-04-22 13:41:55

+0

对于我所说的路线,开发日志中的最后一个请求响应代码是什么? – 2010-04-22 16:26:05

+0

那么,您可以向我们展示BusinessAccountsController新操作中的内容吗? – 2010-04-23 15:59:36

回答

0

Son of a!@%$#@%$%!$ @!%,SSLController是我的问题,在我的笔记本电脑上没有SSL设置,网络效果是应用程序挂着没有错误信息。将其更改为ApplicationController的作品。谢谢@Taryn,这是你的要求让我更仔细地看了一下代码,可笑的是我已经看了好几天,直到现在才看到它。