method

match_extraction

rails latest stable - Class: ActionController::Routing::ControllerSegment

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

match_extraction(next_capture)
public

No documentation available.

# File actionpack/lib/action_controller/routing/segments.rb, line 258
      def match_extraction(next_capture)
        if default
          "params[:#{key}] = match[#{next_capture}] ? match[#{next_capture}].downcase : '#{default}'"
        else
          "params[:#{key}] = match[#{next_capture}].downcase if match[#{next_capture}]"
        end
      end