instance method method_for_options

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

method_for_options(options)

No documentation comment.

Parameters

options req
Source
# File actionview/lib/action_view/helpers/navigation_helper.rb, line 562
        def method_for_options(options)
          if options.is_a?(Array)
            method_for_options(options.last)
          elsif options.respond_to?(:persisted?)
            options.persisted? ? :patch : :post
          elsif options.respond_to?(:to_model)
            method_for_options(options.to_model)
          end
        end

Defined in actionview/lib/action_view/helpers/navigation_helper.rb line 562 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::NavigationHelper

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