module ActionController::Helpers::ClassMethods

def helpers

Provides a proxy to access helpers methods from outside the view.
def helpers
  @helper_proxy ||= ActionView::Base.new.extend(_helpers)
end