我试图在config / environments / development.rb中加载ApplicationHelper
模块:
Rails.application.configure do
...
include ApplicationHelper
...(here I want to call my functions from ApplicationHelper)
end
我需要调用ApplicationHelper中定义的函数。
但是当我启动rails服务器时,我收到错误:
未定义的方法`include'为# (NoMethodError)
如何以正确的方式包含ApplicationHelper模块?