This project is archived and is in readonly mode.
“undefined method” when calling helper method in ApplicationHelper module from controller in Rails3 app
-
Luis Hurtado
Are helper methods intended to be used in controllers?
I think helper methods MUST to be used only in views. -
Aditya Sanghi
- State changed from new to invalid
- Importance changed from to Low
Yes, helpers are meant to be used in Views not Controllers. If you want to use them in Controllers you can try to access them as
@template.mymethodbut i'm not it's a documented public way of doing it. There maybe other workaround to access them in controllers, feel free to investigate.