class method self.new

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

self.new(key = nil, options = {})

No documentation comment.

Parameters

key opt = nil
options opt = {}
Source
# File actionpack/lib/action_controller/routing/segments.rb, line 312
      def initialize(key = nil, options = {})
        super(:format, {:optional => true}.merge(options))            
      end

Defined in actionpack/lib/action_controller/routing/segments.rb line 312 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Routing::OptionalFormatSegment

Type at least 2 characters to search.

↑↓ navigate · open · esc close