Minimal Rails

New Application

-d [--database=DATABASE]
-f [--force]
-h [--help]
-m [--template=TEMPLATE]
-p [--pretend]
-q [--quiet]
-r [--ruby=PATH]
-s [--skip]
-v [--version]
--api
--dev
--edge
--no-rc
--rc=RC
--webpacker [--webpack=WEBPACK]

Requiring Core Modules

# config/application.rb
require 'rails/all'

or

# config/application.rb
require 'active_model/railtie'
require 'active_job/railtie'
require 'active_record/railtie'
require 'active_storage/engine'
require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'action_mailbox/engine'
require 'action_text/engine'
require 'action_view/railtie'
require 'action_cable/engine'
require 'sprockets/railtie'
require 'rails/test_unit/railtie'
  • ActiveModel

  • ActiveJob

  • ActiveRecord

  • ActiveStorage

  • ActionController

  • ActionMailer

  • ActionMailbox

  • ActionText

  • ActionView

  • ActionCable

  • Sprockets

  • Test::Unit