class OptionalFormatSegment

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

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

Inherits from

ActionController::Routing::DynamicSegment

Methods (defined here)

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close