Ruby on rails Rails:如何在自定义目录中加载Rails助手方法?

Ruby on rails Rails:如何在自定义目录中加载Rails助手方法?,ruby-on-rails,ruby,Ruby On Rails,Ruby,我正在构建一个模板库应用程序,目前,我正在将所有模板(.html.erb)存储在不同的目录中,除了传统的rails视图,其中包含页面,如主页、联系人等。我当前的目录结构如下所示: app - controllers - helpers - components (this is the location where all the templates are stored) - models - views - etc 默认情况下,所有helper方法都加载到views目录中,我想知道是否有办

我正在构建一个模板库应用程序,目前,我正在将所有模板(.html.erb)存储在不同的目录中,除了传统的
rails
视图,其中包含页面,如主页、联系人等。我当前的目录结构如下所示:

app
- controllers
- helpers
- components (this is the location where all the templates are stored)
- models
- views
- etc
默认情况下,所有
helper
方法都加载到
views
目录中,我想知道是否有办法将所有
rails
helper方法也加载到
components
目录中