Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 一台可安装发动机与另一台可安装发动机的访问路线_Ruby On Rails_Ruby On Rails 3.1_Ruby On Rails Plugins_Rails Engines - Fatal编程技术网

Ruby on rails 一台可安装发动机与另一台可安装发动机的访问路线

Ruby on rails 一台可安装发动机与另一台可安装发动机的访问路线,ruby-on-rails,ruby-on-rails-3.1,ruby-on-rails-plugins,rails-engines,Ruby On Rails,Ruby On Rails 3.1,Ruby On Rails Plugins,Rails Engines,我正在制造一个新的可安装发动机。 它是更大应用程序的一部分。 我试图使用另一个小引擎的布局作为我的引擎,该引擎需要有相同的布局。 为此,我的应用程序控制器如下所示: class ApplicationController < AnotherEngine::ApplicationController layout "AnotherEngine/AnotherEngine" #Pointing to the layout file of other engine end cl

我正在制造一个新的可安装发动机。 它是更大应用程序的一部分。 我试图使用另一个小引擎的布局作为我的引擎,该引擎需要有相同的布局。 为此,我的应用程序控制器如下所示:

class ApplicationController < AnotherEngine::ApplicationController
     layout "AnotherEngine/AnotherEngine"    #Pointing to the layout file of other engine
end
class ApplicationController
现在的问题是,在另一个引擎中存在命名的_路径,我的引擎无法识别并抛出这些路径

ActionView::Template::Error (undefined local variable or method `some_path' for #<#<Class:0xbbd9524>:0xbbf85c8>)
ActionView::Template::Error(未定义的局部变量或#的'some_path'方法)
为什么应用程序无法找到路径?
当我转到另一个引擎时,一切正常,但当我的引擎尝试使用另一个引擎的布局时(这反过来又有一些命名路径),我得到了这些错误。

路由应该在引擎的宿舍中。\u name.named\u path!!它将像一个符咒一样工作:)