I have a file in lib/thing.rb
, and in there I need to call a method defined in ApplicationHelper
inside a class method in thing.rb
In other words in Thing.some_method()
it calls format_me()
in ApplicationHelper
I've tried every conceivable way I can think of to extend ApplicationHelper
or extend ActionView::Helpers::ApplicationHelper
and it just keeps saying uninitialized constant. Ive also tried Rails.application.helpers
but I don't know how to access the method in there...