aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-02-02 23:27:27 +0100
committerXavier Noria <fxn@hashref.com>2011-02-02 23:27:27 +0100
commite99e859a045d9241e7297499beb100c7e59e3820 (patch)
tree5314c5e744b082d9bdfa435b1d02fbdd0eded63a /actionpack/lib
parent33643bcf53c56bafe072ab6ec959196a6a049947 (diff)
downloadrails-e99e859a045d9241e7297499beb100c7e59e3820.tar.gz
rails-e99e859a045d9241e7297499beb100c7e59e3820.tar.bz2
rails-e99e859a045d9241e7297499beb100c7e59e3820.zip
revises a metal example
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/metal.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_controller/metal.rb b/actionpack/lib/action_controller/metal.rb
index ab603e40f2..b2c8053584 100644
--- a/actionpack/lib/action_controller/metal.rb
+++ b/actionpack/lib/action_controller/metal.rb
@@ -86,17 +86,17 @@ module ActionController
#
# class HelloController < ActionController::Metal
# include ActionController::Redirecting
+ # include Rails.application.routes.url_helpers
#
# def index
- # redirect_to "http://www.example.com"
+ # redirect_to root_url
# end
# end
#
# == Other Helpers
#
- # You can refer to the modules defined in ActionController to see
- # the other features in <tt>ActionController::Base</tt> that you can bring
- # into your metal controller.
+ # You can refer to the modules included in <tt>ActionController::Base</tt> to see
+ # other features you can bring into your metal controller.
#
class Metal < AbstractController::Base
abstract!