“undefined method” when calling helper method from controller in Rails

You cannot call helpers from controllers. Your best bet is to create the method in ApplicationController if it needs to be used in multiple controllers. EDIT: to be clear, I think a lot of the confusion (correct me if I’m wrong) stems from the helper :all call. helper :all really just includes all of your … Read more