Class ActionController::Routing::OptionalFormatSegment
In: lib/action_controller/routing/segments.rb
Parent: DynamicSegment

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

Public Instance methods

the value should not include the period (.)

[Validate]