method

method_for_options

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActionView::Helpers::UrlHelper
method_for_options(options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/helpers/url_helper.rb, line 797
        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
Register or log in to add new notes.