instance method ensure_only_path_option

Ruby on Rails 7.2.3

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

ensure_only_path_option(options)

No documentation comment.

Parameters

options req
Source
# File actionview/lib/action_view/routing_url_for.rb, line 143
      def ensure_only_path_option(options)
        unless options.key?(:only_path)
          options[:only_path] = _generate_paths_by_default unless options[:host]
        end
      end

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

Defined in ActionView::RoutingUrlFor

Type at least 2 characters to search.

↑↓ navigate · open · esc close