diff options
author | Anil Wadghule <anildigital@gmail.com> | 2010-04-12 22:20:55 +0530 |
---|---|---|
committer | Anil Wadghule <anildigital@gmail.com> | 2010-04-12 22:53:49 +0530 |
commit | 84e46437fa50782dd38b96b8df00ca8b017c892e (patch) | |
tree | 9e9743de0e1cd9220a0f9a850865787f41cba875 /railties/guides/source/rails_on_rack.textile | |
parent | 41bcf06d3289e2292fcc3819c8f104252af36adc (diff) | |
download | rails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.gz rails-84e46437fa50782dd38b96b8df00ca8b017c892e.tar.bz2 rails-84e46437fa50782dd38b96b8df00ca8b017c892e.zip |
Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in significant places.
Diffstat (limited to 'railties/guides/source/rails_on_rack.textile')
-rw-r--r-- | railties/guides/source/rails_on_rack.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/rails_on_rack.textile b/railties/guides/source/rails_on_rack.textile index 320ce137bb..d0d86e99f2 100644 --- a/railties/guides/source/rails_on_rack.textile +++ b/railties/guides/source/rails_on_rack.textile @@ -49,7 +49,7 @@ Middlewares used in the code above are primarily useful only in the development |_.Middleware|_.Purpose| |+Rails::Rack::LogTailer+|Appends log file output to console| -|+ActionDispatch::Static+|Serves static files inside +RAILS_ROOT/public+ directory| +|+ActionDispatch::Static+|Serves static files inside +Rails.root/public+ directory| |+Rails::Rack::Debugger+|Starts Debugger| h4. +rackup+ @@ -57,7 +57,7 @@ h4. +rackup+ To use +rackup+ instead of Rails' +rails server+, you can put the following inside +config.ru+ of your Rails application's root directory: <ruby> -# RAILS_ROOT/config.ru +# Rails.root/config.ru require "config/environment" use Rails::Rack::LogTailer @@ -214,7 +214,7 @@ config.middleware.clear </ruby> <br /> -<strong>Add a +config.ru+ file to +RAILS_ROOT+</strong> +<strong>Add a +config.ru+ file to +Rails.root+</strong> <ruby> # config.ru |