class
ActionController::Routing::OptionalFormatSegment
rails latest stable
- Superclass: DynamicSegment
The OptionalFormatSegment allows for any resource route to have an optional :format, which decreases the amount of routes created by 50%.
Files
- actionpack/lib/action_controller/routing/segments.rb