I have rails app with a module called http_helpers
that lives in app/lib/modules/
and I want to use the methods in the module in my controllers. I was thinking of requiring the module in application_controller.rb
so that the module's methods will be accessible to every controller.
application_controller.rb
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
require "http_helpers"
end
However I'm getting an error:
LoadError (cannot load such file -- http_helpers):
I'm new to dealing with this side of rails (or ruby for that matter) and would very much appreciate some suggestions.
Thanks in advance!