diff options
author | Oscar Del Ben <info@oscardelben.com> | 2012-06-09 12:20:47 -0700 |
---|---|---|
committer | Oscar Del Ben <info@oscardelben.com> | 2012-06-09 12:20:47 -0700 |
commit | 2f6e8099e3cfd025fdca7a13162a5b2087da6db7 (patch) | |
tree | 91359128f9d5d28dcd961a5d7594fae25dc43a82 | |
parent | f20208842ab1f5f6f44b08bda5beb35985c5dd5e (diff) | |
download | rails-2f6e8099e3cfd025fdca7a13162a5b2087da6db7.tar.gz rails-2f6e8099e3cfd025fdca7a13162a5b2087da6db7.tar.bz2 rails-2f6e8099e3cfd025fdca7a13162a5b2087da6db7.zip |
Add missing requires for rails/commands/server
-rw-r--r-- | guides/source/initialization.textile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/guides/source/initialization.textile b/guides/source/initialization.textile index 48d4373afe..2699ffccda 100644 --- a/guides/source/initialization.textile +++ b/guides/source/initialization.textile @@ -224,7 +224,18 @@ when 'server' } </ruby> -This file will change into the root of the directory (a path two directories back from +APP_PATH+ which points at +config/application.rb+), but only if the +config.ru+ file isn't found. This then requires +rails/commands/server+ which requires +action_dispatch+ and sets up the +Rails::Server+ class. +This file will change into the root of the directory (a path two directories back from +APP_PATH+ which points at +config/application.rb+), but only if the +config.ru+ file isn't found. This then requires +rails/commands/server+ which sets up the +Rails::Server+ class. + +<ruby> +require 'fileutils' +require 'optparse' +require 'action_dispatch' + +module Rails + class Server < ::Rack::Server +</ruby> + +`fileutils` and `optparse` are standard Ruby libraries which provide helper functions for working with files and parsing options. h4. +actionpack/lib/action_dispatch.rb+ |