ActionController::Routing::OptionalFormatSegment


Files

Parent

DynamicSegment

Description

The OptionalFormatSegment allows for any resource route to have an optional :format, which decreases the amount of routes created by 50%.

Methods

Public Class methods

new (key = nil, options = {})

Public Instance methods

interpolation_chunk ()

match_extraction (next_capture)

the value should not include the period (.)

regexp_chunk ()

to_s ()