instance method
helpers
Ruby on Rails 7.2.3.2
Signature
helpers()
Provides a proxy to access helper methods from outside the view.
Note that the proxy is rendered under a different view context. This may cause incorrect behavior with capture methods. Consider using helper instead when using capture.
Source
# File actionpack/lib/action_controller/metal/helpers.rb, line 94
def helpers
@helper_proxy ||= begin
proxy = ActionView::Base.empty
proxy.config = config.inheritable_copy
proxy.extend(_helpers)
end
end
Defined in actionpack/lib/action_controller/metal/helpers.rb line 94
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Helpers::ClassMethods