我正在构建模板库应用程序,当前,我将所有模板(.html.erb)存储在不同的目录中,除了传统的rails
视图包含页面(如主页,联系人) ,等等。我当前的目录结构如下:
app
- controllers
- helpers
- components (this is the location where all the templates are stored)
- models
- views
- etc
默认情况下,所有helper
方法都被加载到views
目录中,我想知道是否有一种方法可以将所有rails
帮助方法加载到{{1 }}目录。