method
new
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: Object
- 1.0.0
- 1.1.6
- 1.2.6
- 2.0.3
- 2.1.0
- 2.2.1
- 2.3.8
- 3.0.0
- 3.0.9 (0)
- 3.1.0
- 3.2.1
- 3.2.8
- 3.2.13
- 4.0.2
- 4.1.8
- 4.2.1
- 4.2.7
- 4.2.9
- 5.0.0.1
- 5.1.7
- 5.2.3
- 6.0.0
- 6.1.3.1
- 6.1.7.7
- 7.0.0
- 7.1.3.2
- 7.1.3.4
- What's this?
Related methods
- Class methods (1)
- lookup_missing_generator (<= v2.3.8)
- Instance methods (58)
- ` (<= v5.2.3)
- acts_like?
- app (<= v3.1.0)
- as_json
- blank?
- bundler? (<= v3.2.13)
- class_eval (<= v2.3.8)
- controller (<= v3.1.0)
- copy_instance_variables_from (<= v3.0.9)
- create (<= v3.0.9)
- create_fixtures (<= v5.1.7)
- deep_dup
- destroy (<= v3.0.9)
- duplicable?
- edit (<= v3.0.9)
- extended_by (<= v2.3.8)
- extend_with_included_module... (<= v2.3.8)
- helper (<= v3.1.0)
- html_safe?
- in?
- index (<= v3.0.9)
- instance_exec (<= v2.3.8)
- instance_values
- instance_variable_defined? (<= v2.3.8)
- instance_variable_names
- itself (<= v4.2.9)
- load (<= v2.1.0)
- metaclass (<= v2.3.8)
- new (<= v3.0.9)
- new_session (<= v3.1.0)
- options (<= v3.2.13)
- presence
- presence_in
- present?
- progress_bar
- rake (<= v3.0.9)
- reload! (<= v3.1.0)
- remove_subclasses_of (<= v2.3.8)
- require (<= v2.1.0)
- returning (<= v3.0.9)
- root_dir (<= v3.0.9)
- run_all! (<= v3.2.13)
- show (<= v3.0.9)
- singleton_class (<= v2.3.8)
- subclasses_of (<= v2.3.8)
- tap (<= v2.3.8)
- test_homepage (<= v3.2.13)
- to_json (<= v4.0.2)
- to_json_with_active_support... (<= v4.2.9)
- to_param
- to_query
- try
- try!
- unescape (<= v6.1.7.7)
- unloadable (<= v2.1.0)
- update (<= v3.0.9)
- with
- with_options
= private
= protected
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.
These similar methods exist in v7.1.3.2:
- Mime::Type#new
- ActiveSupport::Multibyte::Chars#new
- ActiveSupport::Cache::Store#new
- ActiveRecord::MultiparameterAssignmentErrors#new
- ActiveRecord::Reflection::MacroReflection#new
- ActionView::TestCase::TestController#new
- ActiveRecord::AttributeAssignmentError#new
- ActiveSupport::TimeWithZone#new
- ActiveSupport::Cache::MemCacheStore#new
- ActiveSupport::Cache::MemoryStore#new
- ActiveSupport::Cache::FileStore#new
- ActionMailer::NonInferrableMailerError#new
- ActiveSupport::Callbacks::Callback#new
- ActiveRecord::RecordInvalid#new
- ActionView::Helpers::AtomFeedHelper::AtomFeedBuilder#new
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter#new
- CodeStatistics#new
- ActionMailer::Base#new
- ActionController::MethodNotAllowed#new
- ActionController::RoutingError#new
- ActionController::TestSession#new
- ActionController::SessionOverflowError#new
- Mime::Type::AcceptItem#new
- ActionView::Template#new
- ActionView::Helpers::FormBuilder#new
- ActionView::Helpers::TextHelper::Cycle#new
- ActiveRecord::Migrator#new
- ActiveRecord::UnknownMigrationVersionError#new
- ActiveRecord::HasManyThroughAssociationPointlessSourceTypeError#new
- ActiveRecord::DuplicateMigrationNameError#new
- ActiveRecord::IllegalMigrationNameError#new
- ActiveRecord::SchemaDumper#new
- ActiveRecord::DuplicateMigrationVersionError#new
- ActiveRecord::HasManyThroughAssociationNotFoundError#new
- ActiveRecord::EagerLoadPolymorphicError#new
- ActiveRecord::HasManyThroughSourceAssociationNotFoundError#new
- ActiveRecord::Associations::HasManyThroughAssociation#new
- ActiveRecord::ConnectionAdapters::AbstractAdapter#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::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
- ActiveSupport::MessageVerifier#new
- ActiveSupport::MessageEncryptor#new
- ActiveSupport::BacktraceCleaner#new
- Rails::BacktraceCleaner#new
- ActionController::TestRequest#new
- ActiveRecord::InverseOfAssociationNotFoundError#new
- ActionMailer::Collector#new
- ActionController::Metal#new
- ActionController::MimeResponds::Collector#new
- ActionView::LookupContext#new
- ActionView::Template::Text#new
- ActionView::Template::Error#new
- ActionView::FileSystemResolver#new
- ActionView::Helpers::NumberHelper::InvalidNumberError#new
- AbstractController::DoubleRenderError#new
- ActionDispatch::MiddlewareStack::Middleware#new
- ActionDispatch::MiddlewareStack#new
- ActionDispatch::ShowExceptions#new
- ActionDispatch::Flash::FlashHash#new
- ActionDispatch::Flash::FlashNow#new
- ActionDispatch::Flash#new
- ActionDispatch::RemoteIp#new
- ActionDispatch::Static#new
- ActionDispatch::Callbacks#new
- ActionDispatch::Cookies::CookieJar#new
- ActionDispatch::Cookies#new
- ActionDispatch::Request#new
- ActionDispatch::Integration::Session#new
- ActionDispatch::Session::MemCacheStore#new
- ActionDispatch::Session::CookieStore#new
- ActionDispatch::Http::Headers#new
- ActionDispatch::Routing::Mapper::Mapping#new
- ActionDispatch::Routing::Mapper::Constraints#new
- ActiveModel::Validator#new
- ActiveModel::Name#new
- ActiveModel::Errors#new
- ActiveModel::EachValidator#new
- ActiveModel::BlockValidator#new
- ActiveModel::Validations::LengthValidator#new
- ActiveModel::Validations::AcceptanceValidator#new
- ActiveRecord::Relation#new
- ActiveRecord::Relation#new
- ActiveRecord::DeleteRestrictionError#new
- ActiveRecord::PredicateBuilder#new
- ActiveRecord::Reflection::AssociationReflection#new
- ActiveRecord::Validations::UniquenessValidator#new
- ActiveSupport::InheritableOptions#new
- ActiveSupport::HashWithIndifferentAccess#new
- ActiveSupport::Notifications::Fanout#new
- ActiveSupport::Notifications::Event#new
- ActiveSupport::Notifications::Instrumenter#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::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
- ActiveSupport::LogSubscriber::TestHelper::MockLogger#new
- ActiveSupport::FileUpdateChecker#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
- ActionDispatch::FileHandler#new
- ActionDispatch::Response#new
- ActionDispatch::Routing::RoutesProxy#new
- ActionView::AbstractRenderer#new
- ActionView::OutputFlow#new
- ActionView::PartialRenderer#new
- ActionView::Renderer#new
- ActionView::StreamingBuffer#new
- ActionView::StreamingFlow#new
- ActionView::StreamingTemplateRenderer::Body#new
- ActiveRecord::Associations::AliasTracker#new
- ActiveRecord::Associations::Association#new
- ActiveRecord::Associations::AssociationScope#new
- ActiveRecord::Associations::CollectionProxy#new
- ActiveRecord::Associations::JoinDependency#new
- ActiveRecord::Associations::JoinDependency::JoinAssociation#new
- ActiveRecord::Associations::JoinDependency::JoinPart#new
- ActiveRecord::Associations::Preloader#new
- ActiveRecord::ConnectionAdapters::Mysql2Adapter#new
- ActiveRecord::Fixture#new
- ActiveRecord::HasManyThroughAssociationPolymorphicSourceError#new
- ActiveRecord::HasManyThroughAssociationPolymorphicThroughError#new
- ActiveRecord::HasOneThroughCantAssociateThroughCollection#new
- ActiveRecord::Migration#new
- ActiveRecord::Migration::CommandRecorder#new
- ActiveRecord::Result#new
- ActiveSupport::Cache::Strategy::LocalCache::Middleware#new
- ActiveSupport::Cache::Strategy::LocalCache::Middleware#new
- ActiveSupport::SafeBuffer#new
- ActiveSupport::SafeBuffer::SafeConcatError#new
- Rails::Application::RoutesReloader#new
- Rails::Engine::Railties#new
- Rails::Generators::AppBase#new
- ActionDispatch::Routing::UrlFor#new
- ActionDispatch::Session::Compatibility#new
- ActionDispatch::DebugExceptions#new
- ActionDispatch::ExceptionWrapper#new
- ActionDispatch::PublicExceptions#new
- ActionDispatch::RequestId#new
- ActionDispatch::Routing::Redirect#new
- ActionDispatch::Session::CacheStore#new
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::StatementPool#new
- ActiveRecord::ConnectionAdapters::SchemaCache#new
- ActiveRecord::ConnectionAdapters::StatementPool#new
- ActiveRecord::StaleObjectError#new
- ActiveRecord::UnknownPrimaryKey#new
- ActiveSupport::TaggedLogging#new
- Rails::Application#new
- ActionController::BadRequest#new
- ActionController::Live::Buffer#new
- ActionController::ParameterMissing#new
- ActionController::Parameters#new
- ActionController::ParamsWrapper::Options#new
- ActionController::RequestForgeryProtection::ProtectionMethods::Exception#new
- ActionController::RequestForgeryProtection::ProtectionMethods::NullSession#new
- ActionController::RequestForgeryProtection::ProtectionMethods::NullSession::NullSessionHash#new
- ActionController::RequestForgeryProtection::ProtectionMethods::ResetSession#new
- ActionController::UnpermittedParameters#new
- ActionDispatch::Journey::GTG::Builder#new
- ActionDispatch::Journey::GTG::MatchData#new
- ActionDispatch::Journey::GTG::Simulator#new
- ActionDispatch::Journey::GTG::TransitionTable#new
- ActionDispatch::Journey::Nodes::Binary#new
- ActionDispatch::Journey::Nodes::Dummy#new
- ActionDispatch::Journey::Nodes::Node#new
- ActionDispatch::Journey::Nodes::Or#new
- ActionDispatch::Journey::Nodes::Symbol#new
- ActionDispatch::Journey::Path::Pattern#new
- ActionDispatch::Journey::Path::Pattern::AnchoredRegexp#new
- ActionDispatch::Journey::Path::Pattern::MatchData#new
- ActionDispatch::Journey::Router#new
- ActionDispatch::Journey::Routes#new
- ActionDispatch::Journey::Scanner#new
- ActionDispatch::Request::Session#new
- ActionDispatch::Request::Session::Options#new
- ActionDispatch::Response::Buffer#new
- ActionDispatch::Routing::RoutesInspector#new
- ActionDispatch::Session::SessionRestoreError#new
- ActionView::DependencyTracker::ERBTracker#new
- ActionView::Helpers::Tags::Base#new
- ActionView::Helpers::Tags::CheckBox#new
- ActionView::Helpers::Tags::CollectionHelpers::Builder#new
- ActionView::Helpers::Tags::CollectionSelect#new
- ActionView::Helpers::Tags::DateSelect#new
- ActionView::Helpers::Tags::GroupedCollectionSelect#new
- ActionView::Helpers::Tags::Label#new
- ActionView::Helpers::Tags::RadioButton#new
- ActionView::Helpers::Tags::Select#new
- ActionView::Helpers::Tags::TimeZoneSelect#new
- ActionView::TestCase::Behavior::RenderedViewsCollection#new
- ActiveRecord::AssociationRelation#new
- ActiveRecord::Associations::CollectionProxy#new
- ActiveRecord::Coders::YAMLColumn#new
- ActiveRecord::ConnectionAdapters::ConnectionPool::Queue#new
- ActiveRecord::ConnectionAdapters::ConnectionPool::Reaper#new
- ActiveRecord::ConnectionAdapters::SQLite3Adapter#new
- ActiveRecord::ConnectionAdapters::SavepointTransaction#new
- ActiveRecord::ConnectionAdapters::Transaction#new
- ActiveRecord::ConnectionAdapters::TransactionState#new
- ActiveRecord::DynamicMatchers::Method#new
- ActiveRecord::ExplainRegistry#new
- ActiveRecord::FixtureSet#new
- ActiveRecord::FixtureSet::File#new
- ActiveRecord::Migration::CheckPending#new
- ActiveRecord::PendingMigrationError#new
- ActiveRecord::QueryMethods::WhereChain#new
- ActiveRecord::Relation::HashMerger#new
- ActiveRecord::Relation::Merger#new
- ActiveRecord::Scoping::ScopeRegistry#new
- ActiveRecord::StatementCache#new
- ActiveRecord::StatementInvalid#new
- ActiveRecord::Store::IndifferentCoder#new
- ActiveRecord::Tasks::MySQLDatabaseTasks#new
- ActiveRecord::Tasks::PostgreSQLDatabaseTasks#new
- ActiveRecord::Tasks::SQLiteDatabaseTasks#new
- ActiveSupport::CachingKeyGenerator#new
- ActiveSupport::Deprecation#new
- ActiveSupport::KeyGenerator#new
- ActiveSupport::Logger#new
- ActiveSupport::Notifications::Fanout::Subscribers::Evented#new
- ActiveSupport::Subscriber#new
- ActiveSupport::XMLConverter#new
- ActiveSupport::XMLConverter::DisallowedType#new
- CodeStatisticsCalculator#new
- Rails::API::Task#new
- ActionDispatch::Http::FilterParameters#new
- ActionDispatch::Http::URL#new
- ActionView::Helpers::Tags::CollectionHelpers#new
- ActiveRecord::ConnectionAdapters::DatabaseStatements#new
- ActiveRecord::Core#new
- ActiveRecord::Inheritance::ClassMethods#new
- ActiveSupport::Notifications::Fanout::Subscribers#new
- Rails::Generators::Actions#new
- ActionController::Live::SSE#new
- ActionController::MimeResponds::Collector::VariantCollector#new
- ActionController::MissingRenderer#new
- ActionView::I18nProxy#new
- ActionView::LogSubscriber#new
- ActionView::Template::HTML#new
- ActiveModel::Validations::ConfirmationValidator#new
- ActiveRecord::AssociationNotFoundError#new
- ActiveRecord::Associations::Builder::HasAndBelongsToMany#new
- ActiveRecord::Associations::JoinDependency::Aliases#new
- ActiveRecord::MigrationError#new
- ActiveRecord::NoDatabaseError#new
- ActiveSupport::Callbacks::Conditionals::Value#new
- ActiveSupport::Concern::MultipleIncludedBlocks#new
- ActiveSupport::JSON::Encoding::JSONGemEncoder#new
- ActiveSupport::NumberHelper::NumberConverter#new
- ActiveSupport::Testing::SimpleStubs#new
- Rails::Application::DefaultMiddlewareStack#new
- Rails::Generators::ARGVScrubber#new
- Rails::Generators::AppBase::GemfileEntry#new
- Rails::Generators::PluginGenerator#new
- Rails::Railtie#new
- ActionView::Layouts#new
- ActiveRecord::ConnectionAdapters::QueryCache#new
- ActionDispatch::Response::RackBody#new
- ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder#new
- ActionMailer::MessageDelivery#new
- ActionView::Helpers::Tags::Label::LabelBuilder#new
- ActionView::Helpers::Tags::Translator#new
- ActionView::PartialIteration#new
- ActiveJob::ConfiguredJob#new
- ActiveJob::DeserializationError#new
- ActiveJob::QueueAdapters::DelayedJobAdapter::JobWrapper#new
- ActiveRecord::ConnectionAdapters::NullTransaction#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::Name#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Bit::Data#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Range#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::SpecializedString#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::TypeMapInitializer#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Vector#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Xml::Data#new
- ActiveRecord::ConnectionAdapters::TransactionManager#new
- ActiveRecord::HasOneAssociationPolymorphicThroughError#new
- ActiveRecord::RecordNotDestroyed#new
- ActiveRecord::RecordNotSaved#new
- ActiveRecord::StatementCache::BindMap#new
- ActiveRecord::StatementCache::PartialQuery#new
- ActiveRecord::StatementCache::Query#new
- ActiveRecord::Type::Serialized#new
- ActiveRecord::Type::TypeMap#new
- CodeTools::Profiler#new
- Rails::Application::Configuration::Custom#new
- ActionView::Helpers::Tags::Placeholderable#new
- ActiveJob::Core#new
- Rails::Generators::ModelHelpers#new
- ActionMailer::InlinePreviewInterceptor#new
- ActiveRecord::ConnectionAdapters::AbstractAdapter::Version#new
- ActionView::Base#new
- ActionCable::Channel::Base#new
- ActionCable::Connection::Base#new
- ActionCable::Connection::ClientSocket#new
- ActionCable::Connection::MessageBuffer#new
- ActionCable::Connection::Stream#new
- ActionCable::Connection::StreamEventLoop#new
- ActionCable::Connection::Subscriptions#new
- ActionCable::Connection::TaggedLoggerProxy#new
- ActionCable::Connection::WebSocket#new
- ActionCable::RemoteConnections#new
- ActionCable::RemoteConnections::RemoteConnection#new
- ActionCable::Server::Base#new
- ActionCable::Server::Broadcasting::Broadcaster#new
- ActionCable::Server::Configuration#new
- ActionCable::Server::Worker#new
- ActionCable::SubscriptionAdapter::Async::AsyncSubscriberMap#new
- ActionCable::SubscriptionAdapter::Base#new
- ActionCable::SubscriptionAdapter::Inline#new
- ActionCable::SubscriptionAdapter::PostgreSQL#new
- ActionCable::SubscriptionAdapter::PostgreSQL::Listener#new
- ActionCable::SubscriptionAdapter::Redis#new
- ActionCable::SubscriptionAdapter::Redis::Listener#new
- ActionCable::SubscriptionAdapter::SubscriberMap#new
- ActionController::Renderer#new
- ActionController::Renderer#new
- ActionDispatch::AssertionResponse#new
- ActionDispatch::Cookies::AbstractCookieJar#new
- ActionDispatch::Executor#new
- ActionDispatch::Response::FileBody#new
- ActionView::Digestor::Node#new
- ActiveJob::QueueAdapters::AsyncAdapter#new
- ActiveJob::QueueAdapters::AsyncAdapter::JobWrapper#new
- ActiveJob::QueueAdapters::AsyncAdapter::Scheduler#new
- ActiveJob::QueueAdapters::SneakersAdapter#new
- ActiveModel::Type::Binary::Data#new
- ActiveModel::Type::Helpers::AcceptsMultiparameterTime#new
- ActiveModel::Type::Integer#new
- ActiveModel::Type::Value#new
- ActiveModel::UnknownAttributeError#new
- ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes#new
- ActiveRecord::Associations::AssociationScope::ReflectionProxy#new
- ActiveRecord::Batches::BatchEnumerator#new
- ActiveRecord::ConcurrentMigrationError#new
- ActiveRecord::ConnectionAdapters::ConnectionPool::BiasableQueue::BiasedConditionVariable#new
- ActiveRecord::ConnectionAdapters::MySQL::TypeMetadata#new
- ActiveRecord::ConnectionAdapters::ReferenceDefinition#new
- ActiveRecord::Enum::EnumType#new
- ActiveRecord::EnvironmentMismatchError#new
- ActiveRecord::NoEnvironmentInSchemaError#new
- ActiveRecord::PredicateBuilder::ArrayHandler#new
- ActiveRecord::PredicateBuilder::AssociationQueryValue#new
- ActiveRecord::PredicateBuilder::BasicObjectHandler#new
- ActiveRecord::PredicateBuilder::PolymorphicArrayValue#new
- ActiveRecord::PredicateBuilder::RangeHandler#new
- ActiveRecord::ProtectedEnvironmentError#new
- ActiveRecord::RecordNotFound#new
- ActiveRecord::Relation::FromClause#new
- ActiveRecord::Relation::WhereClause#new
- ActiveRecord::TableMetadata#new
- ActiveRecord::ThroughCantAssociateThroughHasOneOrManyReflection#new
- ActiveRecord::ThroughNestedAssociationsAreReadonly#new
- ActiveRecord::TypeCaster::Connection#new
- ActiveRecord::TypeCaster::Map#new
- ActiveSupport::Concurrency::ShareLock#new
- ActiveSupport::Dependencies::Interlock#new
- ActiveSupport::Duration::ISO8601Parser#new
- ActiveSupport::Duration::ISO8601Serializer#new
- ActiveSupport::EventedFileUpdateChecker#new
- ActiveSupport::Inflector::Inflections::Uncountables#new
- ActiveSupport::Reloader#new
- Mime::AllType#new
- Mime::Mimes#new
- ActionController::UnfilteredParameters#new
- ActionDispatch::DebugLocks#new
- ActionDispatch::Http::Parameters::ParseError#new
- ActionDispatch::RequestEncoder#new
- ActionDispatch::SystemTestCase#new
- ActionDispatch::SystemTesting::Driver#new
- ActionMailer::Parameterized::Mailer#new
- ActionMailer::Parameterized::MessageDelivery#new
- ActionView::Helpers::TagHelper::TagBuilder#new
- ActionView::Template::Handlers::ERB::Erubi#new
- ActiveRecord::AmbiguousSourceReflectionForThroughAssociation#new
- ActiveRecord::HasManyThroughOrderError#new
- ActiveRecord::MismatchedForeignKey#new
- ActiveSupport::Callbacks::Callback::CallbackChain#new
- ActiveSupport::Callbacks::Callback::CallbackSequence#new
- ActiveSupport::Duration::Scalar#new
- ActiveSupport::NumberHelper::RoundingHelper#new
- Rails::Command::ConsoleCommand#new
- Rails::Command::ServerCommand#new
- Rails::Secrets::MissingKeyError#new
- Rails::TestUnit::CompositeFilter#new
- Rails::TestUnit::Filter#new
- ActionDispatch::Integration::Runner#new
- ActiveRecord::ConnectionAdapters::QueryCache::ConnectionPoolConfiguration#new
- ActionDispatch::ContentSecurityPolicy#new
- ActionDispatch::ContentSecurityPolicy::Middleware#new
- ActionDispatch::Cookies::EncryptedKeyRotatingCookieJar#new
- ActionDispatch::Cookies::SignedKeyRotatingCookieJar#new
- ActionDispatch::SystemTesting::Browser#new
- ActionMailer::Preview#new
- ActiveModel::Attribute#new
- ActiveModel::Attribute::Null#new
- ActiveModel::Attribute::Uninitialized#new
- ActiveModel::Attribute::UserProvidedDefault#new
- ActiveModel::AttributeMutationTracker#new
- ActiveModel::AttributeSet#new
- ActiveModel::AttributeSet::Builder#new
- ActiveModel::AttributeSet::YAMLEncoder#new
- ActiveModel::LazyAttributeHash#new
- ActiveRecord::Associations::JoinDependency::JoinBase#new
- ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError#new
- ActiveRecord::ConnectionAdapters::IndexDefinition#new
- ActiveRecord::MigrationContext#new
- ActiveStorage::Analyzer#new
- ActiveStorage::Attached#new
- ActiveStorage::Filename#new
- ActiveStorage::Preview#new
- ActiveStorage::Previewer#new
- ActiveStorage::Service::AzureStorageService#new
- ActiveStorage::Service::Configurator#new
- ActiveStorage::Service::DiskService#new
- ActiveStorage::Service::GCSService#new
- ActiveStorage::Service::MirrorService#new
- ActiveStorage::Service::S3Service#new
- ActiveStorage::Variant#new
- ActiveStorage::Variation#new
- ActiveSupport::Cache::RedisCacheStore#new
- ActiveSupport::CurrentAttributes#new
- ActiveSupport::EncryptedConfiguration#new
- ActiveSupport::EncryptedFile#new
- ActiveSupport::EncryptedFile::MissingContentError#new
- ActiveSupport::EncryptedFile::MissingKeyError#new
- ActiveSupport::Messages::RotationConfiguration#new
- ActiveModel::Attributes#new
- ActiveSupport::Messages::Rotator#new
- ActionCable::Channel::ConnectionStub#new
- ActionCable::Channel::NonInferrableChannelError#new
- ActionCable::Connection::NonInferrableConnectionError#new
- ActionController::RespondToMismatchError#new
- ActionDispatch::ActionableExceptions#new
- ActionDispatch::DebugView#new
- ActionDispatch::HostAuthorization#new
- ActionDispatch::HostAuthorization::Permissions#new
- ActionDispatch::Http::ContentDisposition#new
- ActionDispatch::MiddlewareStack::InstrumentationProxy#new
- ActionDispatch::Routing::ConsoleFormatter::Base#new
- ActionMailbox::Base#new
- ActionMailbox::InboundEmail::Incineratable::Incineration#new
- ActionMailbox::Relayer#new
- ActionMailbox::Router#new
- ActionMailbox::Router::Route#new
- ActionText::Attachables::RemoteImage#new
- ActionText::Attachment#new
- ActionText::AttachmentGallery#new
- ActionText::Content#new
- ActionText::Fragment#new
- ActionText::TrixAttachment#new
- ActionView::AbstractRenderer::RenderedCollection#new
- ActionView::AbstractRenderer::RenderedCollection::EmptyCollection#new
- ActionView::AbstractRenderer::RenderedTemplate#new
- ActionView::SyntaxErrorInTemplate#new
- ActionView::Template::RawFile#new
- ActionView::Template::Sources::File#new
- ActionView::UnboundTemplate#new
- ActiveModel::ForcedMutationTracker#new
- ActiveModel::SecurePassword::InstanceMethodsOnActivation#new
- ActiveRecord::ConnectionAdapters::ColumnMethods::AlterTable#new
- ActiveRecord::ConnectionAdapters::ColumnMethods::Table#new
- ActiveRecord::ConnectionAdapters::ColumnMethods::TableDefinition#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::Column#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods::AlterTable#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::ColumnMethods::TableDefinition#new
- ActiveRecord::DatabaseConfigurations#new
- ActiveRecord::DatabaseConfigurations::DatabaseConfig#new
- ActiveRecord::DatabaseConfigurations::HashConfig#new
- ActiveRecord::DatabaseConfigurations::UrlConfig#new
- ActiveRecord::FixtureSet::ModelMetadata#new
- ActiveRecord::FixtureSet::TableRow::ReflectionProxy#new
- ActiveRecord::FixtureSet::TableRows#new
- ActiveRecord::InsertAll#new
- ActiveRecord::InsertAll::Builder#new
- ActiveRecord::Middleware::DatabaseSelector#new
- ActiveRecord::Middleware::DatabaseSelector::Resolver#new
- ActiveRecord::Middleware::DatabaseSelector::Resolver::Session#new
- ActiveRecord::StatementCache::PartialQueryCollector#new
- ActiveStorage::Attached::Changes::CreateMany#new
- ActiveStorage::Attached::Changes::CreateOne#new
- ActiveStorage::Attached::Changes::DeleteMany#new
- ActiveStorage::Attached::Changes::DeleteOne#new
- ActiveStorage::Downloader#new
- ActiveStorage::Transformers::Transformer#new
- ActiveSupport::DescendantsTracker::DescendantsArray#new
- ActiveSupport::Notifications::Fanout::Subscribers::Matcher#new
- ActiveSupport::ParameterFilter#new
- ActiveSupport::Testing::Parallelization#new
- ActiveSupport::Testing::Parallelization::Server#new
- Arel::Collectors::Bind#new
- Arel::Collectors::Composite#new
- Arel::Collectors::PlainString#new
- Arel::Collectors::SQLString#new
- Arel::Collectors::SubstituteBinds#new
- Arel::DeleteManager#new
- Arel::InsertManager#new
- Arel::Nodes::Addition#new
- Arel::Nodes::And#new
- Arel::Nodes::Binary#new
- Arel::Nodes::BindParam#new
- Arel::Nodes::BitwiseAnd#new
- Arel::Nodes::BitwiseNot#new
- Arel::Nodes::BitwiseOr#new
- Arel::Nodes::BitwiseShiftLeft#new
- Arel::Nodes::BitwiseShiftRight#new
- Arel::Nodes::BitwiseXor#new
- Arel::Nodes::Case#new
- Arel::Nodes::Casted#new
- Arel::Nodes::Comment#new
- Arel::Nodes::Concat#new
- Arel::Nodes::Count#new
- Arel::Nodes::DeleteStatement#new
- Arel::Nodes::Division#new
- Arel::Nodes::Extract#new
- Arel::Nodes::Following#new
- Arel::Nodes::Function#new
- Arel::Nodes::InfixOperation#new
- Arel::Nodes::InsertStatement#new
- Arel::Nodes::JoinSource#new
- Arel::Nodes::Matches#new
- Arel::Nodes::Multiplication#new
- Arel::Nodes::NamedFunction#new
- Arel::Nodes::NamedWindow#new
- Arel::Nodes::Over#new
- Arel::Nodes::Preceding#new
- Arel::Nodes::Range#new
- Arel::Nodes::Regexp#new
- Arel::Nodes::Rows#new
- Arel::Nodes::SelectCore#new
- Arel::Nodes::SelectStatement#new
- Arel::Nodes::StringJoin#new
- Arel::Nodes::Subtraction#new
- Arel::Nodes::Unary#new
- Arel::Nodes::UnaryOperation#new
- Arel::Nodes::UpdateStatement#new
- Arel::Nodes::Window#new
- Arel::SelectManager#new
- Arel::Table#new
- Arel::UpdateManager#new
- Arel::Visitors::Dot#new
- Arel::Visitors::Dot::Node#new
- Arel::Visitors::ToSql#new
- Arel::Visitors::UnsupportedVisitError#new
- Arel::Visitors::Visitor#new
- Rails::Generators::Db::System::ChangeGenerator#new
- Rails::SourceAnnotationExtractor#new
- ActionCable::Connection::TestConnection#new
- ActionView::Rendering#new
- Rails::Generators::Database#new
- ActionController::UrlGenerationError#new
- AbstractController::ActionNotFound#new
- ActionDispatch::PermissionsPolicy#new
- ActionDispatch::PermissionsPolicy::Middleware#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping::Resources::Resource#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping::Resources::SingletonResource#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping::Scope#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping::Scope#new
- ActionDispatch::Session::CookieStore::SessionId#new
- ActionView::CollectionRenderer::CollectionIterator#new
- ActionView::CollectionRenderer::MixedCollectionIterator#new
- ActionView::CollectionRenderer::PreloadCollectionIterator#new
- ActionView::CollectionRenderer::SameCollectionIterator#new
- ActionView::ObjectRenderer#new
- ActionView::Template::Renderable#new
- ActiveModel::Error#new
- ActiveModel::LazyAttributeSet#new
- ActiveModel::NestedError#new
- ActiveModel::Type::ImmutableString#new
- ActiveRecord::AttributeMethods::TimeZoneConversion::TimeZoneConverter#new
- ActiveRecord::ConnectionAdapters::MySQL::ColumnMethods::TableDefinition#new
- ActiveRecord::ConnectionAdapters::PoolConfig#new
- ActiveRecord::ConnectionAdapters::PoolManager#new
- ActiveRecord::ConnectionAdapters::SchemaCreation#new
- ActiveRecord::DatabaseConfigurations::ConnectionUrlResolver#new
- ActiveRecord::Enum::EnumMethods#new
- ActiveRecord::EnvironmentStorageError#new
- ActiveRecord::Locking::LockingType#new
- ActiveStorage::Service::Registry#new
- ActiveStorage::VariantWithRecord#new
- ActiveSupport::Concern::MultiplePrependBlocks#new
- ActiveSupport::ConfigurationFile#new
- ActiveSupport::EncryptedFile::InvalidKeyLengthError#new
- ActiveSupport::EnvironmentInquirer#new
- ActiveSupport::EventedFileUpdateChecker::Core#new
- ActiveSupport::SecureCompareRotator#new
- ActiveSupport::Testing::Parallelization::Worker#new
- Arel::Nodes::Contains#new
- Arel::Nodes::HomogeneousIn#new
- Arel::Nodes::Overlaps#new
- Rails::Command::Db::System::ChangeCommand#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping#new
- ActionDispatch::Routing::Mapper::Mapping::Scoping::Resources#new
- ActionView::AbstractRenderer::ObjectRendering#new
- ActiveRecord::ConnectionAdapters::Deduplicable::ClassMethods#new
- ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting::IntegerOutOf64BitRange#new
- AbstractController::Callbacks::ActionFilter#new
- AbstractController::Helpers::DeprecatedMissingHelperError#new
- ActionCable::SubscriptionAdapter::Redis::Listener::SubscribedClient#new
- ActionController::MissingExactTemplate#new
- ActionController::RequestForgeryProtection::CookieStore#new
- ActionController::Streaming::Body#new
- ActionDispatch::AssumeSSL#new
- ActionDispatch::Journey::Ast#new
- ActionDispatch::ExceptionWrapper::SourceMapLocation#new
- ActionDispatch::Journey::Nodes::Star#new
- ActionDispatch::ServerTiming#new
- ActionDispatch::ServerTiming::Subscriber#new
- ActionText::Attachables::MissingAttachable#new
- ActionView::CacheExpiry::ViewReloader#new
- ActionView::DependencyTracker::RipperTracker#new
- ActionView::Helpers::Tags::DatetimeLocalField#new
- ActionView::Helpers::Tags::TimeField#new
- ActionView::Helpers::Tags::WeekdaySelect#new
- ActionView::MissingTemplate::Results#new
- ActionView::RawOutputBuffer#new
- ActionView::RawStreamingBuffer#new
- ActionView::RenderParser#new
- ActionView::RenderParser::RipperASTParser::Node#new
- ActionView::RenderParser::RipperASTParser::RenderCallExtractor#new
- ActionView::Template::SimpleType#new
- ActionView::TemplateDetails#new
- ActionView::TemplateDetails::Requested#new
- ActionView::TemplatePath#new
- ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern#new
- ActiveModel::Type::Registry#new
- ActiveModel::Validations::ValidationError#new
- ActiveRecord::AdapterError#new
- ActiveRecord::Associations::Preloader::Batch#new
- ActiveRecord::Associations::Preloader::Branch#new
- ActiveRecord::AsynchronousQueriesTracker#new
- ActiveRecord::AsynchronousQueriesTracker::Session#new
- ActiveRecord::Calculations::ColumnAliasTracker#new
- ActiveRecord::Coders::ColumnSerializer#new
- ActiveRecord::Coders::YAMLColumn::SafeCoder#new
- ActiveRecord::CompositePrimaryKeyMismatchError#new
- ActiveRecord::ConnectionAdapters::BoundSchemaReflection#new
- ActiveRecord::ConnectionAdapters::ConnectionHandler::StringConnectionName#new
- ActiveRecord::ConnectionAdapters::RestartParentTransaction#new
- ActiveRecord::ConnectionAdapters::SQLite3::Column#new
- ActiveRecord::ConnectionAdapters::SchemaReflection#new
- ActiveRecord::ConnectionAdapters::TransactionInstrumenter#new
- ActiveRecord::ConnectionAdapters::TrilogyAdapter#new
- ActiveRecord::ConnectionNotEstablished#new
- ActiveRecord::DatabaseConnectionError#new
- ActiveRecord::DisableJoinsAssociationRelation#new
- ActiveRecord::Encryption::AutoFilteredParameters#new
- ActiveRecord::Encryption::Cipher::Aes256Gcm#new
- ActiveRecord::Encryption::Config#new
- ActiveRecord::Encryption::Context#new
- ActiveRecord::Encryption::DerivedSecretKeyProvider#new
- ActiveRecord::Encryption::DeterministicKeyProvider#new
- ActiveRecord::Encryption::EncryptedAttributeType#new
- ActiveRecord::Encryption::ExtendedDeterministicQueries::AdditionalValue#new
- ActiveRecord::Encryption::Key#new
- ActiveRecord::Encryption::KeyGenerator#new
- ActiveRecord::Encryption::KeyProvider#new
- ActiveRecord::Encryption::Message#new
- ActiveRecord::Encryption::Properties#new
- ActiveRecord::Encryption::Scheme#new
- ActiveRecord::FixtureSet::TableRow::PrimaryKeyError#new
- ActiveRecord::FutureResult#new
- ActiveRecord::FutureResult::Complete#new
- ActiveRecord::FutureResult::EventBuffer#new
- ActiveRecord::InternalMetadata#new
- ActiveRecord::InverseOfAssociationRecursiveError#new
- ActiveRecord::MessagePack::Decoder#new
- ActiveRecord::MessagePack::Encoder#new
- ActiveRecord::Middleware::ShardSelector#new
- ActiveRecord::Migration::ExecutionStrategy#new
- ActiveRecord::Normalization::NormalizedValueType#new
- ActiveRecord::Promise#new
- ActiveRecord::Promise::Complete#new
- ActiveRecord::QueryLogs::LegacyFormatter#new
- ActiveRecord::QueryLogs::SQLCommenter#new
- ActiveRecord::QueryMethods::CTEJoin#new
- ActiveRecord::Reflection::AbstractReflection#new
- ActiveRecord::Reflection::AssociationReflection::PolymorphicReflection#new
- ActiveRecord::Reflection::AssociationReflection::RuntimeReflection#new
- ActiveRecord::Relation::QueryAttribute#new
- ActiveRecord::SQLWarning#new
- ActiveRecord::SchemaMigration#new
- ActiveRecord::Scoping::DefaultScope#new
- ActiveRecord::SoleRecordExceeded#new
- ActiveRecord::Type::HashLookupTypeMap#new
- ActiveStorage::Attached::Changes::DetachMany#new
- ActiveStorage::Attached::Changes::DetachOne#new
- ActiveStorage::Attached::Changes::PurgeMany#new
- ActiveStorage::Attached::Changes::PurgeOne#new
- ActiveStorage::NamedVariant#new
- ActiveSupport::BroadcastLogger#new
- ActiveSupport::Cache::Coder#new
- ActiveSupport::Cache::Coder::LazyEntry#new
- ActiveSupport::Cache::Coder::StringDeserializer#new
- ActiveSupport::Cache::Store::WriteOptions#new
- ActiveSupport::Callbacks::Callback::CallTemplate::InstanceExec0#new
- ActiveSupport::Callbacks::Callback::CallTemplate::InstanceExec1#new
- ActiveSupport::Callbacks::Callback::CallTemplate::InstanceExec2#new
- ActiveSupport::Callbacks::Callback::CallTemplate::MethodCall#new
- ActiveSupport::Callbacks::Callback::CallTemplate::ObjectCall#new
- ActiveSupport::Callbacks::Callback::CallTemplate::ProcCall#new
- ActiveSupport::CodeGenerator#new
- ActiveSupport::CodeGenerator::MethodSet#new
- ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor#new
- ActiveSupport::Deprecation::Deprecators#new
- ActiveSupport::DescendantsTracker::WeakSet#new
- ActiveSupport::EncryptedConfiguration::InvalidContentError#new
- ActiveSupport::ErrorReporter#new
- ActiveSupport::ErrorReporter::TestHelper::ErrorSubscriber#new
- ActiveSupport::LogSubscriber#new
- ActiveSupport::Messages::Codec#new
- ActiveSupport::Messages::RotationCoordinator#new
- ActiveSupport::Notifications::Fanout::BaseGroup#new
- ActiveSupport::Notifications::Fanout::Handle#new
- ActiveSupport::Notifications::InstrumentationSubscriberError#new
- ActiveSupport::Notifications::Instrumenter::LegacyHandle#new
- ActiveSupport::Notifications::Instrumenter::LegacyHandle::Wrapper#new
- ActiveSupport::SyntaxErrorProxy::BacktraceLocationProxy#new
- ActiveSupport::TaggedLogging::TagStack#new
- ActiveSupport::Testing::ParallelizeExecutor#new
- Arel::BindError#new
- Arel::Nodes::BoundSqlLiteral#new
- Arel::Nodes::Cte#new
- Arel::Nodes::Fragments#new
- DummyConfig#new
- RailInspector::Changelog#new
- RailInspector::Changelog::Entry#new
- RailInspector::Changelog::Formatter#new
- RailInspector::Changelog::Offense#new
- RailInspector::Changelog::Parser#new
- RailInspector::Changelog::Runner#new
- RailInspector::Configuring#new
- RailInspector::Configuring::CachedParser#new
- RailInspector::Configuring::Check::FrameworkDefaults#new
- RailInspector::Configuring::Check::FrameworkDefaults::NewFrameworkDefaultsFile#new
- RailInspector::Configuring::Check::GeneralConfiguration#new
- RailInspector::Configuring::Check::GeneralConfiguration::AccessorParser#new
- RailInspector::Configuring::Doc#new
- RailInspector::Visitor::Attribute#new
- RailInspector::Visitor::FrameworkDefault#new
- RailInspector::Visitor::FrameworkDefault::VersionedConfig#new
- RailInspector::Visitor::HashToString#new
- RailInspector::Visitor::MultilineToString#new
- Rails::Application::Finisher::MonitorHook#new
- Rails::Autoloaders#new
- Rails::Command::CorrectableNameError#new
- Rails::Command::UnrecognizedCommandError#new
- Rails::Command::UnusedRoutesCommand::RouteInfo#new
- Rails::SourceAnnotationExtractor::ParserExtractor::Parser#new
- Rails::TestUnit::TestParser#new
- ActionController::Instrumentation#new
- ActionController::RequestForgeryProtection#new
- ActionController::UrlFor#new
- ActiveModel::API#new
- ActiveModel::Type::SerializeCastValue#new
- ActiveRecord::Encryption::EncryptedFixtures#new
- ActiveRecord::Railties::ControllerRuntime#new
- ActiveRecord::Type::Internal::Timezone#new
- Rails::Command::EnvironmentArgument#new
new()
public
No documentation
This method has no description. You can help the Ruby on Rails community by adding new notes.
Hide source
# File railties/lib/rails/generators/rails/scaffold_controller/templates/controller.rb, line 26 def new @<% singular_table_name %> = <% orm_class.build(class_name) %> respond_to do |format| format.html # new.html.erb format.xml { render :xml => @<% singular_table_name %> } end end # GET <%= route_url %>/1/dit def edit @<% singular_table_name %> = <% orm_class.find(class_name, "params[:id]") %> end # POST <%= route_url %> # POST <%= route_url %>.xml def create @<% singular_table_name %> = <% orm_class.build(class_name, "params[:#{singular_table_name}]") %> respond_to do |format| if @<%= orm_instance.save %< format.html { redirect_to(@<%= singular_table_name %>, :notice => '<%= human_name %> was successfully created.') } format.xml { render :xml => @<% singular_table_name %>, :status => :created, :location => @<% singular_table_name %> } else format.html { render :action => "new" } format.xml { render :xml => @<% orm_instance.errors %>, :status => :unprocessable_entity } end end end