Add config.action_controller.include_all_helpers, by default it is set to true.
In older rails versions there was a way to use only helpers from helper file corresponding to current controller and you could also include all helpers by saying 'helper :all' in controller. This config allows to return to older behavior by setting it to false.
Showing
想要评论请 注册 或 登录