method
new
Ruby on Rails latest stable (v3.2.13)
-
0 notes -
Class: ActionController::Routing::OptionalFormatSegment
- 1.0.0
- 1.1.0
- 1.1.1
- 1.1.6
- 1.2.0
- 1.2.6
- 2.0.0
- 2.0.1
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.2 (0)
- 2.3.8 (0)
- 3.0.0
- 3.0.5
- 3.0.7
- 3.0.9
- 3.1.0
- 3.2.1
- 3.2.3
- 3.2.8
- 3.2.13
- What's this?
Related methods
- Class methods (1)
-
new
(<= v2.3.8)
- Instance methods (5)
-
extract_value
(<= v2.3.8)
-
interpolation_chunk
(<= v2.3.8)
-
match_extraction
(<= v2.3.8)
-
regexp_chunk
(<= v2.3.8)
-
to_s
(<= v2.3.8)
= private
= protected
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.
These similar methods exist in v3.2.13:
- Mime::Type#new
- RailsEnvironment#new
- ActiveResource::Base#new
- ActiveSupport::Multibyte::Chars#new
- ActiveSupport::Cache::Store#new
- ActiveRecord::MultiparameterAssignmentErrors#new
- ActiveRecord::Reflection::MacroReflection#new
- ActionView::TestCase::TestController#new
- ActiveRecord::AttributeAssignmentError#new
- ActiveResource::HttpMock::Responder#new
- ActiveResource::HttpMock#new
- ActiveSupport::TimeWithZone#new
- ActiveSupport::BufferedLogger#new
- ActiveSupport::Cache::MemCacheStore#new
- ActiveSupport::Cache::MemoryStore#new
- ActiveSupport::Cache::FileStore#new
- ActiveResource::Response#new
- ActiveResource::TimeoutError#new
- ActiveResource::Request#new
- ActiveResource::Connection#new
- ActiveRecord::ConnectionAdapters::TableDefinition#new
- ActiveModel::Observer#new
- ActionController::Caching::Actions::ActionCachePath#new
- Rails::Plugin#new
- HTML::Selector#new
- ActionMailer::NonInferrableMailerError#new
- RecursiveHTTPFetcher#new
- Plugin#new
- SourceAnnotationExtractor#new
- ActiveSupport::Callbacks::Callback#new
- ActiveRecord::ConnectionAdapters::Table#new
- ActiveRecord::ConnectionAdapters::MysqlAdapter#new
- ActiveRecord::RecordInvalid#new
- ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder#new
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#new
- ActiveRecord::Base#new
- CodeStatistics#new
- ActionMailer::Base#new
- ActionController::MethodNotAllowed#new
- ActionController::RoutingError#new
- ActionController::TestSession#new
- ActionController::SessionOverflowError#new
- ActionController::RedirectBackError#new
- ActionController::Caching::Actions::ActionCacheFilter#new
- HTML::Text#new
- HTML::Node#new
- HTML::Tag#new
- HTML::Tokenizer#new
- HTML::Conditions#new
- HTML::Document#new
- Mime::Type::AcceptItem#new
- ActionView::Base#new
- ActionView::Template#new
- ActionView::Helpers::FormBuilder#new
- ActionView::Helpers::InstanceTag#new
- ActionView::Helpers::TextHelper::Cycle#new
- ActiveRecord::Migrator#new
- ActiveRecord::UnknownMigrationVersionError#new
- ActiveRecord::ReadOnlyAssociation#new
- ActiveRecord::HasManyThroughAssociationPointlessSourceTypeError#new
- ActiveRecord::DuplicateMigrationNameError#new
- ActiveRecord::IllegalMigrationNameError#new
- ActiveRecord::SchemaDumper#new
- ActiveRecord::Base::ConnectionSpecification#new
- ActiveRecord::DuplicateMigrationVersionError#new
- ActiveRecord::HasManyThroughAssociationNotFoundError#new
- ActiveRecord::EagerLoadPolymorphicError#new
- ActiveRecord::HasManyThroughCantDissociateNewRecords#new
- ActiveRecord::HasManyThroughCantAssociateNewRecords#new
- ActiveRecord::HasManyThroughSourceAssociationNotFoundError#new
- ActiveRecord::Associations::HasManyThroughAssociation#new
- ActiveRecord::ConnectionAdapters::AbstractAdapter#new
- ActiveRecord::ConnectionAdapters::PostgreSQLColumn#new
- ActiveResource::ConnectionError#new
- ActiveSupport::OptionMerger#new
- ActiveSupport::Duration#new
- ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy#new
- ActionView::MissingTemplate#new
- ActionView::PathSet#new
- ActionView::Helpers::DateTimeSelector#new
- ActionView::Helpers::AtomFeedHelper::AtomBuilder#new
- ActiveRecord::DynamicFinderMatch#new
- ActiveRecord::ConnectionAdapters::ConnectionPool#new
- ActiveRecord::ConnectionAdapters::ConnectionHandler#new
- ActiveSupport::TimeZone#new
- ActiveSupport::Inflector::Inflections#new
- ActiveSupport::Deprecation::DeprecatedConstantProxy#new
- ActiveSupport::Deprecation::DeprecatedObjectProxy#new
- Rails::Rack::Logger#new
- ActionController::MiddlewareStack::Middleware#new
- ActiveRecord::SessionStore::SqlBypass#new
- ActiveRecord::QueryCache#new
- ActiveRecord::HasAndBelongsToManyAssociationForeignKeyNeeded#new
- ActiveRecord::DynamicScopeMatch#new
- ActiveRecord::ConnectionAdapters::ConnectionManagement#new
- ActiveRecord::ConnectionAdapters::SQLiteAdapter::Version#new
- ActiveRecord::ConnectionAdapters::SQLiteAdapter#new
- ActiveSupport::MessageVerifier#new
- ActiveSupport::MessageEncryptor#new
- ActiveSupport::OrderedHash#new
- ActiveSupport::BacktraceCleaner#new
- Rails::BacktraceCleaner#new
- Rails::Rack::Debugger#new
- Rails::Rack::LogTailer#new
- RailsGuides::Generator#new
- RailsGuides::Indexer#new
- ActionController::TestRequest#new
- ActiveRecord::HasManyThroughCantAssociateThroughHasOneOrManyReflection#new
- ActiveRecord::Associations::HasAndBelongsToManyAssociation#new
- ActiveResource::SSLError#new
- ActiveRecord::InverseOfAssociationNotFoundError#new
- Person#new
- ActionMailer::Collector#new
- ActionController::Responder#new
- ActionController::Middleware::ActionMiddleware#new
- ActionController::Middleware#new
- ActionController::Metal#new
- ActionController::MimeResponds::Collector#new
- ActionView::LookupContext::DetailsKey#new
- ActionView::LookupContext#new
- ActionView::Template::Text#new
- ActionView::Template::Error#new
- ActionView::FileSystemResolver#new
- ActionView::Resolver#new
- ActionView::Helpers::NumberHelper::InvalidNumberError#new
- AbstractController::DoubleRenderError#new
- AbstractController::I18nProxy#new
- AbstractController::Layouts#new
- ActionDispatch::Head#new
- ActionDispatch::Rescue#new
- ActionDispatch::MiddlewareStack::Middleware#new
- ActionDispatch::MiddlewareStack#new
- ActionDispatch::ShowExceptions#new
- ActionDispatch::ParamsParser#new
- ActionDispatch::Flash::FlashHash#new
- ActionDispatch::Flash::FlashNow#new
- ActionDispatch::Flash#new
- ActionDispatch::RemoteIp#new
- ActionDispatch::TestRequest#new
- ActionDispatch::Static#new
- ActionDispatch::Callbacks#new
- ActionDispatch::Cookies::CookieJar#new
- ActionDispatch::Cookies::SignedCookieJar#new
- ActionDispatch::Cookies::PermanentCookieJar#new
- ActionDispatch::Cookies#new
- ActionDispatch::Integration::Session#new
- ActionDispatch::Session::MemCacheStore#new
- ActionDispatch::Http::Headers#new
- ActionDispatch::Routing::Mapper::Mapping#new
- ActionDispatch::Routing::Mapper::Constraints#new
- ActionDispatch::Routing::Mapper::Resources::SingletonResource#new
- ActionDispatch::Routing::Mapper::Resources::Resource#new
- ActionDispatch::Routing::RouteSet::Generator#new
- ActionDispatch::Routing::RouteSet::NamedRouteCollection#new
- ActionDispatch::Routing::RouteSet::Dispatcher#new
- ActionDispatch::Routing::RouteSet#new
- ActiveModel::Validator#new
- ActiveModel::Name#new
- ActiveModel::Errors#new
- ActiveModel::EachValidator#new
- ActiveModel::BlockValidator#new
- ActiveModel::AttributeMethods::ClassMethods::AttributeMethodMatcher#new
- ActiveModel::Serializers::Xml::Serializer::Attribute#new
- ActiveModel::Serializers::Xml::Serializer#new
- ActiveModel::Validations::LengthValidator#new
- ActiveModel::Validations::AcceptanceValidator#new
- ActiveRecord::XmlSerializer#new
- ActiveRecord::WrappedDatabaseException#new
- ActiveRecord::Relation#new
- ActiveRecord::Relation#new
- ActiveRecord::DeleteRestrictionError#new
- ActiveRecord::Reflection::AssociationReflection#new
- ActiveRecord::Validations::UniquenessValidator#new
- ActiveResource::Schema#new
- ActiveSupport::InheritableOptions#new
- ActiveSupport::HashWithIndifferentAccess#new
- ActiveSupport::Notifications::Fanout::Subscriber#new
- ActiveSupport::Notifications::Fanout#new
- ActiveSupport::Notifications::Event#new
- ActiveSupport::Notifications::Instrumenter#new
- ActiveSupport::JSON::Encoding::Encoder#new
- ActiveSupport::Dependencies::WatchStack#new
- ActiveSupport::Callbacks::CallbackChain#new
- ActiveSupport::Testing::RemoteError#new
- ActiveSupport::Testing::ProxyTestResult#new
- Rails::Railtie::Configuration#new
- Rails::Engine::Configuration#new
- Rails::DBConsole#new
- Rails::Application::Configuration#new
- Rails::Console#new
- Rails::Server#new
- Rails::Paths::Root#new
- Rails::Paths::Path#new
- Rails::Initializable::Initializer#new
- Rails::Generators::AppGenerator#new
- Rails::Generators::NamedBase#new
- Rails::Generators::ActiveModel#new
- Rails::Generators::GeneratedAttribute#new
- Rails::Generators::ResourceHelpers#new
- Rails::Configuration::Generators#new
- Rails::Configuration::MiddlewareStackProxy#new
- Rails::ActionMethods#new
- ActionView::WrongEncodingError#new
- ActionView::FixtureResolver#new
- ActionView::OutputBuffer#new
- ActionDispatch::BestStandardsSupport#new
- ActionDispatch::Http::ParameterFilter#new
- ActionDispatch::Routing::Mapper::Resources#new
- ActiveRecord::LogSubscriber#new
- ActiveRecord::SessionStore::Session#new
- ActiveSupport::LogSubscriber::TestHelper::MockLogger#new
- ActiveSupport::FileUpdateChecker#new
- ActiveSupport::Multibyte::Unicode::UnicodeDatabase#new
- ActiveSupport::Cache::Entry#new
- ActiveSupport::Cache::Strategy::LocalCache::LocalStore#new
- ActiveSupport::Deprecation::DeprecationProxy#new
- ActionDispatch::Http::UploadedFile#new
- ActionView::TestCase::Behavior::ClassMethods#new
- ActiveSupport::Gzip::Stream#new
- ActiveSupport::Multibyte::Unicode::DatabaseGenerator#new
- ActiveSupport::Testing::Performance::Metrics::Base#new
- ActiveSupport::Testing::Performance::Metrics::CpuTime#new
- ActiveSupport::Testing::Performance::Performer#new
- ActiveSupport::Testing::Performance::Profiler#new
- ActionDispatch::FileHandler#new
- ActionDispatch::RailsEntityStore#new
- ActionDispatch::RailsMetaStore#new
- ActionDispatch::Reloader#new
- ActionDispatch::Response#new
- ActionDispatch::Routing::Mapper#new
- ActionDispatch::Routing::RoutesProxy#new
- ActionView::AbstractRenderer#new
- ActionView::AssetPaths#new
- ActionView::Helpers::AssetTagHelper::AssetIncludeTag#new
- ActionView::OutputFlow#new
- ActionView::PartialRenderer#new
- ActionView::PathResolver#new
- ActionView::Renderer#new
- ActionView::Resolver::Path#new
- ActionView::StreamingBuffer#new
- ActionView::StreamingFlow#new
- ActionView::StreamingTemplateRenderer::Body#new
- ActiveModel::ObserverArray#new
- ActiveRecord::Associations::AliasTracker#new
- ActiveRecord::Associations::Association#new
- ActiveRecord::Associations::AssociationScope#new
- ActiveRecord::Associations::Builder::Association#new
- ActiveRecord::Associations::Builder::CollectionAssociation#new
- ActiveRecord::Associations::CollectionAssociation#new
- ActiveRecord::Associations::CollectionProxy#new
- ActiveRecord::Associations::JoinDependency#new
- ActiveRecord::Associations::JoinDependency::JoinAssociation#new
- ActiveRecord::Associations::JoinDependency::JoinPart#new
- ActiveRecord::Associations::Preloader#new
- ActiveRecord::Associations::Preloader::Association#new
- ActiveRecord::Associations::Preloader::HasAndBelongsToMany#new
- ActiveRecord::ConnectionAdapters::ConnectionManagement::Proxy#new
- ActiveRecord::ConnectionAdapters::Mysql2Adapter#new
- ActiveRecord::Fixture#new
- ActiveRecord::Fixtures#new
- ActiveRecord::HasManyThroughAssociationPolymorphicSourceError#new
- ActiveRecord::HasManyThroughAssociationPolymorphicThroughError#new
- ActiveRecord::HasManyThroughNestedAssociationsAreReadonly#new
- ActiveRecord::HasOneThroughCantAssociateThroughCollection#new
- ActiveRecord::IdentityMap::Middleware#new
- ActiveRecord::IdentityMap::Middleware::Body#new
- ActiveRecord::Migration#new
- ActiveRecord::Migration::CommandRecorder#new
- ActiveRecord::MigrationProxy#new
- ActiveRecord::QueryCache::BodyProxy#new
- ActiveRecord::Result#new
- ActiveSupport::Cache::Strategy::LocalCache::Middleware#new
- ActiveSupport::Cache::Strategy::LocalCache::Middleware#new
- ActiveSupport::Dependencies::ClassCache#new
- ActiveSupport::FileWatcher#new
- ActiveSupport::FileWatcher::Backend#new
- ActiveSupport::SafeBuffer#new
- ActiveSupport::SafeBuffer::SafeConcatError#new
- ActiveSupport::Testing::Performance::Benchmarker#new
- ArJdbcMySQL::Error#new
- Build#new
- Logger#new
- Rails::Application::RoutesReloader#new
- Rails::Engine::Railties#new
- Rails::Generators::AppBase#new
- Rails::Generators::PluginNewGenerator#new
- Sprockets::LazyCompressor#new
- ActionDispatch::Routing::UrlFor#new
- ActionDispatch::Session::Compatibility#new
- ActionDispatch::BodyProxy#new
- ActionDispatch::DebugExceptions#new
- ActionDispatch::ExceptionWrapper#new
- ActionDispatch::PublicExceptions#new
- ActionDispatch::RemoteIp::GetIp#new
- ActionDispatch::RequestId#new
- ActionDispatch::Routing::Redirect#new
- ActionDispatch::Session::CacheStore#new
- ActiveModel::MassAssignmentSecurity::LoggerSanitizer#new
- ActiveModel::MassAssignmentSecurity::Sanitizer#new
- ActiveRecord::Base::ConnectionSpecification::Resolver#new
- ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter#new
- ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::Column#new
- ActiveRecord::ConnectionAdapters::MysqlAdapter::StatementPool#new
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool#new
- ActiveRecord::ConnectionAdapters::SQLiteAdapter::StatementPool#new
- ActiveRecord::ConnectionAdapters::SchemaCache#new
- ActiveRecord::ConnectionAdapters::StatementPool#new
- ActiveRecord::Fixtures::File#new
- ActiveRecord::StaleObjectError#new
- ActiveRecord::UnknownPrimaryKey#new
- ActiveSupport::Cache::NullStore#new
- ActiveSupport::TaggedLogging#new
- PostsController#new
- Rails::Application#new
- Rails::Application::RouteInspector#new
- Rails::Commands::Info#new
- Rails::Commands::Install#new
- Rails::Commands::Plugin#new
- Rails::Commands::Remove#new
- Runner#new
- Sprockets::Bootstrap#new
- Sprockets::StaticCompiler#new
- ActionController::DataStreaming::FileBody#new
- Hash::DisallowedType#new
new(key = nil, options = {})
public
No documentation
This method has no description. You can help the Ruby on Rails community by adding new notes.
Hide source
# File actionpack/lib/action_controller/routing/segments.rb, line 312 def initialize(key = nil, options = {}) super(:format, {:optional => true}.merge(options)) end


