【发布时间】:2015-11-26 10:57:00
【问题描述】:
在我的ApplicationHelper.rb
def price_count
my code is here
end
我想在多个视图文件中访问它。
谢谢。
【问题讨论】:
-
您尝试访问了吗?
-
@nithin 是的,我试过了
-
在其他视图文件中访问时出现什么错误?
-
得到这个错误 => 未定义的局部变量或方法 `price_count'
标签: ruby-on-rails ruby helper