0

我在 Rails 3.1 中使用forem引擎,但我的应用程序布局引用了一些资源路由,例如users_pathnew_sprite_path.

这一切在引擎之外都可以正常工作,但是当我尝试导航到引擎中的页面时,我得到了

undefined local variable or method `new_sprite_path' for #<#<Class:0x7f4faa4f9240>:0x7f4faa4dc320>

如何让引擎正确查看我的应用程序中的路径?

4

1 回答 1

5

使用main_app.new_sprite_path.

于 2011-08-04T01:34:33.073 回答