dabs
Full Member
Posts: 74
|
Post by dabs on Nov 20, 2018 10:59:28 GMT
Hi,
regarding the index.erb file which is located in the /app folder: I assume there is really no controller behind it, is that a correct assumption? In order to write functions which I could call from within index.erb, would I be required to create a module and then use "require" to include it into index.erb?
Regards, DanĂel
|
|
|
Post by Alex Epifanov on Nov 20, 2018 14:12:53 GMT
Yes, root index.erb doesn't have a dedicated controller. You can create a new module or call static methods from existing classes/controllers.
|
|
|
Post by Dmitry Soldatenkov on Nov 20, 2018 17:15:03 GMT
|
|