class

ActionController::Routing::OptionalFormatSegment

v2.3.8 - Show 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