English 中文(简体)
行动主计长: 特殊私人方法 “要求无:无
原标题:Action Controller: Exception private method `sub called for nil:NilClass

现在我只字不提。 我很想知道,为什么我正在发现这一错误,但是如果我看一下记录的话,它就这样说:

ActionController::RoutingError (private method `sub called for nil:NilClass): app/controllers/application_controller.rb:1 app/controllers/pages_controller.rb:1

我的申请控制员不包含任何内容(只保护——从_forgery手中夺走),而我的网页控制员目前几乎没有空洞的行动。

这里的哪一点会错?

<>Update>

Since I had just started the project I was able to roll it back and start over again. However I am still clueless why this problem occured Thanks,

问题回答

重复检查你的助手——正在界定的单元名称必须与助手的档案名称相称。





相关问题
Rails: Proxy Pass?

I ve got a web-app that I want to migrate to Rails, which is currently just plain HTML with an Apache proxy to another server, running a custom database/webserver that serves the site s dynamic ...

MVC routing is not handling one of my directories

I m using ASP.NET MVC with IIS 7.0. I ve got 404 errors hooked up fine through my Application_Error override. In addition to "Controllers", "Models", "Helpers" etc. I have a directory called Files ...

Ruby on Rails conditional routing

I have a site listing many jobs, but I also want each account to be able to access its jobs in one place. Thus, I am using these routes: map.resources :jobs map.resource :account, :has_many => :...

Clean URL s using OpenCart s router class

How do you write clean URL s in OpenCart using their built in Router class? Here is my .htaccess file: RewriteEngine On RewriteRule ^(system) - [F,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...

subdomain routing to multiple controller issue

I have a site: www.mydomain.com where we have administrative controls hidden away from normal customer view. I would like to only access the administrative features under a subdomain such as admin....

Can controller names in RESTful routes be optional?

With a standard map.resource routing mechanics and several nested resources the resultant routes are unnecessarily long. Consider the following route: site.org/users/pavelshved/blogs/blogging-horror/...

Help with rails routes

Im having a little trouble setting up routes. I have a users controller/model/views set up restfully so users is set up to be a resource in my routes. I want to change that to be usuarios ...

热门标签