instance method any_formats?

Ruby on Rails edge

Since edge

Signature

any_formats?(name, prefixes = [], partial = false, keys = [], options = {})

No documentation comment.

Parameters

name req
prefixes opt = []
partial opt = false
keys opt = []
options opt = {}
Source
# File actionview/lib/action_view/lookup_context.rb, line 177
      def any_formats?(name, prefixes = [], partial = false, keys = [], options = {})
        exists?(name, prefixes, partial, keys, **options, formats: default_formats)
      end

Defined in actionview/lib/action_view/lookup_context.rb line 177 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::LookupContext::ViewPaths

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close