you must define the methods inside the application controller, if you have several methods, then you can follow these steps
class ApplicationController < ActionController::Base helper_method :first_method helper_method :second_method def first_method ...
You can also include auxiliary files as shown below.
class YourController < ApplicationController include OneHelper include TwoHelper end
Muhamamd Awais Nov 28 2018-12-12T00: 00Z
source share