instance method match_extraction

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

match_extraction(next_capture)

the value should not include the period (.)

Parameters

next_capture req
Source
# File actionpack/lib/action_controller/routing/segments.rb, line 333
      def match_extraction(next_capture)
        %[
          if (m = match[#{next_capture}])
            params[:#{key}] = URI.unescape(m.from(1))
          end
        ]
      end

Defined in actionpack/lib/action_controller/routing/segments.rb line 333 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Routing::OptionalFormatSegment

Type at least 2 characters to search.

↑↓ navigate · open · esc close